Home
last modified time | relevance | path

Searched refs:ip4 (Results 1 – 25 of 27) sorted by relevance

12

/f-stack/dpdk/examples/ipsec-secgw/
H A Desp.c28 struct ip *ip4; in esp_inbound() local
42 ip_hdr_len = ip4->ip_hl * 4; in esp_inbound()
43 else if (ip4->ip_v == IP6_VERSION) in esp_inbound()
48 ip4->ip_v); in esp_inbound()
147 struct ip *ip4, *ip; in esp_inbound_post() local
205 ip4->ip_p = *nexthdr; in esp_inbound_post()
225 struct ip *ip4; in esp_outbound() local
244 nlp = ip4->ip_p; in esp_outbound()
257 ip4->ip_v); in esp_outbound()
316 ip4 = (struct ip *)new_ip; in esp_outbound()
[all …]
H A Dipip.h79 outip4->ip_src.s_addr = src->ip.ip4; in ipip_outbound()
80 outip4->ip_dst.s_addr = dst->ip.ip4; in ipip_outbound()
100 ip4_ecn_setup(struct ip *ip4) in ip4_ecn_setup() argument
102 if (ip4->ip_tos & IPTOS_ECN_MASK) { in ip4_ecn_setup()
106 old = ip4->ip_tos; in ip4_ecn_setup()
107 ip4->ip_tos |= IPTOS_ECN_CE; in ip4_ecn_setup()
108 sum = old + (~(*(uint8_t *)&ip4->ip_tos) & 0xff); in ip4_ecn_setup()
109 sum += rte_be_to_cpu_16(ip4->ip_sum); in ip4_ecn_setup()
111 ip4->ip_sum = rte_cpu_to_be_16(sum + (sum >> 16)); in ip4_ecn_setup()
H A Dipsec-secgw.c374 t->ip4.data[t->ip4.num] = &iph4->next_proto_id; in prepare_one_packet()
375 t->ip4.pkts[(t->ip4.num)++] = pkt; in prepare_one_packet()
464 t->ip4.num = 0; in prepare_traffic()
682 n4 = trf->ip4.num; in split46_traffic()
705 trf->ip4.num = n4; in split46_traffic()
813 free_pkts(traffic->ip4.pkts, traffic->ip4.num); in process_pkts_inbound_nosp()
1047 route4_pkts(qconf->rt4_ctx, traffic.ip4.pkts, traffic.ip4.num); in process_pkts()
1100 trf.ip4.num = 0; in drain_inbound_crypto_queues()
1111 route4_pkts(qconf->rt4_ctx, trf.ip4.pkts, trf.ip4.num); in drain_inbound_crypto_queues()
1134 trf.ip4.num = 0; in drain_outbound_crypto_queues()
[all …]
H A Dsa.c560 rule->src.ip.ip4 = rte_bswap32( in parse_sa_tokens()
603 rule->dst.ip.ip4 = rte_bswap32( in parse_sa_tokens()
842 uint32_t_to_char(sa->src.ip.ip4, &a, &b, &c, &d); in print_one_sa_rule()
1037 ip_addr[0].ip.ip4 != 0 && in sa_add_address_inline_crypto()
1038 ip_addr[1].ip.ip4 != 0) { in sa_add_address_inline_crypto()
1040 sa->src.ip.ip4 = ip_addr[0].ip.ip4; in sa_add_address_inline_crypto()
1041 sa->dst.ip.ip4 = ip_addr[1].ip.ip4; in sa_add_address_inline_crypto()
1113 sa->src.ip.ip4 = rte_cpu_to_be_32(sa->src.ip.ip4); in sa_add_rules()
1114 sa->dst.ip.ip4 = rte_cpu_to_be_32(sa->dst.ip.ip4); in sa_add_rules()
1347 .src_addr = lsa->src.ip.ip4, in ipsec_sa_init()
[all …]
H A Dipsec-secgw.h60 struct traffic_type ip4; member
74 struct traffic_type_nb ip4; member
H A Dsad.h36 (sa->src.ip.ip4 == ipv4->src_addr) && in cmp_sa_key()
37 (sa->dst.ip.ip4 == ipv4->dst_addr)) || in cmp_sa_key()
H A Dipsec.c33 (uint8_t *)&sa->src.ip.ip4, 4); in set_ipsec_conf()
36 (uint8_t *)&sa->dst.ip.ip4, 4); in set_ipsec_conf()
248 sa->ipv4_spec.hdr.dst_addr = sa->dst.ip.ip4; in create_inline_session()
249 sa->ipv4_spec.hdr.src_addr = sa->src.ip.ip4; in create_inline_session()
463 sa->ipv4_spec.hdr.dst_addr = sa->dst.ip.ip4; in create_ipsec_esp_flow()
464 sa->ipv4_spec.hdr.src_addr = sa->src.ip.ip4; in create_ipsec_esp_flow()
H A Dipsec_process.c157 out = &trf->ip4; in copy_to_trf()
164 out = &trf->ip4; in copy_to_trf()
378 trf->ip4.num = 0; in ipsec_cqp_process()
H A Dsp4.c630 ip_addr[0].ip.ip4 = IPV4_SRC_FROM_SP(*rule); in sp4_spi_present()
631 ip_addr[1].ip.ip4 = IPV4_DST_FROM_SP(*rule); in sp4_spi_present()
H A Dipsec.h60 uint32_t ip4; member
/f-stack/freebsd/netinet/
H A Dtcp_lro.c319 struct ip *ip4; in tcp_lro_rx_csum_fixup() local
323 cs = ip4->ip_len; in tcp_lro_rx_csum_fixup()
325 cs = in_addword(ntohs(ip4->ip_len) - sizeof(*ip4), in tcp_lro_rx_csum_fixup()
327 cs = in_pseudo(ip4->ip_src.s_addr, ip4->ip_dst.s_addr, in tcp_lro_rx_csum_fixup()
410 if ((ip4->ip_hl << 2) != sizeof (*ip4)) in tcp_lro_rx_ipv4()
508 struct ip *ip4; in tcp_flush_out_le() local
512 ip4 = le->le_ip4; in tcp_flush_out_le()
514 c = ~ip4->ip_sum; in tcp_flush_out_le()
516 c = ~ip4->ip_len; in tcp_flush_out_le()
611 le->le_ip4 = ip4; in tcp_set_le_to_m()
[all …]
H A Dtcp_lro.h51 struct ip *ip4; member
90 #define le_ip4 leip.ip4
H A Dtcp_hostcache.h54 struct in_addr ip4; /* IP address */ member
H A Dtcp_hostcache.c324 if (memcmp(&inc->inc_faddr, &hc_entry->ip4, in tcp_hc_lookup()
418 hc_entry->ip4 = inc->inc_faddr; in tcp_hc_insert()
656 hc_entry->ip4.s_addr ? in sysctl_tcp_hc_list()
657 inet_ntoa_r(hc_entry->ip4, ip4buf) : in sysctl_tcp_hc_list()
/f-stack/freebsd/netgraph/
H A Dng_checksum.c309 struct ip *ip4; in checksum_ipv4() local
317 ip4 = (struct ip *) mtodo(m, l3_offset); in checksum_ipv4()
319 if (ip4->ip_v != IPVERSION) in checksum_ipv4()
322 hlen = ip4->ip_hl << 2; in checksum_ipv4()
323 plen = ntohs(ip4->ip_len); in checksum_ipv4()
329 ip4->ip_sum = 0; in checksum_ipv4()
333 ip4->ip_sum = in_cksum_hdr(ip4); in checksum_ipv4()
346 if (ip4->ip_off & htons(IP_MF|IP_OFFMASK)) { in checksum_ipv4()
351 switch (ip4->ip_p) in checksum_ipv4()
361 ip4->ip_dst.s_addr, htons(ip4->ip_p + plen - hlen)); in checksum_ipv4()
[all …]
/f-stack/freebsd/kern/
H A Dkern_jail.c573 ip4 = NULL; in kern_jail_set()
810 ip4 = malloc(ip4s * sizeof(*ip4), M_PRISON, M_WAITOK); in kern_jail_set()
811 bcopy(op, ip4, ip4s * sizeof(*ip4)); in kern_jail_set()
821 qsort(ip4 + 1, ip4s - 1, sizeof(*ip4), in kern_jail_set()
838 (ip4[0].s_addr == ip4[ii+1].s_addr || in kern_jail_set()
839 ip4[ii].s_addr == ip4[ii+1].s_addr)) { in kern_jail_set()
1614 pr->pr_ip4 = ip4; in kern_jail_set()
1615 ip4 = NULL; in kern_jail_set()
1782 ip4 = malloc(ip4s * sizeof(*ip4), M_PRISON, M_WAITOK); in kern_jail_set()
1794 ip4 = NULL; in kern_jail_set()
[all …]
/f-stack/dpdk/drivers/net/i40e/
H A Di40e_fdir.c780 struct rte_ipv4_hdr *ip4; in fill_ip4_head() local
782 ip4 = (struct rte_ipv4_hdr *)raw_pkt; in fill_ip4_head()
785 ip4->version_ihl = I40E_FDIR_IP_DEFAULT_VERSION_IHL; in fill_ip4_head()
787 ip4->total_length = rte_cpu_to_be_16(I40E_FDIR_IP_DEFAULT_LEN); in fill_ip4_head()
788 ip4->time_to_live = fdir_input->flow.ip4_flow.ttl ? in fill_ip4_head()
791 ip4->type_of_service = fdir_input->flow.ip4_flow.tos; in fill_ip4_head()
792 ip4->next_proto_id = fdir_input->flow.ip4_flow.proto ? in fill_ip4_head()
799 ip4->src_addr = fdir_input->flow.ip4_flow.dst_ip; in fill_ip4_head()
800 ip4->dst_addr = fdir_input->flow.ip4_flow.src_ip; in fill_ip4_head()
H A Di40e_ethdev.h524 struct rte_eth_ipv4_flow ip4; member
565 struct rte_eth_ipv4_flow ip4; member
/f-stack/freebsd/netpfil/ipfw/nat64/
H A Dnat64_translate.c182 struct ip *ip4; in nat64_direct_output_one() local
186 ip4 = mtod(m, struct ip *); in nat64_direct_output_one()
188 switch (ip4->ip_v) { in nat64_direct_output_one()
190 dst4.sin_addr = ip4->ip_dst; in nat64_direct_output_one()
234 struct ip *ip4; in nat64_output() local
237 ip4 = mtod(m, struct ip *); in nat64_output()
238 switch (ip4->ip_v) { in nat64_output()
/f-stack/dpdk/drivers/net/enic/
H A Denic_fm_flow.c454 memcpy(&fm_data->l3.ip4, spec, sizeof(*spec)); in enic_fm_copy_item_ipv4()
455 memcpy(&fm_mask->l3.ip4, mask, sizeof(*mask)); in enic_fm_copy_item_ipv4()
565 ip = (struct rte_ipv4_hdr *)&fm_mask->l3.ip4; in enic_fm_copy_item_sctp()
716 hdr->l3.ip4.fk_saddr = 0xFFFFFFFF; in enic_fet_alloc()
717 hdr->l3.ip4.fk_daddr = 0xFFFFFFFF; in enic_fet_alloc()
1067 struct rte_ipv4_hdr *ip4; in enic_fm_copy_vxlan_encap() local
1071 ip4 = (struct rte_ipv4_hdr *)template; in enic_fm_copy_vxlan_encap()
1084 ip4->version_ihl = RTE_IPV4_VHL_DEF; in enic_fm_copy_vxlan_encap()
1085 if (ip4->time_to_live == 0) in enic_fm_copy_vxlan_encap()
1086 ip4->time_to_live = IP_DEFTTL; in enic_fm_copy_vxlan_encap()
[all …]
H A Denic_flow.c1369 char ip4[16], ip6[16], udp[16], tcp[16], tcpudp[16], ip4csum[16]; in enic_dump_filter() local
1384 sprintf(ip4, "%s ", in enic_dump_filter()
1388 sprintf(ip4, "%s ", "ip4(x)"); in enic_dump_filter()
1438 ENICPMD_LOG(INFO, "\tFlags: %s%s%s%s%s%s%s%s\n", ip4, ip6, udp, in enic_dump_filter()
/f-stack/dpdk/drivers/net/enic/base/
H A Dvnic_flowman.h130 } __rte_packed ip4; member
/f-stack/freebsd/sys/
H A Djail.h51 struct in_addr *ip4; member
/f-stack/dpdk/doc/guides/sample_app_ug/
H A Dl3_forward_graph.rst206 "ip4*",
272 /* Add route to ip4 graph infra */
/f-stack/tools/ipfw/
H A Dipfw2.c2033 int l, proto, ip4, ip6; in print_proto() local
2036 proto = ip4 = ip6 = 0; in print_proto()
2044 ip4 = 1; in print_proto()
2046 ip4++; in print_proto()
2057 if (proto == 0 && ip4 == 0 && ip6 == 0) { in print_proto()
2065 if (ip4 || ip6) in print_proto()
2066 cmd = print_opcode(bp, fo, state, ip4 > ip6 ? O_IP4: O_IP6); in print_proto()
2068 cmd = print_opcode(bp, fo, state, ip4 > ip6 ? O_IP6: O_IP4); in print_proto()

12