FreeBSD Bugzilla – Attachment 13072 Details for
Bug 25006
cannot ignore arp (ifconfig -arp doesn't work)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.61 KB, created by
fujiwara
on 2001-02-11 17:10:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
fujiwara
Created:
2001-02-11 17:10:01 UTC
Size:
1.61 KB
patch
obsolete
>Index: net/if_ethersubr.c >=================================================================== >RCS file: /FreeBSD-CVS/src/sys/net/if_ethersubr.c,v >retrieving revision 1.90 >diff -u -r1.90 if_ethersubr.c >--- net/if_ethersubr.c 2001/02/10 00:10:13 1.90 >+++ net/if_ethersubr.c 2001/02/10 10:50:06 >@@ -539,6 +539,8 @@ > break; > > case ETHERTYPE_ARP: >+ if (ifp->if_flags & IFF_NOARP) >+ goto dropanyway; > schednetisr(NETISR_ARP); > inq = &arpintrq; > break; >@@ -635,6 +637,7 @@ > return; > } > #else /* NETATALK */ >+ dropanyway: > if (ng_ether_input_orphan_p != NULL) > (*ng_ether_input_orphan_p)(ifp, m, eh); > else >Index: net/if_fddisubr.c >=================================================================== >RCS file: /FreeBSD-CVS/src/sys/net/if_fddisubr.c,v >retrieving revision 1.49 >diff -u -r1.49 if_fddisubr.c >--- net/if_fddisubr.c 2001/02/04 13:12:56 1.49 >+++ net/if_fddisubr.c 2001/02/10 10:47:10 >@@ -444,6 +444,8 @@ > break; > > case ETHERTYPE_ARP: >+ if (ifp->if_flags & IFF_NOARP) >+ goto dropanyway; > #if !defined(__bsdi__) || _BSDI_VERSION >= 199401 > schednetisr(NETISR_ARP); > inq = &arpintrq; >Index: if_ether.c >=================================================================== >RCS file: /FreeBSD-CVS/src/sys/netinet/if_ether.c,v >retrieving revision 1.78 >diff -u -r1.78 if_ether.c >--- netinet/if_ether.c 2001/02/10 00:10:18 1.78 >+++ netinet/if_ether.c 2001/02/11 16:44:38 >@@ -403,6 +403,9 @@ > bcopy(LLADDR(sdl), desten, sdl->sdl_alen); > return 1; > } >+ if (ac->ac_if.if_flags & IFF_NOARP) >+ return 0; >+ > /* > * There is an arptab entry, but no ethernet address > * response yet. Replace the held mbuf with this
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 25006
: 13072