Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F146683594
D29142.id85378.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
756 B
Referenced Files
None
Subscribers
None
D29142.id85378.diff
View Options
Index: sys/dev/if_wg/module/if_wg_session.c
===================================================================
--- sys/dev/if_wg/module/if_wg_session.c
+++ sys/dev/if_wg/module/if_wg_session.c
@@ -1891,17 +1891,14 @@
struct wg_pkt_data *pkt_data;
struct wg_endpoint *e;
struct wg_softc *sc = _sc;
- struct udphdr *uh;
struct mbuf *m;
- int pktlen, pkttype, hlen;
+ int pktlen, pkttype;
struct noise_remote *remote;
struct wg_tag *t;
void *data;
- uh = (struct udphdr *)(m0->m_data + offset);
- hlen = offset + sizeof(struct udphdr);
-
- m_adj(m0, hlen);
+ /* Caller provided us with srcsa, no need for this header. */
+ m_adj(m0, offset + sizeof(struct udphdr));
/*
* Ensure mbuf has at least enough contiguous data to peel off our
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 5, 5:01 PM (2 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29292382
Default Alt Text
D29142.id85378.diff (756 B)
Attached To
Mode
D29142: if_wg: wg_input: remove a couple locals (NFC)
Attached
Detach File
Event Timeline
Log In to Comment