Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 Mar 2017 05:38:05 +0000 (UTC)
From:      Warner Losh <imp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r314480 - head/sys/net
Message-ID:  <201703010538.v215c5KO046673@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



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