Lines Matching refs:fr_info_t
163 static INLINE int ipf_check_ipf(fr_info_t *, frentry_t *, int);
164 static u_32_t ipf_checkcipso(fr_info_t *, u_char *, int);
166 static u_32_t ipf_decaps(fr_info_t *, u_32_t, int);
168 static frentry_t *ipf_dolog(fr_info_t *, u_32_t *);
175 static frentry_t *ipf_firewall(fr_info_t *, u_32_t *);
176 static int ipf_fr_matcharray(fr_info_t *, int *);
191 static INLINE int ipf_pr_ah(fr_info_t *);
192 static INLINE void ipf_pr_esp(fr_info_t *);
193 static INLINE void ipf_pr_gre(fr_info_t *);
194 static INLINE void ipf_pr_udp(fr_info_t *);
195 static INLINE void ipf_pr_tcp(fr_info_t *);
196 static INLINE void ipf_pr_icmp(fr_info_t *);
197 static INLINE void ipf_pr_ipv4hdr(fr_info_t *);
198 static INLINE void ipf_pr_short(fr_info_t *, int);
199 static INLINE int ipf_pr_tcpcommon(fr_info_t *);
200 static INLINE int ipf_pr_udpcommon(fr_info_t *);
211 static int ipf_updateipid(fr_info_t *);
416 * fields in the fr_info_t structure passed based on properties of the
424 static INLINE int ipf_pr_ah6(fr_info_t *);
425 static INLINE void ipf_pr_esp6(fr_info_t *);
426 static INLINE void ipf_pr_gre6(fr_info_t *);
427 static INLINE void ipf_pr_udp6(fr_info_t *);
428 static INLINE void ipf_pr_tcp6(fr_info_t *);
429 static INLINE void ipf_pr_icmp6(fr_info_t *);
430 static INLINE void ipf_pr_ipv6hdr(fr_info_t *);
431 static INLINE void ipf_pr_short6(fr_info_t *, int);
432 static INLINE int ipf_pr_hopopts6(fr_info_t *);
433 static INLINE int ipf_pr_mobility6(fr_info_t *);
434 static INLINE int ipf_pr_routing6(fr_info_t *);
435 static INLINE int ipf_pr_dstopts6(fr_info_t *);
436 static INLINE int ipf_pr_fragment6(fr_info_t *);
437 static INLINE struct ip6_ext *ipf_pr_ipv6exthdr(fr_info_t *, int, int);
452 ipf_pr_short6(fr_info_t *fin, int xmin)
466 /* Copy values from the IPv6 header into the fr_info_t struct and call the */
472 ipf_pr_ipv6hdr(fr_info_t *fin)
620 DT2(ipf_fi_bad_ipv6_frag_1, fr_info_t *, fin, int, go);
643 ipf_pr_ipv6exthdr(fr_info_t *fin, int multiple, int proto)
677 DT3(ipf_fi_bad_pr_ipv6exthdr_len, fr_info_t *, fin, u_short, shift, u_short, fin->fin_dlen);
701 DT2(ipf_fi_bad_ipv6exthdr_once, fr_info_t *, fin, u_int, (fin->fin_optmsk & ip6exthdr[i].ol_bit));
720 ipf_pr_hopopts6(fr_info_t *fin)
740 ipf_pr_mobility6(fr_info_t *fin)
760 ipf_pr_routing6(fr_info_t *fin)
779 DT1(ipf_fi_bad_routing6, fr_info_t *, fin);
823 ipf_pr_fragment6(fr_info_t *fin)
843 DT2(ipf_fi_bad_frag_not_8, fr_info_t *, fin, u_int, (fin->fin_plen & 7));
858 DT2(ipf_fi_bad_jumbogram, fr_info_t *, fin, u_int, ((fin->fin_off << 3) + fin->fin_dlen));
881 ipf_pr_dstopts6(fr_info_t *fin)
905 ipf_pr_icmp6(fr_info_t *fin)
963 DT1(ipf_fi_bad_icmp6, fr_info_t *, fin);
992 ipf_pr_udp6(fr_info_t *fin)
1015 ipf_pr_tcp6(fr_info_t *fin)
1041 ipf_pr_esp6(fr_info_t *fin)
1064 ipf_pr_ah6(fr_info_t *fin)
1096 ipf_pr_gre6(fr_info_t *fin)
1133 ipf_pr_pullup(fr_info_t *fin, int plen)
1145 DT1(ipf_pullup_fail, fr_info_t *, fin);
1183 ipf_pr_short(fr_info_t *fin, int xmin)
1209 ipf_pr_icmp(fr_info_t *fin)
1271 DT3(ipf_fi_bad_icmp_nextmtu, fr_info_t *, fin, u_int, icmp->icmp_nextmtu, u_int, softc->ipf_icmpminfragmtu);
1294 DT2(ipf_fi_bad_icmp_err, fr_info_t, fin, u_int, (ntohs(oip->ip_off) & IP_OFFMASK));
1304 DT1(ipf_fi_bad_src_ne_dst, fr_info_t *, fin);
1328 ipf_pr_tcpcommon(fr_info_t *fin)
1364 DT3(ipf_fi_bad_tlen, fr_info_t, fin, u_int, tlen, u_int, sizeof(tcphdr_t));
1378 DT3(ipf_fi_bad_th_urg, fr_info_t*, fin, u_int, (flags & TH_URG), u_int, tcp->th_urp);
1386 DT3(ipf_fi_bad_th_urg0, fr_info_t *, fin, u_int, (flags & TH_URG), u_int, tcp->th_urp);
1392 DT1(ipf_fi_bad_th_fin_rst_ack, fr_info_t, fin);
1401 DT1(ipf_fi_bad_th_syn_urg_psh, fr_info_t *, fin);
1420 /*DT1(ipf_fi_bad_th_syn_ack, fr_info_t *, fin);*/
1423 DT1(ipf_fi_bad_th_rst_syn, fr_info_t *, fin);
1426 DT1(ipf_fi_bad_th_urg_push_fin, fr_info_t *, fin);
1504 ipf_pr_udpcommon(fr_info_t *fin)
1538 ipf_pr_tcp(fr_info_t *fin)
1557 ipf_pr_udp(fr_info_t *fin)
1579 ipf_pr_esp(fr_info_t *fin)
1603 ipf_pr_ah(fr_info_t *fin)
1651 ipf_pr_gre(fr_info_t *fin)
1680 /* Analyze the IPv4 header and set fields in the fr_info_t structure. */
1684 ipf_pr_ipv4hdr(fr_info_t *fin)
1736 DT1(ipf_fi_tcp_frag_off_1, fr_info_t *, fin);
1754 DT1(ipf_fi_bad_fragbody_gt_65535, fr_info_t *, fin);
1838 DT2(ipf_fi_bad_ipopt_security, fr_info_t *, fin, u_short, (optmsk & op->ol_bit));
1850 DT2(ipf_fi_bad_ipopt_cipso, fr_info_t *, fin, u_short, (optmsk & op->ol_bit));
1927 /* value found in the fr_info_t structure. */
1934 ipf_checkcipso(fr_info_t *fin, u_char *s, int ol)
1945 DT2(ipf_fi_bad_checkcipso_ol, fr_info_t *, fin, u_int, ol);
1963 DT2(ipf_fi_bad_checkcipso_tlen, fr_info_t *, fin, u_int, tlen);
1974 DT2(ipf_fi_bad_checkcipso_tag, fr_info_t *, fin, u_int, tag);
1979 DT2(ipf_fi_bad_checkcipso_tag1_t2, fr_info_t *, fin, u_int, (*t + 2));
1988 DT2(ipf_fi_bad_checkcipso_tag4_t2, fr_info_t *, fin, u_int, (*t + 2));
1997 DT2(ipf_fi_bad_checkcipso_tag5_t2, fr_info_t *, fin, u_int, (*t + 2));
2007 DT2(ipf_fi_bad_checkcipso_tag127, fr_info_t *, fin, u_int, tag);
2029 /* in the fr_info_t structure pointer to by fin. At present, it is assumed */
2033 ipf_makefrip(int hlen, ip_t *ip, fr_info_t *fin)
2198 ipf_check_ipf(fr_info_t *fin, frentry_t *fr, int portcmp)
2375 ipf_scanlist(fr_info_t *fin, u_32_t pass)
2628 ipf_acctpkt(fr_info_t *fin, u_32_t *passp)
2669 ipf_firewall(fr_info_t *fin, u_32_t *passp)
2697 DT2(frb_ppsrate, fr_info_t *, fin, frentry_t *, fr);
2711 DT1(frb_authnew, fr_info_t *, fin);
2799 fr_info_t frinfo;
2800 fr_info_t *fin = &frinfo;
2809 * the packet is distilled, collected into a fr_info_t structure and
2928 DT1(frb_makefrip, fr_info_t *, fin);
3135 DT1(frb_authcapture, fr_info_t *, fin);
3281 ipf_dolog(fr_info_t *fin, u_32_t *passp)
3378 fr_cksum(fr_info_t *fin, ip_t *ip, int l4proto, void *l4hdr)
5539 ipf_srcgrpmap(fr_info_t *fin, u_32_t *passp)
5567 ipf_dstgrpmap(fr_info_t *fin, u_32_t *passp)
5957 ipf_updateipid(fr_info_t *fin)
6499 ipf_checkl4sum(fr_info_t *fin)
6711 ipf_coalesce(fr_info_t *fin)
6728 DT1(frb_coalesce, fr_info_t *, fin);
8217 ipf_decaps(fr_info_t *fin, u_32_t pass, int l5proto)
8219 fr_info_t fin2, *fino = NULL;
8364 DT1(frb_decapfrip, fr_info_t *, fin);
8374 * Copy the packet filter "result" fields out of the fr_info_t struct
8538 ipf_fr_matcharray(fr_info_t *fin, int *array)