FreeBSD Bugzilla – Attachment 136569 Details for
Bug 181822
[netinet] [patch] drop dead / unused code
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
file.txt
file.txt (text/plain), 894 bytes, created by
Sven-Thorsten Dietrich
on 2013-09-04 20:50:02 UTC
(
hide
)
Description:
file.txt
Filename:
MIME Type:
Creator:
Sven-Thorsten Dietrich
Created:
2013-09-04 20:50:02 UTC
Size:
894 bytes
patch
obsolete
>struct ifr is never used, after making assignments to it's elements. > >Drop the relevant code. > >Signed-off-by: Sven-Throsten Dietrich <sven@vyatta.com> > >Index: netinet/ip_mroute.c >=================================================================== >--- netinet/ip_mroute.c (revision 255189) >+++ netinet/ip_mroute.c (working copy) >@@ -707,7 +706,6 @@ > vifi_t vifi; > int i; > struct ifnet *ifp; >- struct ifreq ifr; > > MROUTER_LOCK(); > >@@ -732,11 +730,6 @@ > for (vifi = 0; vifi < V_numvifs; vifi++) { > if (!in_nullhost(V_viftable[vifi].v_lcl_addr) && > !(V_viftable[vifi].v_flags & (VIFF_TUNNEL | VIFF_REGISTER))) { >- struct sockaddr_in *so = (struct sockaddr_in *)&(ifr.ifr_addr); >- >- so->sin_len = sizeof(struct sockaddr_in); >- so->sin_family = AF_INET; >- so->sin_addr.s_addr = INADDR_ANY; > ifp = V_viftable[vifi].v_ifp; > if_allmulti(ifp, 0); > }
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 Raw
Actions:
View
Attachments on
bug 181822
: 136569