[NETFILTER] ip6tables: remove duplicate code
authorYasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Mon, 19 Sep 2005 22:34:40 +0000 (15:34 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Sep 2005 22:34:40 +0000 (15:34 -0700)
Some IPv6 matches have very similar loops to find IPv6 extension header
and we can unify them. This patch introduces ipv6_find_hdr() to do it.
I just checked that it can find the target headers in the packet which has
dst,hbh,rt,frag,ah,esp headers.

Signed-off-by: Yasuyuki Kozakai <yasuyuki.kozakai@toshiba.co.jp>
Signed-off-by: Harald Welte <laforge@netfilter.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found