Home
last modified time | relevance | path

Searched refs:ip_p (Results 1 – 25 of 68) sorted by relevance

123

/f-stack/freebsd/netinet/libalias/
H A Dalias.c355 if (ip->ip_p == IPPROTO_UDP) in IcmpAliasIn2()
372 if (ip->ip_p == IPPROTO_UDP || ip->ip_p == IPPROTO_TCP) { in IcmpAliasIn2()
543 if (ip->ip_p == IPPROTO_UDP) in IcmpAliasOut2()
560 if (ip->ip_p == IPPROTO_UDP || ip->ip_p == IPPROTO_TCP) { in IcmpAliasOut2()
847 ud->uh_dport, pip->ip_p); in UdpAliasOut()
1079 tc->th_dport, pip->ip_p); in TcpAliasOut()
1349 switch (pip->ip_p) { in LibAliasInLocked()
1387 pip->ip_p, &pip->ip_sum); in LibAliasInLocked()
1503 switch (pip->ip_p) { in LibAliasOutLocked()
1577 if (pip->ip_p == IPPROTO_UDP) in LibAliasUnaliasOut()
[all …]
H A Dalias_util.c142 sum += htons((u_short) pip->ip_p); in TcpChecksum()
/f-stack/freebsd/contrib/ipfilter/netinet/
H A Dip_ipsec_pxy.c228 p = ip->ip_p;
229 ip->ip_p = IPPROTO_ESP;
259 ip->ip_p = p & 0xff;
292 p = ip->ip_p;
300 ip->ip_p = IPPROTO_ESP;
346 ip->ip_p = p;
H A Dip_raudio_pxy.c273 swp = ip->ip_p;
277 ip->ip_p = IPPROTO_UDP;
340 ip->ip_p = swp;
H A Dip_pptp_pxy.c207 p = ip->ip_p;
224 ip->ip_p = IPPROTO_GRE;
271 ip->ip_p = p;
/f-stack/dpdk/examples/ipsec-secgw/
H A Dipip.h77 outip4->ip_p = IPPROTO_ESP; in ipip_outbound()
161 if (inip4->ip_p == IPPROTO_UDP) in ipip_inbound()
163 else if (inip4->ip_p == IPPROTO_TCP) in ipip_inbound()
H A Dsp4.c72 .offset = offsetof(struct ip, ip_src) - offsetof(struct ip, ip_p)
79 .offset = offsetof(struct ip, ip_dst) - offsetof(struct ip, ip_p)
86 .offset = sizeof(struct ip) - offsetof(struct ip, ip_p)
93 .offset = sizeof(struct ip) - offsetof(struct ip, ip_p) +
H A Desp.c205 ip4->ip_p = *nexthdr; in esp_inbound_post()
244 nlp = ip4->ip_p; in esp_outbound()
318 ip4->ip_p = IPPROTO_ESP; in esp_outbound()
H A Dipsec_process.c158 ofs = offsetof(struct ip, ip_p); in copy_to_trf()
165 ofs = offsetof(struct ip, ip_p); in copy_to_trf()
/f-stack/freebsd/netipsec/
H A Dudpencap.c149 ip->ip_p = IPPROTO_ESP; in udp_ipsec_input()
150 off = offsetof(struct ip, ip_p); in udp_ipsec_input()
241 ip->ip_p = IPPROTO_UDP; in udp_ipsec_output()
/f-stack/freebsd/netinet/
H A Dip_input.c437 if (IPSEC_INPUT(ipv4, m, hlen, ip->ip_p) != 0) in ip_direct_input()
442 (*inetsw[ip_protox[ip->ip_p]].pr_input)(&m, &hlen, ip->ip_p); in ip_direct_input()
652 if (V_rsvp_on && ip->ip_p==IPPROTO_RSVP) in ip_input()
766 if (ip->ip_p == IPPROTO_IGMP) in ip_input()
819 if (IPSEC_INPUT(ipv4, m, hlen, ip->ip_p) != 0) in ip_input()
829 (*inetsw[ip_protox[ip->ip_p]].pr_input)(&m, &hlen, ip->ip_p); in ip_input()
H A Dip_icmp.c241 if (oip->ip_p == IPPROTO_ICMP && type != ICMP_REDIRECT && in icmp_error()
254 if (oip->ip_p == IPPROTO_TCP) { in icmp_error()
279 } else if (oip->ip_p == IPPROTO_SCTP) { in icmp_error()
386 nip->ip_p = IPPROTO_ICMP; in icmp_error()
545 printf("deliver to protocol %d\n", icp->icmp_ip.ip_p); in icmp_input()
569 ctlfunc = inetsw[ip_protox[icp->icmp_ip.ip_p]].pr_ctlinput; in icmp_input()
H A Dip.h69 u_char ip_p; /* protocol */ member
H A Draw_ip.c433 if (inetsw[ip_protox[ip->ip_p]].pr_input == rip_input) { in rip_input()
486 ip->ip_p = inp->inp_ip_p; in rip_output()
495 ip->ip_dst, 0, 0, ip->ip_p, &hash_type); in rip_output()
541 ip->ip_src, 0, 0, ip->ip_p, &hash_type); in rip_output()
H A Dip_reass.c269 hashkey[2] = (uint32_t)ip->ip_p << 16; in ip_reass()
287 ip->ip_p == fp->ipq_p) in ip_reass()
312 fp->ipq_p = ip->ip_p; in ip_reass()
/f-stack/freebsd/net/
H A Dslcompress.c403 ip->ip_p = cs->cs_id; in sl_compress_tcp()
467 if (ip->ip_p >= MAX_STATES) in sl_uncompress_tcp_core()
469 cs = &comp->rstate[comp->last_recv = ip->ip_p]; in sl_uncompress_tcp_core()
471 ip->ip_p = IPPROTO_TCP; in sl_uncompress_tcp_core()
H A Ddebugnet_inet.c187 if (ip->ip_p != IPPROTO_UDP) { in debugnet_handle_ip()
471 memset(ip, 0, offsetof(struct ip, ip_p)); in debugnet_ip_output()
472 ip->ip_p = IPPROTO_UDP; in debugnet_ip_output()
H A Dif_me.c509 ip->ip_p = mh->mob_proto; in me_input()
595 mh.mob_proto = ip->ip_p; in me_transmit()
625 ip->ip_p = IPPROTO_MOBILE; in me_transmit()
H A Dif_spppfr.c324 (ip->ip_p == IPPROTO_UDP || in sppp_fr_header()
325 ip->ip_p == IPPROTO_TCP && ! tcp->th_flags)) in sppp_fr_header()
/f-stack/tools/compat/include/netinet/
H A Dip.h69 u_char ip_p; /* protocol */ member
/f-stack/freebsd/netgraph/
H A Dng_checksum.c351 switch (ip4->ip_p) in checksum_ipv4()
361 ip4->ip_dst.s_addr, htons(ip4->ip_p + plen - hlen)); in checksum_ipv4()
382 ip4->ip_dst.s_addr, htons(ip4->ip_p + plen - hlen)); in checksum_ipv4()
H A Dng_vjc.c418 if (ip->ip_p == IPPROTO_TCP) { in ng_vjc_rcvdata()
600 if (!knownTCP && ip->ip_p != IPPROTO_TCP) in ng_vjc_pulluphdrs()
/f-stack/freebsd/netpfil/ipfw/nat64/
H A Dnat64_translate.c523 ip->ip_p = (proto == IPPROTO_ICMPV6) ? IPPROTO_ICMP: proto; in nat64_init_ip4hdr()
809 if (ip->ip_p == IPPROTO_ICMP) { in nat64_icmp_reflect()
852 oip->ip_p = IPPROTO_ICMP; in nat64_icmp_reflect()
1117 eip6->ip6_nxt = (ip.ip_p == IPPROTO_ICMP) ? IPPROTO_ICMPV6: ip.ip_p; in nat64_icmp_translate()
1123 switch (ip.ip_p) { in nat64_icmp_translate()
1255 proto = ip->ip_p; in nat64_do_handle_ip4()
/f-stack/freebsd/netgraph/netflow/
H A Dng_netflow.c792 upper_proto = ip->ip_p; in ng_netflow_rcvdata()
798 switch (ip->ip_p) { in ng_netflow_rcvdata()
815 upper_proto = ip->ip_p; in ng_netflow_rcvdata()
/f-stack/freebsd/kern/
H A Duipc_mbufhash.c112 switch (ip->ip_p) { in m_tcpip_hash()

123