Lines Matching refs:ulp
965 void *ulp = NULL; /* upper layer protocol pointer. */ in ipfw_chk() local
1021 while (ulp == NULL && offset == 0) { in ipfw_chk()
1024 PULLUP_TO(hlen, ulp, struct icmp6_hdr); in ipfw_chk()
1025 icmp6_type = ICMP6(ulp)->icmp6_type; in ipfw_chk()
1029 PULLUP_TO(hlen, ulp, struct tcphdr); in ipfw_chk()
1030 dst_port = TCP(ulp)->th_dport; in ipfw_chk()
1031 src_port = TCP(ulp)->th_sport; in ipfw_chk()
1033 args->f_id._flags = TCP(ulp)->th_flags; in ipfw_chk()
1037 PULLUP_TO(hlen, ulp, struct sctphdr); in ipfw_chk()
1038 src_port = SCTP(ulp)->src_port; in ipfw_chk()
1039 dst_port = SCTP(ulp)->dest_port; in ipfw_chk()
1043 PULLUP_TO(hlen, ulp, struct udphdr); in ipfw_chk()
1044 dst_port = UDP(ulp)->uh_dport; in ipfw_chk()
1045 src_port = UDP(ulp)->uh_sport; in ipfw_chk()
1049 PULLUP_TO(hlen, ulp, struct ip6_hbh); in ipfw_chk()
1051 hlen += (((struct ip6_hbh *)ulp)->ip6h_len + 1) << 3; in ipfw_chk()
1052 proto = ((struct ip6_hbh *)ulp)->ip6h_nxt; in ipfw_chk()
1053 ulp = NULL; in ipfw_chk()
1057 PULLUP_TO(hlen, ulp, struct ip6_rthdr); in ipfw_chk()
1058 switch (((struct ip6_rthdr *)ulp)->ip6r_type) { in ipfw_chk()
1070 ulp)->ip6r_type); in ipfw_chk()
1076 hlen += (((struct ip6_rthdr *)ulp)->ip6r_len + 1) << 3; in ipfw_chk()
1077 proto = ((struct ip6_rthdr *)ulp)->ip6r_nxt; in ipfw_chk()
1078 ulp = NULL; in ipfw_chk()
1082 PULLUP_TO(hlen, ulp, struct ip6_frag); in ipfw_chk()
1085 proto = ((struct ip6_frag *)ulp)->ip6f_nxt; in ipfw_chk()
1086 offset = ((struct ip6_frag *)ulp)->ip6f_offlg & in ipfw_chk()
1088 ip6f_mf = ((struct ip6_frag *)ulp)->ip6f_offlg & in ipfw_chk()
1100 ntohl(((struct ip6_frag *)ulp)->ip6f_ident); in ipfw_chk()
1101 ulp = NULL; in ipfw_chk()
1105 PULLUP_TO(hlen, ulp, struct ip6_hbh); in ipfw_chk()
1107 hlen += (((struct ip6_hbh *)ulp)->ip6h_len + 1) << 3; in ipfw_chk()
1108 proto = ((struct ip6_hbh *)ulp)->ip6h_nxt; in ipfw_chk()
1109 ulp = NULL; in ipfw_chk()
1113 PULLUP_TO(hlen, ulp, struct ip6_ext); in ipfw_chk()
1115 hlen += (((struct ip6_ext *)ulp)->ip6e_len + 2) << 2; in ipfw_chk()
1116 proto = ((struct ip6_ext *)ulp)->ip6e_nxt; in ipfw_chk()
1117 ulp = NULL; in ipfw_chk()
1121 PULLUP_TO(hlen, ulp, uint32_t); /* SPI, Seq# */ in ipfw_chk()
1133 ulp = ip; /* non-NULL to get out of loop. */ in ipfw_chk()
1138 PULLUP_TO(hlen, ulp, struct ip6_ext); in ipfw_chk()
1143 PULLUP_TO(hlen, ulp, struct pim); in ipfw_chk()
1147 PULLUP_TO(hlen, ulp, struct carp_header); in ipfw_chk()
1148 if (((struct carp_header *)ulp)->carp_version != in ipfw_chk()
1151 if (((struct carp_header *)ulp)->carp_type != in ipfw_chk()
1157 PULLUP_TO(hlen, ulp, struct ip6_hdr); in ipfw_chk()
1161 PULLUP_TO(hlen, ulp, struct ip); in ipfw_chk()
1171 PULLUP_TO(hlen, ulp, struct ip6_ext); in ipfw_chk()
1201 PULLUP_TO(hlen, ulp, struct tcphdr); in ipfw_chk()
1202 dst_port = TCP(ulp)->th_dport; in ipfw_chk()
1203 src_port = TCP(ulp)->th_sport; in ipfw_chk()
1205 args->f_id._flags = TCP(ulp)->th_flags; in ipfw_chk()
1209 PULLUP_TO(hlen, ulp, struct sctphdr); in ipfw_chk()
1210 src_port = SCTP(ulp)->src_port; in ipfw_chk()
1211 dst_port = SCTP(ulp)->dest_port; in ipfw_chk()
1215 PULLUP_TO(hlen, ulp, struct udphdr); in ipfw_chk()
1216 dst_port = UDP(ulp)->uh_dport; in ipfw_chk()
1217 src_port = UDP(ulp)->uh_sport; in ipfw_chk()
1221 PULLUP_TO(hlen, ulp, struct icmphdr); in ipfw_chk()
1603 icmptype_match(ICMP(ulp), (ipfw_insn_u32 *)cmd) ); in ipfw_chk()
1611 ICMP6(ulp)->icmp6_type, in ipfw_chk()
1695 tcp = TCP(ulp); in ipfw_chk()
1712 flags_match(cmd, TCP(ulp)->th_flags)); in ipfw_chk()
1716 PULLUP_LEN(hlen, ulp, (TCP(ulp)->th_off << 2)); in ipfw_chk()
1718 tcpopts_match(TCP(ulp), cmd)); in ipfw_chk()
1724 TCP(ulp)->th_seq); in ipfw_chk()
1730 TCP(ulp)->th_ack); in ipfw_chk()
1739 x = ntohs(TCP(ulp)->th_win); in ipfw_chk()
1756 (TCP(ulp)->th_flags & in ipfw_chk()
2088 TCP(ulp) : NULL)) in ipfw_chk()
2288 is_icmp_query(ICMP(ulp))) && in ipfw_chk()