Lines Matching refs:ip6_fw

29 /*	$FreeBSD: src/sys/netinet6/ip6_fw.c,v 1.2.2.9 2002/04/28 05:40:27 suz Exp $	*/
30 /* $KAME: ip6_fw.c,v 1.21 2001/01/24 01:25:32 itojun Exp $ */
117 #include <netinet6/ip6_fw.h>
182 static int add_entry6 __P((struct ip6_fw_head *chainptr, struct ip6_fw *frwl));
184 static int zero_entry6 __P((struct ip6_fw *frwl));
185 static struct ip6_fw *check_ip6fw_struct __P((struct ip6_fw *m));
186 static int ip6opts_match __P((struct ip6_hdr **ip6, struct ip6_fw *f,
191 static int tcp6flg_match __P((struct tcphdr *tcp6, struct ip6_fw *f));
192 static int icmp6type_match __P((struct icmp6_hdr * icmp, struct ip6_fw * f));
193 static void ip6fw_report __P((struct ip6_fw *f, struct ip6_hdr *ip6,
199 static void cp_to_user_64( struct ip6_fw_64 *userrule_64, struct ip6_fw *rule);
200 static void cp_from_user_64( struct ip6_fw_64 *userrule_64, struct ip6_fw *rule);
201 static void cp_to_user_32( struct ip6_fw_32 *userrule_32, struct ip6_fw *rule);
202 static void cp_from_user_32( struct ip6_fw_32 *userrule_32, struct ip6_fw *rule);
231 tcp6flg_match(struct tcphdr *tcp6, struct ip6_fw *f)
257 icmp6type_match(struct icmp6_hdr *icmp6, struct ip6_fw *f)
295 ip6opts_match(struct ip6_hdr **pip6, struct ip6_fw *f, struct mbuf **m,
417 ip6fw_report(struct ip6_fw *f, struct ip6_hdr *ip6,
562 struct ip6_fw *rule = NULL;
596 struct ip6_fw *const f = chain->rule;
819 panic("ip6_fw: chain");
902 add_entry6(struct ip6_fw_head *chainptr, struct ip6_fw *frwl)
904 struct ip6_fw *ftmp = 0;
918 bcopy(frwl, ftmp, sizeof(struct ip6_fw));
965 bcopy(ftmp, frwl, sizeof(struct ip6_fw));
996 zero_entry6(struct ip6_fw *frwl)
1026 static struct ip6_fw *
1027 check_ip6fw_struct(struct ip6_fw *frwl)
1163 cp_to_user_64( struct ip6_fw_64 *userrule_64, struct ip6_fw *rule)
1192 cp_from_user_64( struct ip6_fw_64 *userrule_64, struct ip6_fw *rule)
1221 cp_to_user_32( struct ip6_fw_32 *userrule_32, struct ip6_fw *rule)
1250 cp_from_user_32( struct ip6_fw_32 *userrule_32, struct ip6_fw *rule)
1283 struct ip6_fw rule;
1331 struct ip6_fw *buf;
1349 //struct ip6_fw *bp = buf;
1362 ( (struct ip6_fw*)bp)->version = IPV6_FW_CURRENT_API_VERSION;
1441 struct ip6_fw default_rule;