Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F143958278
D30638.id90411.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
776 B
Referenced Files
None
Subscribers
None
D30638.id90411.diff
View Options
Index: sys/net/if_vxlan.c
===================================================================
--- sys/net/if_vxlan.c
+++ sys/net/if_vxlan.c
@@ -2769,7 +2769,7 @@
vso = xvso;
offset += sizeof(struct udphdr);
- if (m->m_pkthdr.len < offset + sizeof(struct vxlan_header))
+ if (m->m_pkthdr.len < offset + sizeof(struct vxlan_header) + ETHER_HDR_LEN)
goto out;
if (__predict_false(m->m_len < offset + sizeof(struct vxlan_header))) {
@@ -2810,7 +2810,7 @@
struct ifnet *ifp;
struct mbuf *m;
struct ether_header *eh;
- int error;
+ int error = 0;
sc = vxlan_socket_lookup_softc(vso, vni);
if (sc == NULL)
@@ -2857,7 +2857,7 @@
m->m_pkthdr.csum_data = 0;
}
- error = netisr_dispatch(NETISR_ETHER, m);
+ (*ifp->if_input)(ifp, m);
*m0 = NULL;
out:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Feb 3, 2:02 PM (3 h, 15 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
28424569
Default Alt Text
D30638.id90411.diff (776 B)
Attached To
Mode
D30638: if_vxlan(4): Allow netmap_generic to intercept RX packets.
Attached
Detach File
Event Timeline
Log In to Comment