FreeBSD Bugzilla – Attachment 138234 Details for
Bug 184149
[vimage] IPv6 link-local collisions on epair[n]b devices
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.05 KB, created by
Shawn Webb
on 2013-11-21 17:40:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Shawn Webb
Created:
2013-11-21 17:40:01 UTC
Size:
1.05 KB
patch
obsolete
>diff --git a/sys/net/if_epair.c b/sys/net/if_epair.c >index 03e379b..d64940f 100644 >--- a/sys/net/if_epair.c >+++ b/sys/net/if_epair.c >@@ -722,6 +722,8 @@ epair_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) > ifp = scb->ifp; > /* Assign a hopefully unique, locally administered etheraddr. */ > eaddr[0] = 0x02; >+ eaddr[1] = (uint8_t)(arc4random() % 0xff); >+ eaddr[2] = (uint8_t)(arc4random() % 0xff); > eaddr[3] = (ifp->if_index >> 8) & 0xff; > eaddr[4] = ifp->if_index & 0xff; > eaddr[5] = 0x0b; >@@ -817,6 +819,8 @@ epair_clone_create(struct if_clone *ifc, char *name, size_t len, caddr_t params) > ifp->if_snd.ifq_maxlen = ifqmaxlen; > /* Assign a hopefully unique, locally administered etheraddr. */ > eaddr[0] = 0x02; >+ eaddr[1] = (uint8_t)(arc4random() % 0xff); >+ eaddr[2] = (uint8_t)(arc4random() % 0xff); > eaddr[3] = (ifp->if_index >> 8) & 0xff; > eaddr[4] = ifp->if_index & 0xff; > eaddr[5] = 0x0a;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 184149
: 138234 |
193114