svn commit: r314480 - head/sys/net

Warner Losh imp at FreeBSD.org
Wed Mar 1 05:38:06 UTC 2017


Author: imp
Date: Wed Mar  1 05:38:04 2017
New Revision: 314480
URL: https://svnweb.freebsd.org/changeset/base/314480

Log:
  Back out r314471. In https://reviews.freebsd.org/D1858 it was clear
  that this shouldn't go in. I was unaware when I merged the pull
  request. I don't wish to upset the status quo, so backout per
  project practice.
  
  Pull Request:	https://github.com/freebsd/freebsd/pull/92
  Noted by:	hrs@

Modified:
  head/sys/net/if_epair.c

Modified: head/sys/net/if_epair.c
==============================================================================
--- head/sys/net/if_epair.c	Wed Mar  1 05:21:21 2017	(r314479)
+++ head/sys/net/if_epair.c	Wed Mar  1 05:38:04 2017	(r314480)
@@ -62,7 +62,6 @@ __FBSDID("$FreeBSD$");
 #include <sys/sockio.h>
 #include <sys/sysctl.h>
 #include <sys/types.h>
-#include <sys/libkern.h>
 
 #include <net/bpf.h>
 #include <net/ethernet.h>
@@ -725,7 +724,6 @@ epair_clone_create(struct if_clone *ifc,
 		ifp = scb->ifp;
 		/* Assign a hopefully unique, locally administered etheraddr. */
 		eaddr[0] = 0x02;
-		eaddr[1] = arc4random() & 0xff;
 		eaddr[3] = (ifp->if_index >> 8) & 0xff;
 		eaddr[4] = ifp->if_index & 0xff;
 		eaddr[5] = 0x0b;


More information about the svn-src-head mailing list