Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F176856791
D30638.1793517357.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
776 B
Referenced Files
None
Subscribers
None
D30638.1793517357.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
Sun, Nov 1, 7:15 AM (5 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41266302
Default Alt Text
D30638.1793517357.diff (776 B)
Attached To
Mode
D30638: if_vxlan(4): Allow netmap_generic to intercept RX packets.
Attached
Detach File
Event Timeline