Contributors: 25
Author Tokens Token Proportion Commits Commit Proportion
Florian Westphal 117 21.20% 5 9.26%
Pablo Neira Ayuso 82 14.86% 6 11.11%
Fernando Fernandez Mancera 75 13.59% 2 3.70%
Linus Torvalds (pre-git) 43 7.79% 7 12.96%
Arnd Bergmann 39 7.07% 2 3.70%
Andras Kis-Szabo 35 6.34% 1 1.85%
Patrick McHardy 34 6.16% 6 11.11%
Eric W. Biedermann 22 3.99% 2 3.70%
Harald Welte 15 2.72% 2 3.70%
Jason A. Donenfeld 12 2.17% 1 1.85%
Hideaki Yoshifuji / 吉藤英明 11 1.99% 2 3.70%
Linus Torvalds 9 1.63% 1 1.85%
Joe Stringer 9 1.63% 1 1.85%
Xin Long 7 1.27% 2 3.70%
Jeremy Sowden 7 1.27% 3 5.56%
Alexey Dobriyan 7 1.27% 2 3.70%
Adrian Bunk 6 1.09% 1 1.85%
Daniel Lezcano 5 0.91% 1 1.85%
Bernhard Thaler 4 0.72% 1 1.85%
Eric Leblond 3 0.54% 1 1.85%
Balazs Scheidler 3 0.54% 1 1.85%
Ville Nuorvala 3 0.54% 1 1.85%
Eric Dumazet 2 0.36% 1 1.85%
Al Viro 1 0.18% 1 1.85%
David Howells 1 0.18% 1 1.85%
Total 552 54


/* IPv6-specific defines for netfilter. 
 * (C)1998 Rusty Russell -- This code is GPL.
 * (C)1999 David Jeffery
 *   this header was blatantly ripped from netfilter_ipv4.h
 *   it's amazing what adding a bunch of 6s can do =8^)
 */
#ifndef __LINUX_IP6_NETFILTER_H
#define __LINUX_IP6_NETFILTER_H

#include <uapi/linux/netfilter_ipv6.h>
#include <net/tcp.h>

/* Check for an extension */
static inline int
nf_ip6_ext_hdr(u8 nexthdr)
{	return (nexthdr == IPPROTO_HOPOPTS) ||
	       (nexthdr == IPPROTO_ROUTING) ||
	       (nexthdr == IPPROTO_FRAGMENT) ||
	       (nexthdr == IPPROTO_ESP) ||
	       (nexthdr == IPPROTO_AH) ||
	       (nexthdr == IPPROTO_NONE) ||
	       (nexthdr == IPPROTO_DSTOPTS);
}

/* Extra routing may needed on local out, as the QUEUE target never returns
 * control to the table.
 */
struct ip6_rt_info {
	struct in6_addr daddr;
	struct in6_addr saddr;
	u_int32_t mark;
};

struct nf_queue_entry;
struct nf_bridge_frag_data;

#ifdef CONFIG_NETFILTER
#include <net/addrconf.h>

static inline int nf_ipv6_chk_addr(struct net *net, const struct in6_addr *addr,
				   const struct net_device *dev, int strict)
{
#if IS_ENABLED(CONFIG_IPV6)
	return ipv6_chk_addr(net, addr, dev, strict);
#else
	return 1;
#endif
}

int __nf_ip6_route(struct net *net, struct dst_entry **dst,
			       struct flowi *fl, bool strict);

static inline int nf_ip6_route(struct net *net, struct dst_entry **dst,
			       struct flowi *fl, bool strict)
{
#if IS_ENABLED(CONFIG_IPV6)
	return __nf_ip6_route(net, dst, fl, strict);
#else
	return -EHOSTUNREACH;
#endif
}

#include <net/netfilter/ipv6/nf_defrag_ipv6.h>

int br_ip6_fragment(struct net *net, struct sock *sk, struct sk_buff *skb,
		    struct nf_bridge_frag_data *data,
		    int (*output)(struct net *, struct sock *sk,
				  const struct nf_bridge_frag_data *data,
				  struct sk_buff *));

static inline int nf_br_ip6_fragment(struct net *net, struct sock *sk,
				     struct sk_buff *skb,
				     struct nf_bridge_frag_data *data,
				     int (*output)(struct net *, struct sock *sk,
						   const struct nf_bridge_frag_data *data,
						   struct sk_buff *))
{
#if IS_ENABLED(CONFIG_IPV6)
	return br_ip6_fragment(net, sk, skb, data, output);
#else
	return 1;
#endif
}

int ip6_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb);

static inline int nf_ip6_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb)
{
#if IS_ENABLED(CONFIG_IPV6)
	return ip6_route_me_harder(net, sk, skb);
#else
	return -EHOSTUNREACH;
#endif
}

static inline u32 nf_ipv6_cookie_init_sequence(const struct ipv6hdr *iph,
					       const struct tcphdr *th,
					       u16 *mssp)
{
#if IS_ENABLED(CONFIG_IPV6) && IS_ENABLED(CONFIG_SYN_COOKIES)
	return __cookie_v6_init_sequence(iph, th, mssp);
#endif
	return 0;
}

static inline int nf_cookie_v6_check(const struct ipv6hdr *iph,
				     const struct tcphdr *th)
{
#if IS_ENABLED(CONFIG_IPV6) && IS_ENABLED(CONFIG_SYN_COOKIES)
	return __cookie_v6_check(iph, th);
#endif
	return 0;
}

__sum16 nf_ip6_checksum(struct sk_buff *skb, unsigned int hook,
			unsigned int dataoff, u_int8_t protocol);

int nf_ip6_check_hbh_len(struct sk_buff *skb, u32 *plen);
#endif /* CONFIG_NETFILTER */

#endif /*__LINUX_IP6_NETFILTER_H*/