| #
481d3881 |
| 05-Jul-2024 |
rin <rin@NetBSD.org> |
sys: Drop redundant NULL check before m_freem(9)
m_freem(9) safely has accepted NULL argument at least since 4.2BSD: https://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/sys/uipc_mbuf.c
Co
sys: Drop redundant NULL check before m_freem(9)
m_freem(9) safely has accepted NULL argument at least since 4.2BSD: https://www.tuhs.org/cgi-bin/utree.pl?file=4.2BSD/usr/src/sys/sys/uipc_mbuf.c
Compile-tested on amd64/ALL.
Suggested by knakahara@
show more ...
|
| #
56192e56 |
| 22-May-2022 |
riastradh <riastradh@NetBSD.org> |
netipsec: Nothing uses xf_zeroize return value. Nix it.
|
| #
c535599f |
| 01-Nov-2019 |
knakahara <knakahara@NetBSD.org> |
Fix ipsecif(4) IPV6_MINMTU does not work correctly.
|
| #
4a07f437 |
| 12-Jun-2019 |
christos <christos@NetBSD.org> |
make DPRINTF use varyadic cpp macros, and merge with IPSECLOG.
|
| #
d91f98a8 |
| 27-Jan-2019 |
pgoyette <pgoyette@NetBSD.org> |
Merge the [pgoyette-compat] branch
|
| #
436305f8 |
| 07-May-2018 |
maxv <maxv@NetBSD.org> |
Remove a dummy reference to XF_IP4, explain briefly why we don't use ipe4_xformsw, and remove unused includes.
|
| #
20668b06 |
| 07-May-2018 |
maxv <maxv@NetBSD.org> |
Remove now unused 'isr', 'skip' and 'protoff' arguments from ipip_output.
|
| #
defd3aa3 |
| 07-May-2018 |
maxv <maxv@NetBSD.org> |
Remove unused 'mp' argument from all the xf_output functions. Also clean up xform.h a bit.
|
| #
a3d9b92c |
| 07-May-2018 |
maxv <maxv@NetBSD.org> |
Clarify IPIP: ipe4_xformsw is not allowed to call ipip_output, so replace the pointer by ipe4_output, which just panics. Group the ipe4_* functions together. Localify other functions.
ok ozaki-r@
|
| #
fa4d1770 |
| 29-Apr-2018 |
maxv <maxv@NetBSD.org> |
Remove obsolete/dead code, the IP-in-IP encapsulation doesn't work this way anymore (XF_IP4 partly dropped by FAST_IPSEC).
|
| #
68df48a8 |
| 28-Apr-2018 |
maxv <maxv@NetBSD.org> |
Remove IPSEC_SPLASSERT_SOFTNET, it has always been a no-op.
|
| #
3e02f4fa |
| 24-Apr-2018 |
maxv <maxv@NetBSD.org> |
Remove the M_AUTHIPDGM flag. It is equivalent to M_AUTHIPHDR, both are set in IPsec-AH, and they are always handled together.
|
| #
48c5ec19 |
| 22-Apr-2018 |
maxv <maxv@NetBSD.org> |
Rename ipip_allow->ipip_spoofcheck, and add net.inet.ipsec.ipip_spoofcheck. Makes it simpler, and also fixes PR/39919.
|
| #
e2c8a664 |
| 19-Apr-2018 |
maxv <maxv@NetBSD.org> |
Remove extra long file paths from the headers.
|
| #
bad5f599 |
| 19-Apr-2018 |
maxv <maxv@NetBSD.org> |
Remove unused typedef, remove unused arguments from _ipip_input, sync comment with reality, and change panic message.
|
| #
1e45b2f1 |
| 18-Apr-2018 |
maxv <maxv@NetBSD.org> |
style
|
| #
a0cc5376 |
| 15-Feb-2018 |
maxv <maxv@NetBSD.org> |
Remove broken MROUTING code, rename ipo->ip4, and simplify.
|
| #
7c3a8f9a |
| 15-Feb-2018 |
maxv <maxv@NetBSD.org> |
Fix the IPIP_STAT_IBYTES stats; we did m_adj(m, iphlen) which substracted iphlen, so no need to re-substract it again.
|
| #
79a77859 |
| 15-Feb-2018 |
maxv <maxv@NetBSD.org> |
dedup again
|
| #
f281f715 |
| 15-Feb-2018 |
maxv <maxv@NetBSD.org> |
dedup
|
| #
d8dc4e58 |
| 15-Feb-2018 |
maxv <maxv@NetBSD.org> |
Style and remove dead code.
|
| #
e65efd3f |
| 24-Jan-2018 |
maxv <maxv@NetBSD.org> |
style
|
| #
715fe7f3 |
| 24-Jan-2018 |
maxv <maxv@NetBSD.org> |
As I said in my last commit in this file, ipo should be set to NULL; otherwise the 'local address spoofing' check below is always wrong on IPv6.
|
| #
d989a876 |
| 14-Jan-2018 |
maxv <maxv@NetBSD.org> |
Fix use-after-free. There is a path where the mbuf gets pulled up without a proper mtod afterwards:
218 ipo = mtod(m, struct ip *); 281 m = m_pullup(m, hlen); 232 ipo->ip_src.s_addr
Fou
Fix use-after-free. There is a path where the mbuf gets pulled up without a proper mtod afterwards:
218 ipo = mtod(m, struct ip *); 281 m = m_pullup(m, hlen); 232 ipo->ip_src.s_addr
Found by Mootja.
Meanwhile it seems to me that 'ipo' should be set to NULL if the inner packet is IPv6, but I'll revisit that later.
show more ...
|
| #
fb23bb2c |
| 15-Nov-2017 |
knakahara <knakahara@NetBSD.org> |
Add argument to encapsw->pr_input() instead of m_tag.
|