summaryrefslogtreecommitdiff
path: root/include/net/ip.h
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2019-05-29 14:25:32 +0300
committerDavid S. Miller <davem@davemloft.net>2019-05-31 00:18:17 +0300
commit0feca6190f88a1b7c9a9b9cdf41824e3ea4ba02c (patch)
tree0ac64bce8eb6ed61978c95393c7abe23ea710f99 /include/net/ip.h
parentc8b17be0b7a45d707fc202c11d257c25bc3952b8 (diff)
downloadlinux-0feca6190f88a1b7c9a9b9cdf41824e3ea4ba02c.tar.xz
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 'include/net/ip.h')
0 files changed, 0 insertions, 0 deletions