aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2019-05-29 13:25:32 +0200
committerDavid S. Miller <davem@davemloft.net>2019-05-30 14:18:17 -0700
commit0feca6190f88a1b7c9a9b9cdf41824e3ea4ba02c (patch)
tree0ac64bce8eb6ed61978c95393c7abe23ea710f99 /include/net/ip.h
parentnet: ipv4: add skbuff fraglist splitter (diff)
downloadlinux-dev-0feca6190f88a1b7c9a9b9cdf41824e3ea4ba02c.tar.xz
linux-dev-0feca6190f88a1b7c9a9b9cdf41824e3ea4ba02c.zip
net: ipv6: add skbuff fraglist splitter
This patch adds the skbuff fraglist split iterator. This API provides an iterator to transform the fraglist into single skbuff objects, it consists of: * ip6_fraglist_init(), that initializes the internal state of the fraglist iterator. * ip6_fraglist_prepare(), that restores the IPv6 header on the fragment. * ip6_fraglist_next(), that retrieves the fragment from the fraglist and updates the internal state of the iterator to point to the next fragment in the fraglist. The ip6_fraglist_iter object stores the internal state of the iterator. This code has been extracted from ip6_fragment(). Symbols are also exported to allow to reuse this iterator from the bridge codepath to build its own refragmentation routine by reusing the existing codebase. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions