Lines Matching refs:ulp
1483 void *ulp = NULL; /* upper layer protocol pointer. */ in ipfw_chk() local
1600 while (ulp == NULL && offset == 0) { in ipfw_chk()
1603 PULLUP_TO(hlen, ulp, struct icmp6_hdr); in ipfw_chk()
1605 icmp6_type = ICMP6(ulp)->icmp6_type; in ipfw_chk()
1610 PULLUP_TO(hlen, ulp, struct tcphdr); in ipfw_chk()
1611 dst_port = TCP(ulp)->th_dport; in ipfw_chk()
1612 src_port = TCP(ulp)->th_sport; in ipfw_chk()
1614 args->f_id._flags = tcp_get_flags(TCP(ulp)); in ipfw_chk()
1621 PULLUP_LEN(hlen, ulp, in ipfw_chk()
1626 PULLUP_LEN(hlen, ulp, pktlen - hlen); in ipfw_chk()
1628 PULLUP_LEN(hlen, ulp, in ipfw_chk()
1630 src_port = SCTP(ulp)->src_port; in ipfw_chk()
1631 dst_port = SCTP(ulp)->dest_port; in ipfw_chk()
1636 PULLUP_TO(hlen, ulp, struct udphdr); in ipfw_chk()
1637 dst_port = UDP(ulp)->uh_dport; in ipfw_chk()
1638 src_port = UDP(ulp)->uh_sport; in ipfw_chk()
1642 PULLUP_TO(hlen, ulp, struct ip6_hbh); in ipfw_chk()
1644 hlen += (((struct ip6_hbh *)ulp)->ip6h_len + 1) << 3; in ipfw_chk()
1645 proto = ((struct ip6_hbh *)ulp)->ip6h_nxt; in ipfw_chk()
1646 ulp = NULL; in ipfw_chk()
1650 PULLUP_TO(hlen, ulp, struct ip6_rthdr); in ipfw_chk()
1651 switch (((struct ip6_rthdr *)ulp)->ip6r_type) { in ipfw_chk()
1663 ulp)->ip6r_type); in ipfw_chk()
1669 hlen += (((struct ip6_rthdr *)ulp)->ip6r_len + 1) << 3; in ipfw_chk()
1670 proto = ((struct ip6_rthdr *)ulp)->ip6r_nxt; in ipfw_chk()
1671 ulp = NULL; in ipfw_chk()
1675 PULLUP_TO(hlen, ulp, struct ip6_frag); in ipfw_chk()
1678 proto = ((struct ip6_frag *)ulp)->ip6f_nxt; in ipfw_chk()
1679 offset = ((struct ip6_frag *)ulp)->ip6f_offlg & in ipfw_chk()
1681 ip6f_mf = ((struct ip6_frag *)ulp)->ip6f_offlg & in ipfw_chk()
1693 ntohl(((struct ip6_frag *)ulp)->ip6f_ident); in ipfw_chk()
1694 ulp = NULL; in ipfw_chk()
1698 PULLUP_TO(hlen, ulp, struct ip6_hbh); in ipfw_chk()
1700 hlen += (((struct ip6_hbh *)ulp)->ip6h_len + 1) << 3; in ipfw_chk()
1701 proto = ((struct ip6_hbh *)ulp)->ip6h_nxt; in ipfw_chk()
1702 ulp = NULL; in ipfw_chk()
1706 PULLUP_TO(hlen, ulp, struct ip6_ext); in ipfw_chk()
1708 hlen += (((struct ip6_ext *)ulp)->ip6e_len + 2) << 2; in ipfw_chk()
1709 proto = ((struct ip6_ext *)ulp)->ip6e_nxt; in ipfw_chk()
1710 ulp = NULL; in ipfw_chk()
1714 PULLUP_TO(hlen, ulp, uint32_t); /* SPI, Seq# */ in ipfw_chk()
1726 ulp = ip; /* non-NULL to get out of loop. */ in ipfw_chk()
1731 PULLUP_TO(hlen, ulp, struct ip6_ext); in ipfw_chk()
1736 PULLUP_TO(hlen, ulp, struct pim); in ipfw_chk()
1741 PULLUP_TO(hlen, ulp, struct grehdr); in ipfw_chk()
1745 PULLUP_TO(hlen, ulp, offsetof( in ipfw_chk()
1748 ((struct carp_header *)ulp)->carp_type) in ipfw_chk()
1753 PULLUP_TO(hlen, ulp, struct ip6_hdr); in ipfw_chk()
1757 PULLUP_TO(hlen, ulp, struct ip); in ipfw_chk()
1761 PULLUP_TO(hlen, ulp, struct pfsync_header); in ipfw_chk()
1771 PULLUP_TO(hlen, ulp, struct ip6_ext); in ipfw_chk()
1801 PULLUP_TO(hlen, ulp, struct tcphdr); in ipfw_chk()
1802 dst_port = TCP(ulp)->th_dport; in ipfw_chk()
1803 src_port = TCP(ulp)->th_sport; in ipfw_chk()
1805 args->f_id._flags = tcp_get_flags(TCP(ulp)); in ipfw_chk()
1812 PULLUP_LEN(hlen, ulp, in ipfw_chk()
1817 PULLUP_LEN(hlen, ulp, pktlen - hlen); in ipfw_chk()
1819 PULLUP_LEN(hlen, ulp, in ipfw_chk()
1821 src_port = SCTP(ulp)->src_port; in ipfw_chk()
1822 dst_port = SCTP(ulp)->dest_port; in ipfw_chk()
1827 PULLUP_TO(hlen, ulp, struct udphdr); in ipfw_chk()
1828 dst_port = UDP(ulp)->uh_dport; in ipfw_chk()
1829 src_port = UDP(ulp)->uh_sport; in ipfw_chk()
1833 PULLUP_TO(hlen, ulp, struct icmphdr); in ipfw_chk()
2393 icmptype_match(ICMP(ulp), (ipfw_insn_u32 *)cmd) ); in ipfw_chk()
2401 ICMP6(ulp)->icmp6_type, in ipfw_chk()
2501 tcp = TCP(ulp); in ipfw_chk()
2522 flags_match(cmd, tcp_get_flags(TCP(ulp)))); in ipfw_chk()
2526 if (proto == IPPROTO_TCP && offset == 0 && ulp){ in ipfw_chk()
2527 PULLUP_LEN_LOCKED(hlen, ulp, in ipfw_chk()
2528 (TCP(ulp)->th_off << 2)); in ipfw_chk()
2529 match = tcpopts_match(TCP(ulp), cmd); in ipfw_chk()
2536 TCP(ulp)->th_seq); in ipfw_chk()
2542 TCP(ulp)->th_ack); in ipfw_chk()
2548 ulp != NULL) { in ipfw_chk()
2552 PULLUP_LEN_LOCKED(hlen, ulp, in ipfw_chk()
2553 (TCP(ulp)->th_off << 2)); in ipfw_chk()
2554 if ((tcpopts_parse(TCP(ulp), &mss) & in ipfw_chk()
2576 x = ntohs(TCP(ulp)->th_win); in ipfw_chk()
2593 (tcp_get_flags(TCP(ulp)) & in ipfw_chk()
2933 (ipfw_insn_limit *)cmd, args, ulp, in ipfw_chk()
2955 (q = ipfw_dyn_lookup_state(args, ulp, in ipfw_chk()
3188 is_icmp_query(ICMP(ulp))) && in ipfw_chk()