Lines Matching full:ulp

1441 	 * We store in ulp a pointer to the upper layer protocol header.  in ipfw_chk()
1444 * ulp is NULL if not found. in ipfw_chk()
1446 void *ulp = NULL; /* upper layer protocol pointer. */ in ipfw_chk() local
1560 while (ulp == NULL && offset == 0) { in ipfw_chk()
1563 PULLUP_TO(hlen, ulp, struct icmp6_hdr); in ipfw_chk()
1565 icmp6_type = ICMP6(ulp)->icmp6_type; in ipfw_chk()
1570 PULLUP_TO(hlen, ulp, struct tcphdr); in ipfw_chk()
1571 dst_port = TCP(ulp)->th_dport; in ipfw_chk()
1572 src_port = TCP(ulp)->th_sport; in ipfw_chk()
1574 args->f_id._flags = tcp_get_flags(TCP(ulp)); in ipfw_chk()
1581 PULLUP_LEN(hlen, ulp, in ipfw_chk()
1586 PULLUP_LEN(hlen, ulp, pktlen - hlen); in ipfw_chk()
1588 PULLUP_LEN(hlen, ulp, in ipfw_chk()
1590 src_port = SCTP(ulp)->src_port; in ipfw_chk()
1591 dst_port = SCTP(ulp)->dest_port; in ipfw_chk()
1596 PULLUP_TO(hlen, ulp, struct udphdr); in ipfw_chk()
1597 dst_port = UDP(ulp)->uh_dport; in ipfw_chk()
1598 src_port = UDP(ulp)->uh_sport; in ipfw_chk()
1602 PULLUP_TO(hlen, ulp, struct ip6_hbh); in ipfw_chk()
1604 hlen += (((struct ip6_hbh *)ulp)->ip6h_len + 1) << 3; in ipfw_chk()
1605 proto = ((struct ip6_hbh *)ulp)->ip6h_nxt; in ipfw_chk()
1606 ulp = NULL; in ipfw_chk()
1610 PULLUP_TO(hlen, ulp, struct ip6_rthdr); in ipfw_chk()
1611 switch (((struct ip6_rthdr *)ulp)->ip6r_type) { in ipfw_chk()
1623 ulp)->ip6r_type); in ipfw_chk()
1629 hlen += (((struct ip6_rthdr *)ulp)->ip6r_len + 1) << 3; in ipfw_chk()
1630 proto = ((struct ip6_rthdr *)ulp)->ip6r_nxt; in ipfw_chk()
1631 ulp = NULL; in ipfw_chk()
1635 PULLUP_TO(hlen, ulp, struct ip6_frag); in ipfw_chk()
1638 proto = ((struct ip6_frag *)ulp)->ip6f_nxt; in ipfw_chk()
1639 offset = ((struct ip6_frag *)ulp)->ip6f_offlg & in ipfw_chk()
1641 ip6f_mf = ((struct ip6_frag *)ulp)->ip6f_offlg & in ipfw_chk()
1653 ntohl(((struct ip6_frag *)ulp)->ip6f_ident); in ipfw_chk()
1654 ulp = NULL; in ipfw_chk()
1658 PULLUP_TO(hlen, ulp, struct ip6_hbh); in ipfw_chk()
1660 hlen += (((struct ip6_hbh *)ulp)->ip6h_len + 1) << 3; in ipfw_chk()
1661 proto = ((struct ip6_hbh *)ulp)->ip6h_nxt; in ipfw_chk()
1662 ulp = NULL; in ipfw_chk()
1666 PULLUP_TO(hlen, ulp, struct ip6_ext); in ipfw_chk()
1668 hlen += (((struct ip6_ext *)ulp)->ip6e_len + 2) << 2; in ipfw_chk()
1669 proto = ((struct ip6_ext *)ulp)->ip6e_nxt; in ipfw_chk()
1670 ulp = NULL; in ipfw_chk()
1674 PULLUP_TO(hlen, ulp, uint32_t); /* SPI, Seq# */ in ipfw_chk()
1686 ulp = ip; /* non-NULL to get out of loop. */ in ipfw_chk()
1691 PULLUP_TO(hlen, ulp, struct ip6_ext); in ipfw_chk()
1696 PULLUP_TO(hlen, ulp, struct pim); in ipfw_chk()
1701 PULLUP_TO(hlen, ulp, struct grehdr); in ipfw_chk()
1705 PULLUP_TO(hlen, ulp, offsetof( in ipfw_chk()
1708 ((struct carp_header *)ulp)->carp_type) in ipfw_chk()
1713 PULLUP_TO(hlen, ulp, struct ip6_hdr); in ipfw_chk()
1717 PULLUP_TO(hlen, ulp, struct ip); in ipfw_chk()
1721 PULLUP_TO(hlen, ulp, struct pfsync_header); in ipfw_chk()
1731 PULLUP_TO(hlen, ulp, struct ip6_ext); in ipfw_chk()
1761 PULLUP_TO(hlen, ulp, struct tcphdr); in ipfw_chk()
1762 dst_port = TCP(ulp)->th_dport; in ipfw_chk()
1763 src_port = TCP(ulp)->th_sport; in ipfw_chk()
1765 args->f_id._flags = tcp_get_flags(TCP(ulp)); in ipfw_chk()
1772 PULLUP_LEN(hlen, ulp, in ipfw_chk()
1777 PULLUP_LEN(hlen, ulp, pktlen - hlen); in ipfw_chk()
1779 PULLUP_LEN(hlen, ulp, in ipfw_chk()
1781 src_port = SCTP(ulp)->src_port; in ipfw_chk()
1782 dst_port = SCTP(ulp)->dest_port; in ipfw_chk()
1787 PULLUP_TO(hlen, ulp, struct udphdr); in ipfw_chk()
1788 dst_port = UDP(ulp)->uh_dport; in ipfw_chk()
1789 src_port = UDP(ulp)->uh_sport; in ipfw_chk()
1793 PULLUP_TO(hlen, ulp, struct icmphdr); in ipfw_chk()
1794 //args->f_id.flags = ICMP(ulp)->icmp_type; in ipfw_chk()
2319 icmptype_match(ICMP(ulp), (ipfw_insn_u32 *)cmd) ); in ipfw_chk()
2327 ICMP6(ulp)->icmp6_type, in ipfw_chk()
2427 tcp = TCP(ulp); in ipfw_chk()
2448 flags_match(cmd, tcp_get_flags(TCP(ulp)))); in ipfw_chk()
2452 if (proto == IPPROTO_TCP && offset == 0 && ulp){ in ipfw_chk()
2453 PULLUP_LEN_LOCKED(hlen, ulp, in ipfw_chk()
2454 (TCP(ulp)->th_off << 2)); in ipfw_chk()
2455 match = tcpopts_match(TCP(ulp), cmd); in ipfw_chk()
2462 TCP(ulp)->th_seq); in ipfw_chk()
2468 TCP(ulp)->th_ack); in ipfw_chk()
2474 ulp != NULL) { in ipfw_chk()
2478 PULLUP_LEN_LOCKED(hlen, ulp, in ipfw_chk()
2479 (TCP(ulp)->th_off << 2)); in ipfw_chk()
2480 if ((tcpopts_parse(TCP(ulp), &mss) & in ipfw_chk()
2502 x = ntohs(TCP(ulp)->th_win); in ipfw_chk()
2519 (tcp_get_flags(TCP(ulp)) & in ipfw_chk()
2859 (ipfw_insn_limit *)cmd, args, ulp, in ipfw_chk()
2881 (q = ipfw_dyn_lookup_state(args, ulp, in ipfw_chk()
3077 is_icmp_query(ICMP(ulp))) && in ipfw_chk()