CVS commit: src/sys/net
"Taylor R Campbell" <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module Name: src Committed By: riastradh Date: Wed Jul 1 23:40:16 UTC 2026 Modified Files: src/sys/net: if_wg.c Log Message: wg-userspace(8): Drop <4-byte UDP packets immediately. Same as the kernel already does. Add an assertion into wg_receive_packets about this and a couple comments cross-referencing wg_overudp_cb and wg_receive_packets. And, while here, as a precaution in case the inpcb_register_overudp_cb mechanism ever breaks down or gets refactored, make wg_receive_packets drop <4-byte packets too -- this path should be hit only when handling handshake packets, so adding another predicted-not-taken branch here should cost essentially nothing. PR bin/60392: assertion "mbuflen >= sizeof(struct wg_msg)" failed To generate a diff of this commit: cvs rdiff -u -r1.140 -r1.141 src/sys/net/if_wg.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.