Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160539116
D23168.id66728.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
648 B
Referenced Files
None
Subscribers
None
D23168.id66728.diff
View Options
Index: sys/netgraph/ng_eiface.c
===================================================================
--- sys/netgraph/ng_eiface.c
+++ sys/netgraph/ng_eiface.c
@@ -385,7 +385,7 @@
{
struct ifnet *ifp;
priv_p priv;
- u_char eaddr[6] = {0,0,0,0,0,0};
+ struct ether_addr eaddr;
/* Allocate node and interface private structures */
priv = malloc(sizeof(*priv), M_NETGRAPH, M_WAITOK | M_ZERO);
@@ -435,7 +435,8 @@
ifp->if_xname);
/* Attach the interface */
- ether_ifattach(ifp, eaddr);
+ ether_gen_addr(ifp, &eaddr);
+ ether_ifattach(ifp, eaddr.octet);
ifp->if_baudrate = ifmedia_baudrate(IFM_ETHER | IFM_1000_T);
/* Done */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jun 26, 11:35 AM (21 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34356054
Default Alt Text
D23168.id66728.diff (648 B)
Attached To
Mode
D23168: [netgraph/ng_eiface] Generate MAC address from the FreeBSD OUI range.
Attached
Detach File
Event Timeline
Log In to Comment