/dports/net/libusipp/libusipp-libusipp-2.25s/src/ |
H A D | ip.cc | 55 memset(&iph, 0, sizeof(iph)); in IP() 61 iph.id = 0; in IP() 82 memset(&iph, 0, sizeof(iph)); in IP() 89 iph.id = 0; in IP() 112 memcpy(&iph, &rhs.iph, sizeof(iph)); in operator =() 128 memcpy(&iph, &rhs.iph, sizeof(iph)); in IP() 243 iph.ihl = (sizeof(iph) + op.length())>>2; in set_options() 414 memcpy(&iph, &ih, sizeof(iph)); in set_iphdr() 445 iph.tot_len = htons(iph.tot_len); in sendpack() 446 iph.frag_off = htons(iph.frag_off); in sendpack() [all …]
|
H A D | ip6.cc | 50 memset(&iph, 0, sizeof(iph)); in IP6() 53 iph.version = 6; in IP6() 64 memset(&iph, 0, sizeof(iph)); in IP6() 67 iph.version = 6; in IP6() 80 iph = rhs.iph; in IP6() 93 iph = rhs.iph; in operator =() 153 iph.saddr = in6; in set_src() 166 iph.daddr = in6; in set_dst() 174 iph.daddr = dst; in set_dst() 182 iph.saddr = src; in set_src() [all …]
|
/dports/misc/rump/buildrump.sh-b914579/src/sys/external/bsd/ipf/netinet/ |
H A D | ip_htable.c | 353 iph->iph_size * sizeof(*iph->iph_table)); in ipf_htable_create() 361 bzero((char *)iph->iph_table, iph->iph_size * sizeof(*iph->iph_table)); in ipf_htable_create() 369 iph->iph_tail = &iph->iph_list; in ipf_htable_create() 472 iph->iph_next->iph_pnext = iph->iph_pnext; in ipf_htable_free() 474 *iph->iph_pnext = iph->iph_next; in ipf_htable_free() 480 KFREES(iph->iph_table, iph->iph_size * sizeof(*iph->iph_table)); in ipf_htable_free() 503 *iph->iph_pnext = iph->iph_next; in ipf_htable_remove() 505 iph->iph_next->iph_pnext = iph->iph_pnext; in ipf_htable_remove() 708 iph = iph->iph_next) { in ipf_htable_exists() 718 iph = iph->iph_next) { in ipf_htable_exists() [all …]
|
/dports/net/xprobe/xprobe2-0.3/libs-external/USI++/src/ |
H A D | ip.cc | 33 memset(&iph, 0, sizeof(iph)); in IP() 80 memset(&iph, 0, sizeof(iph)); in IP() 134 memcpy(&iph, &rhs.iph, sizeof(iph)); in operator =() 149 memcpy(&iph, &rhs.iph, sizeof(iph)); in IP() 465 iph.tot_len = ntohs(iph.tot_len); in sendpack() 466 iph.frag_off= ntohs(iph.frag_off); in sendpack() 471 iph.check = in_cksum((unsigned short*)&iph, sizeof(iph), 0); in sendpack() 473 memcpy(s, &iph, sizeof(iph)); in sendpack() 484 iph.tot_len = htons(iph.tot_len); in sendpack() 485 iph.frag_off = htons(iph.frag_off); in sendpack() [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/net/xfrm/ |
H A D | xfrm_inout.h | 11 const struct iphdr *iph = ip_hdr(skb); in xfrm4_extract_header() local 14 XFRM_MODE_SKB_CB(skb)->id = iph->id; in xfrm4_extract_header() 16 XFRM_MODE_SKB_CB(skb)->tos = iph->tos; in xfrm4_extract_header() 17 XFRM_MODE_SKB_CB(skb)->ttl = iph->ttl; in xfrm4_extract_header() 18 XFRM_MODE_SKB_CB(skb)->optlen = iph->ihl * 4 - sizeof(*iph); in xfrm4_extract_header() 26 struct ipv6hdr *iph = ipv6_hdr(skb); in xfrm6_extract_header() local 45 iph->version = 6; in xfrm6_beet_make_header() 48 sizeof(iph->flow_lbl)); in xfrm6_beet_make_header() 57 struct iphdr *iph = ip_hdr(skb); in xfrm4_beet_make_header() local 59 iph->ihl = 5; in xfrm4_beet_make_header() [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/xfrm/ |
H A D | xfrm_inout.h | 11 const struct iphdr *iph = ip_hdr(skb); in xfrm4_extract_header() local 14 XFRM_MODE_SKB_CB(skb)->id = iph->id; in xfrm4_extract_header() 16 XFRM_MODE_SKB_CB(skb)->tos = iph->tos; in xfrm4_extract_header() 17 XFRM_MODE_SKB_CB(skb)->ttl = iph->ttl; in xfrm4_extract_header() 18 XFRM_MODE_SKB_CB(skb)->optlen = iph->ihl * 4 - sizeof(*iph); in xfrm4_extract_header() 26 struct ipv6hdr *iph = ipv6_hdr(skb); in xfrm6_extract_header() local 45 iph->version = 6; in xfrm6_beet_make_header() 48 sizeof(iph->flow_lbl)); in xfrm6_beet_make_header() 57 struct iphdr *iph = ip_hdr(skb); in xfrm4_beet_make_header() local 59 iph->ihl = 5; in xfrm4_beet_make_header() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/net/xfrm/ |
H A D | xfrm_inout.h | 11 const struct iphdr *iph = ip_hdr(skb); in xfrm4_extract_header() local 14 XFRM_MODE_SKB_CB(skb)->id = iph->id; in xfrm4_extract_header() 16 XFRM_MODE_SKB_CB(skb)->tos = iph->tos; in xfrm4_extract_header() 17 XFRM_MODE_SKB_CB(skb)->ttl = iph->ttl; in xfrm4_extract_header() 18 XFRM_MODE_SKB_CB(skb)->optlen = iph->ihl * 4 - sizeof(*iph); in xfrm4_extract_header() 26 struct ipv6hdr *iph = ipv6_hdr(skb); in xfrm6_extract_header() local 45 iph->version = 6; in xfrm6_beet_make_header() 48 sizeof(iph->flow_lbl)); in xfrm6_beet_make_header() 57 struct iphdr *iph = ip_hdr(skb); in xfrm4_beet_make_header() local 59 iph->ihl = 5; in xfrm4_beet_make_header() [all …]
|
/dports/net/olsrd/olsrd-0.9.8/lib/mdns/src/ |
H A D | Packet.c | 70 struct ip *iph; in IsIpFragment() local 93 struct iphdr *iph; in GetIpTotalLength() local 112 struct iphdr *iph; in GetIpHeaderLength() local 117 return iph->ihl << 2; in GetIpHeaderLength() 132 struct iphdr *iph; in GetTtl() local 137 return iph->ttl; in GetTtl() 152 struct iphdr *iph; in SaveTtlAndChecksum() local 157 sttl->ttl = iph->ttl; in SaveTtlAndChecksum() 174 struct iphdr *iph; in RestoreTtlAndChecksum() local 179 iph->ttl = sttl->ttl; in RestoreTtlAndChecksum() [all …]
|
/dports/net/olsrd/olsrd-0.9.8/lib/bmf/src/ |
H A D | Packet.c | 74 struct ip* iph; in IsIpFragment() local 97 struct iphdr* iph; in GetIpTotalLength() local 115 struct iphdr* iph; in GetIpHeaderLength() local 120 return iph->ihl << 2; in GetIpHeaderLength() 134 struct iphdr* iph; in GetTtl() local 139 return iph->ttl; in GetTtl() 153 struct iphdr* iph; in SaveTtlAndChecksum() local 158 sttl->ttl = iph->ttl; in SaveTtlAndChecksum() 174 struct iphdr* iph; in RestoreTtlAndChecksum() local 179 iph->ttl = sttl->ttl; in RestoreTtlAndChecksum() [all …]
|
/dports/security/snort3/snort3-3.1.19.0/src/protocols/ |
H A D | ip.cc | 35 iph = nullptr; in reset() 42 iph = (const void*)h4; in set() 51 iph = (const void*)h6; in set() 63 iph = nullptr; in set() 96 case IAT_4: return ((const IP4Hdr*)iph)->tos(); in tos() 97 case IAT_6: return ((const IP6Hdr*)iph)->tos(); in tos() 107 case IAT_4: return ((const IP4Hdr*)iph)->ttl(); in ttl() 170 return ( lhs.iph == rhs.iph ); in operator ==() 228 case IAT_4: return reinterpret_cast<const uint8_t*>(iph) + ((const IP4Hdr*)iph)->hlen(); in ip_data() 229 case IAT_6: return reinterpret_cast<const uint8_t*>(iph) + ((const IP6Hdr*)iph)->hlen(); in ip_data() [all …]
|
/dports/net/olsrd/olsrd-0.9.8/lib/p2pd/src/ |
H A D | Packet.c | 67 struct ip* iph; in IsIpFragment() local 90 struct iphdr* iph; in GetIpTotalLength() local 166 struct iphdr *iph; in GetIpHeaderLength() local 171 return iph->ihl << 2; in GetIpHeaderLength() 199 struct iphdr* iph; in GetTtl() local 204 return iph->ttl; in GetTtl() 218 struct iphdr* iph; in SaveTtlAndChecksum() local 223 sttl->ttl = iph->ttl; in SaveTtlAndChecksum() 239 struct iphdr* iph; in RestoreTtlAndChecksum() local 244 iph->ttl = sttl->ttl; in RestoreTtlAndChecksum() [all …]
|
/dports/science/code_saturne/code_saturne-7.1.0/src/cfbl/ |
H A D | cs_hgn_phase_thermo.c | 118 cs_hgn_thermo_define_stiffened_gas(int iph, in cs_hgn_thermo_define_stiffened_gas() argument 125 if (iph > 1) { in cs_hgn_thermo_define_stiffened_gas() 131 _stiffened_gas[iph].cv = cv; in cs_hgn_thermo_define_stiffened_gas() 132 _stiffened_gas[iph].gamma = gamma; in cs_hgn_thermo_define_stiffened_gas() 133 _stiffened_gas[iph].pinf = pinf; in cs_hgn_thermo_define_stiffened_gas() 134 _stiffened_gas[iph].qprim = qprim; in cs_hgn_thermo_define_stiffened_gas() 135 _stiffened_gas[iph].q = q; in cs_hgn_thermo_define_stiffened_gas() 154 int iph) in cs_hgn_phase_thermo_entropy_ve() argument 175 int iph) in cs_hgn_phase_thermo_temperature_ve() argument 196 int iph) in cs_hgn_phase_thermo_pressure_ve() argument [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/include/net/netfilter/ |
H A D | nf_tables_ipv4.h | 23 struct iphdr *iph, _iph; in __nft_set_pktinfo_ipv4_validate() local 26 iph = skb_header_pointer(skb, skb_network_offset(skb), sizeof(*iph), in __nft_set_pktinfo_ipv4_validate() 28 if (!iph) in __nft_set_pktinfo_ipv4_validate() 31 if (iph->ihl < 5 || iph->version != 4) in __nft_set_pktinfo_ipv4_validate() 34 len = ntohs(iph->tot_len); in __nft_set_pktinfo_ipv4_validate() 35 thoff = iph->ihl * 4; in __nft_set_pktinfo_ipv4_validate() 42 pkt->tprot = iph->protocol; in __nft_set_pktinfo_ipv4_validate() 59 struct iphdr *iph; in nft_set_pktinfo_ipv4_ingress() local 65 iph = ip_hdr(skb); in nft_set_pktinfo_ipv4_ingress() 66 if (iph->ihl < 5 || iph->version != 4) in nft_set_pktinfo_ipv4_ingress() [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/include/net/netfilter/ |
H A D | nf_tables_ipv4.h | 23 struct iphdr *iph, _iph; in __nft_set_pktinfo_ipv4_validate() local 26 iph = skb_header_pointer(skb, skb_network_offset(skb), sizeof(*iph), in __nft_set_pktinfo_ipv4_validate() 28 if (!iph) in __nft_set_pktinfo_ipv4_validate() 31 if (iph->ihl < 5 || iph->version != 4) in __nft_set_pktinfo_ipv4_validate() 34 len = ntohs(iph->tot_len); in __nft_set_pktinfo_ipv4_validate() 35 thoff = iph->ihl * 4; in __nft_set_pktinfo_ipv4_validate() 42 pkt->tprot = iph->protocol; in __nft_set_pktinfo_ipv4_validate() 59 struct iphdr *iph; in nft_set_pktinfo_ipv4_ingress() local 65 iph = ip_hdr(skb); in nft_set_pktinfo_ipv4_ingress() 66 if (iph->ihl < 5 || iph->version != 4) in nft_set_pktinfo_ipv4_ingress() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/include/net/netfilter/ |
H A D | nf_tables_ipv4.h | 23 struct iphdr *iph, _iph; in __nft_set_pktinfo_ipv4_validate() local 26 iph = skb_header_pointer(skb, skb_network_offset(skb), sizeof(*iph), in __nft_set_pktinfo_ipv4_validate() 28 if (!iph) in __nft_set_pktinfo_ipv4_validate() 31 if (iph->ihl < 5 || iph->version != 4) in __nft_set_pktinfo_ipv4_validate() 34 len = ntohs(iph->tot_len); in __nft_set_pktinfo_ipv4_validate() 35 thoff = iph->ihl * 4; in __nft_set_pktinfo_ipv4_validate() 42 pkt->tprot = iph->protocol; in __nft_set_pktinfo_ipv4_validate() 59 struct iphdr *iph; in nft_set_pktinfo_ipv4_ingress() local 65 iph = ip_hdr(skb); in nft_set_pktinfo_ipv4_ingress() 66 if (iph->ihl < 5 || iph->version != 4) in nft_set_pktinfo_ipv4_ingress() [all …]
|
/dports/sysutils/busybox/busybox-1.26.2/networking/libiproute/ |
H A D | iptunnel.c | 193 p->iph.ihl = 5; in parse_args() 207 if (p->iph.protocol && p->iph.protocol != IPPROTO_IPIP) { in parse_args() 214 if (p->iph.protocol && p->iph.protocol != IPPROTO_GRE) { in parse_args() 221 if (p->iph.protocol && p->iph.protocol != IPPROTO_IPV6) { in parse_args() 358 if (IN_MULTICAST(ntohl(p->iph.daddr)) && !p->iph.saddr) { in parse_args() 370 if (p.iph.ttl && p.iph.frag_off == 0) { in do_add() 416 p->iph.daddr ? format_host(AF_INET, 4, &p->iph.daddr) : "any", in print_tunnel() 417 p->iph.saddr ? format_host(AF_INET, 4, &p->iph.saddr) : "any" in print_tunnel() 426 if (p->iph.ttl) in print_tunnel() 512 (p->iph.daddr && p1.iph.daddr != p->iph.daddr) || in do_tunnels_list() [all …]
|
/dports/security/fragrouter/fragrouter-1.6/test/ |
H A D | mies.c | 46 struct ip *iph; in main() local 50 iph = (struct ip *)buf; in main() 53 iph->ip_hl = 20 / 4; in main() 54 iph->ip_v = 4; in main() 55 iph->ip_tos = 0; in main() 56 iph->ip_len = FIX(pktlen); in main() 57 iph->ip_id = htons(getpid()); in main() 58 iph->ip_ttl = 255; in main() 59 iph->ip_p = IPPROTO_TCP; in main() 60 iph->ip_sum = 0; in main() [all …]
|
/dports/security/fragrouter/fragrouter-1.6/ |
H A D | print.c | 91 struct ip *iph; in print_ip() local 94 iph = (struct ip *)bp; in print_ip() 111 switch (iph->ip_p) { in print_ip() 144 if (iph->ip_tos) printf(" [tos 0x%x]", (int)iph->ip_tos); in print_ip() 145 if (iph->ip_ttl <= 1) printf(" [ttl %d]", (int)iph->ip_ttl); in print_ip() 151 struct ip *iph; in print_udp() local 154 iph = (struct ip *)bp; in print_udp() 167 struct ip *iph; in print_icmp() local 170 iph = (struct ip *)bp; in print_icmp() 182 struct ip *iph; in print_tcp() local [all …]
|
/dports/multimedia/libv4l/linux-5.13-rc2/net/netfilter/ipvs/ |
H A D | ip_vs_proto_ah_esp.c | 41 const struct ip_vs_iphdr *iph, in ah_esp_conn_fill_param_proto() argument 44 if (likely(!ip_vs_iph_inverse(iph))) in ah_esp_conn_fill_param_proto() 46 &iph->saddr, htons(PORT_ISAKMP), in ah_esp_conn_fill_param_proto() 50 &iph->daddr, htons(PORT_ISAKMP), in ah_esp_conn_fill_param_proto() 56 const struct ip_vs_iphdr *iph) in ah_esp_conn_in_get() argument 72 IP_VS_DBG_ADDR(af, &iph->saddr), in ah_esp_conn_in_get() 73 IP_VS_DBG_ADDR(af, &iph->daddr)); in ah_esp_conn_in_get() 82 const struct ip_vs_iphdr *iph) in ah_esp_conn_out_get() argument 94 IP_VS_DBG_ADDR(af, &iph->saddr), in ah_esp_conn_out_get() 95 IP_VS_DBG_ADDR(af, &iph->daddr)); in ah_esp_conn_out_get() [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/net/netfilter/ipvs/ |
H A D | ip_vs_proto_ah_esp.c | 41 const struct ip_vs_iphdr *iph, in ah_esp_conn_fill_param_proto() argument 44 if (likely(!ip_vs_iph_inverse(iph))) in ah_esp_conn_fill_param_proto() 46 &iph->saddr, htons(PORT_ISAKMP), in ah_esp_conn_fill_param_proto() 50 &iph->daddr, htons(PORT_ISAKMP), in ah_esp_conn_fill_param_proto() 56 const struct ip_vs_iphdr *iph) in ah_esp_conn_in_get() argument 72 IP_VS_DBG_ADDR(af, &iph->saddr), in ah_esp_conn_in_get() 73 IP_VS_DBG_ADDR(af, &iph->daddr)); in ah_esp_conn_in_get() 82 const struct ip_vs_iphdr *iph) in ah_esp_conn_out_get() argument 94 IP_VS_DBG_ADDR(af, &iph->saddr), in ah_esp_conn_out_get() 95 IP_VS_DBG_ADDR(af, &iph->daddr)); in ah_esp_conn_out_get() [all …]
|
/dports/multimedia/v4l-utils/linux-5.13-rc2/net/netfilter/ipvs/ |
H A D | ip_vs_proto_ah_esp.c | 41 const struct ip_vs_iphdr *iph, in ah_esp_conn_fill_param_proto() argument 44 if (likely(!ip_vs_iph_inverse(iph))) in ah_esp_conn_fill_param_proto() 46 &iph->saddr, htons(PORT_ISAKMP), in ah_esp_conn_fill_param_proto() 50 &iph->daddr, htons(PORT_ISAKMP), in ah_esp_conn_fill_param_proto() 56 const struct ip_vs_iphdr *iph) in ah_esp_conn_in_get() argument 72 IP_VS_DBG_ADDR(af, &iph->saddr), in ah_esp_conn_in_get() 73 IP_VS_DBG_ADDR(af, &iph->daddr)); in ah_esp_conn_in_get() 82 const struct ip_vs_iphdr *iph) in ah_esp_conn_out_get() argument 94 IP_VS_DBG_ADDR(af, &iph->saddr), in ah_esp_conn_out_get() 95 IP_VS_DBG_ADDR(af, &iph->daddr)); in ah_esp_conn_out_get() [all …]
|
/dports/net/libnids/libnids-1.24/src/ |
H A D | ip_fragment.c | 308 if (iph->ip_id == qp->iph->ip_id && in ip_find() 309 iph->ip_src.s_addr == qp->iph->ip_src.s_addr && in ip_find() 310 iph->ip_dst.s_addr == qp->iph->ip_dst.s_addr && in ip_find() 311 iph->ip_p == qp->iph->ip_p) { in ip_find() 418 memcpy(qp->iph, iph, ihlen + 8); in ip_create() 476 struct ip *iph; in ip_glue() local 523 iph->ip_off = 0; in ip_glue() 524 iph->ip_len = htons((iph->ip_hl * 4) + count); in ip_glue() 552 qp = ip_find(iph); in ip_defrag() 584 memcpy(qp->iph, iph, ihl + 8); in ip_defrag() [all …]
|
/dports/net/ipsumdump/ipsumdump-1.86/libclick-2.1/libsrc/ |
H A D | ipflowid.cc | 31 const click_ip *iph = p->ip_header(); in IPFlowID() local 34 && IP_FIRSTFRAG(iph)); in IPFlowID() 37 assign(iph->ip_src.s_addr, udph->uh_sport, in IPFlowID() 38 iph->ip_dst.s_addr, udph->uh_dport); in IPFlowID() 40 assign(iph->ip_dst.s_addr, udph->uh_dport, in IPFlowID() 41 iph->ip_src.s_addr, udph->uh_sport); in IPFlowID() 46 assert(iph && IP_FIRSTFRAG(iph)); in IPFlowID() 50 assign(iph->ip_src.s_addr, udph->uh_sport, in IPFlowID() 51 iph->ip_dst.s_addr, udph->uh_dport); in IPFlowID() 53 assign(iph->ip_dst.s_addr, udph->uh_dport, in IPFlowID() [all …]
|
/dports/net-mgmt/librenms/librenms-21.5.1/tests/snmpsim/ |
H A D | calix_716ge.snmprec | 12 1.3.6.1.2.1.2.2.1.2.134|4|iph-0 13 1.3.6.1.2.1.2.2.1.2.135|4|iph-1 14 1.3.6.1.2.1.2.2.1.2.136|4|iph-2 15 1.3.6.1.2.1.2.2.1.2.137|4|iph-3 16 1.3.6.1.2.1.2.2.1.2.138|4|iph-4 17 1.3.6.1.2.1.2.2.1.2.139|4|iph-5 175 1.3.6.1.2.1.31.1.1.1.1.134|4|iph-0.................................................................… 176 1.3.6.1.2.1.31.1.1.1.1.135|4|iph-1.................................................................… 177 1.3.6.1.2.1.31.1.1.1.1.136|4|iph-2.................................................................… 178 1.3.6.1.2.1.31.1.1.1.1.137|4|iph-3.................................................................… [all …]
|
/dports/multimedia/v4l_compat/linux-5.13-rc2/tools/testing/selftests/bpf/progs/ |
H A D | xdping_kern.c | 65 struct iphdr *iph; in icmp_check() local 73 iph = data + sizeof(*eth); in icmp_check() 78 if (bpf_ntohs(iph->tot_len) - sizeof(*iph) != ICMP_ECHO_LEN) in icmp_check() 97 struct iphdr *iph; in xdping_client() local 111 raddr = iph->saddr; in xdping_client() 139 iph->saddr = iph->daddr; in xdping_client() 140 iph->daddr = raddr; in xdping_client() 160 struct iphdr *iph; in xdping_server() local 171 raddr = iph->saddr; in xdping_server() 175 iph->saddr = iph->daddr; in xdping_server() [all …]
|