diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-03-01 11:05:44 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2021-03-01 11:05:44 +0000 |
commit | f34d4b2beb1d31a0fd5b37fc76cbf03834be8a7d (patch) | |
tree | 8f718d3a9d07a08b49389d6486c238111b1d802a /usr.sbin/ospf6d/control.h | |
parent | e2cabf3b47ab75eb968195e43fb2218e2e1d2e56 (diff) |
Refactor ip_fragment() and ip6_fragment(). Use a mbuf list to
simplify the handling of the fragment list. Now the functions
ip_fragment() and ip6_fragment() always consume the mbuf. They
free the mbuf and mbuf list in case of an error and take care about
the counter. Adjust the code a bit to make v4 and v6 look similar.
Fixes a potential mbuf leak when pf_route6() called pf_refragment6()
and it failed. Now the mbuf is always freed by ip6_fragment().
OK dlg@ mvs@
Diffstat (limited to 'usr.sbin/ospf6d/control.h')
0 files changed, 0 insertions, 0 deletions