FreeBSD Bugzilla – Attachment 135850 Details for
Bug 180893
[if_ethersubr] [patch] Packets received with own LLADDR confuse things.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 711 bytes, created by
dave
on 2013-07-27 18:50:00 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
dave
Created:
2013-07-27 18:50:00 UTC
Size:
711 bytes
patch
obsolete
>Index: if_ethersubr.c >=================================================================== >--- if_ethersubr.c (revision 253638) >+++ if_ethersubr.c (working copy) >@@ -636,6 +636,17 @@ > ETHER_BPF_MTAP(ifp, m); > > /* >+ * Drop the frame if it appears to be sent by us. That is: >+ * it appears to have the same LLADDR. >+ */ >+ if(bcmp(eh->ether_shost, IF_LLADDR(ifp), ETHER_ADDR_LEN) == 0) { >+ if_printf(ifp, "Dropped packet that claims to be from me!\n"); >+ ifp->if_ierrors++; >+ m_freem(m); >+ return; >+ } >+ >+ /* > * If the CRC is still on the packet, trim it off. We do this once > * and once only in case we are re-entered. Nothing else on the > * Ethernet receive path expects to see the FCS.
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 180893
: 135850