Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Dec 2009 19:57:29 +0000 (UTC)
From:      Gavin Atkinson <gavin@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r200994 - head/sys/dev/jme
Message-ID:  <200912251957.nBPJvTlH070028@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gavin
Date: Fri Dec 25 19:57:28 2009
New Revision: 200994
URL: http://svn.freebsd.org/changeset/base/200994

Log:
  Set the locally-assigned bit in the randomly generated Ethernet address
  if we end up having to generate one.
  
  PR:		kern/133239
  Discussed with:	yongari
  Approved by:	ed (mentor)
  MFC after:	2 weeks

Modified:
  head/sys/dev/jme/if_jme.c

Modified: head/sys/dev/jme/if_jme.c
==============================================================================
--- head/sys/dev/jme/if_jme.c	Fri Dec 25 19:38:12 2009	(r200993)
+++ head/sys/dev/jme/if_jme.c	Fri Dec 25 19:57:28 2009	(r200994)
@@ -465,7 +465,7 @@ jme_reg_macaddr(struct jme_softc *sc)
 		    "generating fake ethernet address.\n");
 		par0 = arc4random();
 		/* Set OUI to JMicron. */
-		sc->jme_eaddr[0] = 0x00;
+		sc->jme_eaddr[0] = 0x02;	/* U/L bit set. */
 		sc->jme_eaddr[1] = 0x1B;
 		sc->jme_eaddr[2] = 0x8C;
 		sc->jme_eaddr[3] = (par0 >> 16) & 0xff;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200912251957.nBPJvTlH070028>