FreeBSD Bugzilla – Attachment 11225 Details for
Bug 22181
Bugs in the VLAN driver multicast manipulation code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 835 bytes, created by
Yar Tikhiy
on 2000-10-21 14:00:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Yar Tikhiy
Created:
2000-10-21 14:00:01 UTC
Size:
835 bytes
patch
obsolete
>--- if_vlan.c.orig Sat Oct 21 14:13:01 2000 >+++ if_vlan.c Sat Oct 21 16:26:13 2000 >@@ -118,8 +118,10 @@ > sc = ifp->if_softc; > ifp_p = sc->ifv_p; > >- sdl.sdl_len = ETHER_ADDR_LEN; >+ bzero((char *)&sdl, sizeof sdl); >+ sdl.sdl_len = sizeof sdl; > sdl.sdl_family = AF_LINK; >+ sdl.sdl_alen = ETHER_ADDR_LEN; > > /* First, remove any existing filter entries. */ > while(sc->vlan_mc_listhead.slh_first != NULL) { >@@ -137,7 +139,7 @@ > ifma != NULL;ifma = ifma->ifma_link.le_next) { > if (ifma->ifma_addr->sa_family != AF_LINK) > continue; >- mc = malloc(sizeof(struct vlan_mc_entry), M_DEVBUF, M_NOWAIT); >+ mc = malloc(sizeof(struct vlan_mc_entry), M_DEVBUF, M_WAITOK); > bcopy(LLADDR((struct sockaddr_dl *)ifma->ifma_addr), > (char *)&mc->mc_addr, ETHER_ADDR_LEN); > SLIST_INSERT_HEAD(&sc->vlan_mc_listhead, mc, mc_entries);
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 22181
: 11225