Lines Matching refs:ulp

961 	 * We store in ulp a pointer to the upper layer protocol header.
964 * ulp is NULL if not found.
966 void *ulp = NULL; /* upper layer protocol pointer. */
1022 while (ulp == NULL && offset == 0) {
1025 PULLUP_TO(hlen, ulp, struct icmp6_hdr);
1026 icmp6_type = ICMP6(ulp)->icmp6_type;
1030 PULLUP_TO(hlen, ulp, struct tcphdr);
1031 dst_port = TCP(ulp)->th_dport;
1032 src_port = TCP(ulp)->th_sport;
1034 args->f_id._flags = TCP(ulp)->th_flags;
1038 PULLUP_TO(hlen, ulp, struct sctphdr);
1039 src_port = SCTP(ulp)->src_port;
1040 dst_port = SCTP(ulp)->dest_port;
1044 PULLUP_TO(hlen, ulp, struct udphdr);
1045 dst_port = UDP(ulp)->uh_dport;
1046 src_port = UDP(ulp)->uh_sport;
1050 PULLUP_TO(hlen, ulp, struct ip6_hbh);
1052 hlen += (((struct ip6_hbh *)ulp)->ip6h_len + 1) << 3;
1053 proto = ((struct ip6_hbh *)ulp)->ip6h_nxt;
1054 ulp = NULL;
1058 PULLUP_TO(hlen, ulp, struct ip6_rthdr);
1059 switch (((struct ip6_rthdr *)ulp)->ip6r_type) {
1071 ulp)->ip6r_type);
1077 hlen += (((struct ip6_rthdr *)ulp)->ip6r_len + 1) << 3;
1078 proto = ((struct ip6_rthdr *)ulp)->ip6r_nxt;
1079 ulp = NULL;
1083 PULLUP_TO(hlen, ulp, struct ip6_frag);
1086 proto = ((struct ip6_frag *)ulp)->ip6f_nxt;
1087 offset = ((struct ip6_frag *)ulp)->ip6f_offlg &
1089 ip6f_mf = ((struct ip6_frag *)ulp)->ip6f_offlg &
1101 ntohl(((struct ip6_frag *)ulp)->ip6f_ident);
1102 ulp = NULL;
1106 PULLUP_TO(hlen, ulp, struct ip6_hbh);
1108 hlen += (((struct ip6_hbh *)ulp)->ip6h_len + 1) << 3;
1109 proto = ((struct ip6_hbh *)ulp)->ip6h_nxt;
1110 ulp = NULL;
1114 PULLUP_TO(hlen, ulp, struct ip6_ext);
1116 hlen += (((struct ip6_ext *)ulp)->ip6e_len + 2) << 2;
1117 proto = ((struct ip6_ext *)ulp)->ip6e_nxt;
1118 ulp = NULL;
1122 PULLUP_TO(hlen, ulp, uint32_t); /* SPI, Seq# */
1134 ulp = ip; /* non-NULL to get out of loop. */
1139 PULLUP_TO(hlen, ulp, struct ip6_ext);
1144 PULLUP_TO(hlen, ulp, struct pim);
1148 PULLUP_TO(hlen, ulp, struct carp_header);
1149 if (((struct carp_header *)ulp)->carp_version !=
1152 if (((struct carp_header *)ulp)->carp_type !=
1158 PULLUP_TO(hlen, ulp, struct ip6_hdr);
1162 PULLUP_TO(hlen, ulp, struct ip);
1172 PULLUP_TO(hlen, ulp, struct ip6_ext);
1202 PULLUP_TO(hlen, ulp, struct tcphdr);
1203 dst_port = TCP(ulp)->th_dport;
1204 src_port = TCP(ulp)->th_sport;
1206 args->f_id._flags = TCP(ulp)->th_flags;
1210 PULLUP_TO(hlen, ulp, struct sctphdr);
1211 src_port = SCTP(ulp)->src_port;
1212 dst_port = SCTP(ulp)->dest_port;
1216 PULLUP_TO(hlen, ulp, struct udphdr);
1217 dst_port = UDP(ulp)->uh_dport;
1218 src_port = UDP(ulp)->uh_sport;
1222 PULLUP_TO(hlen, ulp, struct icmphdr);
1223 //args->f_id.flags = ICMP(ulp)->icmp_type;
1604 icmptype_match(ICMP(ulp), (ipfw_insn_u32 *)cmd) );
1612 ICMP6(ulp)->icmp6_type,
1696 tcp = TCP(ulp);
1713 flags_match(cmd, TCP(ulp)->th_flags));
1717 PULLUP_LEN(hlen, ulp, (TCP(ulp)->th_off << 2));
1719 tcpopts_match(TCP(ulp), cmd));
1725 TCP(ulp)->th_seq);
1731 TCP(ulp)->th_ack);
1740 x = ntohs(TCP(ulp)->th_win);
1757 (TCP(ulp)->th_flags &
2079 TCP(ulp) : NULL))
2279 is_icmp_query(ICMP(ulp))) &&