diff options
author | Pablo Neira Ayuso <pablo@netfilter.org> | 2019-05-29 13:25:32 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-05-30 14:18:17 -0700 |
commit | 0feca6190f88a1b7c9a9b9cdf41824e3ea4ba02c (patch) | |
tree | 0ac64bce8eb6ed61978c95393c7abe23ea710f99 /include/net/ip.h | |
parent | c8b17be0b7a45d707fc202c11d257c25bc3952b8 (diff) | |
download | blackbird-op-linux-0feca6190f88a1b7c9a9b9cdf41824e3ea4ba02c.tar.gz blackbird-op-linux-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 'include/net/ip.h')
0 files changed, 0 insertions, 0 deletions