]> git.hungrycats.org Git - linux/commit
[NET]: Add skb_iter functions.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 2 Aug 2004 12:20:37 +0000 (05:20 -0700)
committerDavid S. Miller <davem@nuts.davemloft.net>
Mon, 2 Aug 2004 12:20:37 +0000 (05:20 -0700)
commite1564ac345ad5204c20df381196a8db44e8e3b86
treedffd98d96f1a8dca36d256f3efe946e4cc233d6e
parent562d6b23ee7895decf2e3dee2675b0a2a325d372
[NET]: Add skb_iter functions.

There's no convenient function to walk the data of an skbuff; provide
one.  Netfilter extensions in particular can use this to examine
packet contents without needing an entire copy.

I originally wrote an 'skb_walk(skb, fn, data)' function, but open
iterators are easier to use for complex cases.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: David S. Miller <davem@redhat.com>
include/linux/skbuff.h
net/core/skbuff.c