Home
last modified time | relevance | path

Searched refs:ipv4 (Results 101 - 125 of 609) sorted by relevance

12345678910>>...25

/kernel/linux/linux-5.10/drivers/infiniband/hw/i40iw/
H A Di40iw_cm.h304 bool ipv4; member
349 bool ipv4; member
376 bool ipv4; member
452 bool ipv4,
457 u32 *ipaddr, bool ipv4, bool ifup);
H A Di40iw_cm.c217 cm_info->ipv4 = cm_node->ipv4; in i40iw_get_addr_info()
267 if (cm_node->ipv4) in i40iw_send_cm_event()
410 if (cm_node->ipv4) in i40iw_form_cm_frame()
426 if (cm_node->ipv4) { in i40iw_form_cm_frame()
427 sqbuf->ipv4 = true; in i40iw_form_cm_frame()
458 sqbuf->ipv4 = false; in i40iw_form_cm_frame()
1586 if (child_listen_node->ipv4) in i40iw_del_multiple_qhash()
1900 event.cm_info.ipv4 = loopback->ipv4; in i40iw_dec_refcnt_listen()
4249 i40iw_qhash_ctrl(struct i40iw_device *iwdev, struct i40iw_cm_listener *parent_listen_node, struct i40iw_cm_info *nfo, u32 *ipaddr, bool ipv4, bool ifup) i40iw_qhash_ctrl() argument
4365 i40iw_if_notify(struct i40iw_device *iwdev, struct net_device *netdev, u32 *ipaddr, bool ipv4, bool ifup) i40iw_if_notify() argument
[all...]
/kernel/linux/linux-5.10/include/net/
H A Dinet_sock.h111 READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_fwmark_accept)) in inet_request_mark()
124 if (!bound_dev_if && READ_ONCE(net->ipv4.sysctl_tcp_l3mdev_accept)) in inet_request_bound_dev_if()
136 if (!READ_ONCE(net->ipv4.sysctl_tcp_l3mdev_accept)) in inet_sk_bound_l3mdev()
156 return inet_bound_dev_eq(!!READ_ONCE(net->ipv4.sysctl_tcp_l3mdev_accept), in inet_sk_bound_dev_eq()
385 return READ_ONCE(net->ipv4.sysctl_ip_nonlocal_bind) || in inet_can_nonlocal_bind()
H A Dudp.h263 return inet_bound_dev_eq(!!READ_ONCE(net->ipv4.sysctl_udp_l3mdev_accept), in udp_sk_bound_dev_eq()
270 /* net/ipv4/udp.c */
424 #define __UDPX_MIB(sk, ipv4) \
426 ipv4 ? (IS_UDPLITE(sk) ? sock_net(sk)->mib.udplite_statistics : \
432 #define __UDPX_MIB(sk, ipv4) \
478 struct sk_buff *skb, bool ipv4) in udp_rcv_segment()
508 SNMP_ADD_STATS(__UDPX_MIB(sk, ipv4), UDP_MIB_INERRORS, segs_nr); in udp_rcv_segment()
477 udp_rcv_segment(struct sock *sk, struct sk_buff *skb, bool ipv4) udp_rcv_segment() argument
/kernel/linux/linux-6.6/include/net/
H A Dinet_sock.h112 if (!mark && READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_fwmark_accept)) in inet_request_mark()
125 if (!bound_dev_if && READ_ONCE(net->ipv4.sysctl_tcp_l3mdev_accept)) in inet_request_bound_dev_if()
137 if (!READ_ONCE(net->ipv4.sysctl_tcp_l3mdev_accept)) in inet_sk_bound_l3mdev()
157 return inet_bound_dev_eq(!!READ_ONCE(net->ipv4.sysctl_tcp_l3mdev_accept), in inet_sk_bound_dev_eq()
417 return READ_ONCE(net->ipv4.sysctl_ip_nonlocal_bind) || in inet_can_nonlocal_bind()
H A Dudp.h252 return inet_bound_dev_eq(!!READ_ONCE(net->ipv4.sysctl_udp_l3mdev_accept), in udp_sk_bound_dev_eq()
259 /* net/ipv4/udp.c */
412 #define __UDPX_MIB(sk, ipv4) \
414 ipv4 ? (IS_UDPLITE(sk) ? sock_net(sk)->mib.udplite_statistics : \
420 #define __UDPX_MIB(sk, ipv4) \
465 struct sk_buff *skb, bool ipv4) in udp_rcv_segment()
495 SNMP_ADD_STATS(__UDPX_MIB(sk, ipv4), UDP_MIB_INERRORS, segs_nr); in udp_rcv_segment()
464 udp_rcv_segment(struct sock *sk, struct sk_buff *skb, bool ipv4) udp_rcv_segment() argument
/kernel/linux/linux-6.6/tools/testing/selftests/net/forwarding/
H A Dhw_stats_l3.sh224 __test_stats rx ipv4
229 __test_stats tx ipv4
294 __test_stats_report rx ipv4
299 __test_stats_report tx ipv4
315 ___test_stats rx ipv4 \
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/
H A Dxdpwall.c96 struct iphdr *ipv4; member
156 filter_ipv4_addr(info->ip.ipv4->saddr); in filter_src_dst_ip()
158 filter_ipv4_lpm(info->ip.ipv4->saddr); in filter_src_dst_ip()
160 filter_ipv4_lpm(info->ip.ipv4->daddr); in filter_src_dst_ip()
291 info->ip.ipv4 = inner_ip4h; in parse_gue_v6()
/kernel/linux/linux-5.10/tools/testing/selftests/netfilter/
H A Dnft_flowtable.sh130 ip netns exec nsr$i sysctl net.ipv4.conf.veth0.forwarding=1 > /dev/null
131 ip netns exec nsr$i sysctl net.ipv4.conf.veth1.forwarding=1 > /dev/null
139 if ! ip netns exec ns$i sysctl net.ipv4.tcp_no_metrics_save=1 > /dev/null; then
145 ip netns exec ns$i sysctl net.ipv4.ip_no_pmtu_disc=1 > /dev/null
188 meta nfproto ipv4 meta l4proto icmp accept
363 ip netns exec ns1 sysctl net.ipv4.ip_no_pmtu_disc=0 > /dev/null
364 ip netns exec ns2 sysctl net.ipv4.ip_no_pmtu_disc=0 > /dev/null
/kernel/linux/linux-5.10/drivers/net/netdevsim/
H A Dfib.c43 struct nsim_per_fib_data ipv4; member
96 entry = &fib_data->ipv4.fib; in nsim_fib_get_val()
99 entry = &fib_data->ipv4.rules; in nsim_fib_get_val()
121 entry = &fib_data->ipv4.fib; in nsim_fib_set_max()
124 entry = &fib_data->ipv4.rules; in nsim_fib_set_max()
166 err = nsim_fib_rule_account(&data->ipv4.rules, add, extack); in nsim_fib_rule_event()
297 err = nsim_fib_account(&data->ipv4.fib, true, extack); in nsim_fib4_rt_add()
314 nsim_fib_account(&data->ipv4.fib, false, extack); in nsim_fib4_rt_add()
379 nsim_fib_account(&data->ipv4.fib, false, extack); in nsim_fib4_rt_remove()
789 nsim_fib_account(&data->ipv4 in nsim_fib4_rt_free()
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Daf_inet.c209 tcp_fastopen = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_fastopen); in __inet_listen_sk()
347 if (READ_ONCE(net->ipv4.sysctl_ip_no_pmtu_disc)) in inet_create()
1290 if (READ_ONCE(sock_net(sk)->ipv4.sysctl_ip_dynaddr) > 1) { in inet_sk_reselect_saddr()
1343 if (!READ_ONCE(sock_net(sk)->ipv4.sysctl_ip_dynaddr) || in inet_sk_rebuild_header()
1576 * as we already checked checksum over ipv4 header was 0 in inet_gro_receive()
1856 seqlock_init(&net->ipv4.ip_local_ports.lock); in inet_init_net()
1857 net->ipv4.ip_local_ports.range[0] = 32768; in inet_init_net()
1858 net->ipv4.ip_local_ports.range[1] = 60999; in inet_init_net()
1860 seqlock_init(&net->ipv4.ping_group_range.lock); in inet_init_net()
1865 net->ipv4 in inet_init_net()
[all...]
H A Ddevinet.c96 IPV4_DEVCONF((*net->ipv4.devconf_dflt), attr)
272 memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt, in inetdev_init()
512 NL_SET_ERR_MSG(extack, "ipv4: Invalid scope value"); in __inet_insert_ifa()
629 struct sock *sk = net->ipv4.mc_autojoin_sk; in ip_mc_autojoin_config()
668 NL_SET_ERR_MSG(extack, "ipv4: Device not found"); in inet_rtm_deladdr()
693 NL_SET_ERR_MSG(extack, "ipv4: Address not found"); in inet_rtm_deladdr()
847 NL_SET_ERR_MSG(extack, "ipv4: Invalid prefix length"); in rtm_to_ifaddr()
852 NL_SET_ERR_MSG(extack, "ipv4: Local address is not supplied"); in rtm_to_ifaddr()
859 NL_SET_ERR_MSG(extack, "ipv4: Device not found"); in rtm_to_ifaddr()
913 NL_SET_ERR_MSG(extack, "ipv4 in rtm_to_ifaddr()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/
H A Dprestera_router.c101 key->addr.u.ipv4 = cpu_to_be32(fen_info->dst); in prestera_util_fen_info2fib_cache_key()
113 nk->addr.u.ipv4 = nhc->nhc_gw.ipv4; in prestera_util_nhc2nc_key()
157 key->addr.u.ipv4 = *(__be32 *)n->primary_key; in prestera_util_neigh2nc_key()
288 &addr->u.ipv4, in prestera_util_kern_n_is_reachable()
686 n = neigh_lookup(&arp_tbl, &nc->key.addr.u.ipv4, in __prestera_k_arb_n_offload_set()
706 fri.dst = fc->key.addr.u.ipv4; in __prestera_k_arb_fib_lpm_offload_set()
768 &fib_key.addr.u.ipv4); in __prestera_k_arb_n_lpm_set()
793 n = neigh_lookup(&arp_tbl, &nc->key.addr.u.ipv4, nc->key.dev); in __prestera_k_arb_nc_kern_n_fetch()
842 &nh_neigh->key.addr.u.ipv4, in __prestera_k_arb_nc_apply()
[all...]
/kernel/linux/linux-5.10/net/ipv4/
H A Ddevinet.c94 IPV4_DEVCONF((*net->ipv4.devconf_dflt), attr)
262 memcpy(&in_dev->cnf, dev_net(dev)->ipv4.devconf_dflt, in inetdev_init()
626 struct sock *sk = net->ipv4.mc_autojoin_sk; in ip_mc_autojoin_config()
1727 NL_SET_ERR_MSG(extack, "ipv4: Invalid header for address dump request"); in inet_valid_dump_ifaddr_req()
1733 NL_SET_ERR_MSG(extack, "ipv4: Invalid values in header for address dump request"); in inet_valid_dump_ifaddr_req()
1760 NL_SET_ERR_MSG(extack, "ipv4: Invalid target network namespace id"); in inet_valid_dump_ifaddr_req()
1765 NL_SET_ERR_MSG(extack, "ipv4: Unsupported attribute in dump request"); in inet_valid_dump_ifaddr_req()
1852 cb->seq = atomic_read(&tgt_net->ipv4.dev_addr_genid) ^ in inet_dump_ifaddr()
2128 NL_SET_ERR_MSG(extack, "ipv4: Invalid header for netconf get request"); in inet_netconf_valid_get_req()
2151 NL_SET_ERR_MSG(extack, "ipv4 in inet_netconf_valid_get_req()
[all...]
H A Daf_inet.c226 tcp_fastopen = READ_ONCE(sock_net(sk)->ipv4.sysctl_tcp_fastopen); in inet_listen()
347 if (READ_ONCE(net->ipv4.sysctl_ip_no_pmtu_disc)) in inet_create()
1266 if (READ_ONCE(sock_net(sk)->ipv4.sysctl_ip_dynaddr) > 1) { in inet_sk_reselect_saddr()
1321 if (!READ_ONCE(sock_net(sk)->ipv4.sysctl_ip_dynaddr) || in inet_sk_rebuild_header()
1558 * as we already checked checksum over ipv4 header was 0 in inet_gro_receive()
1854 seqlock_init(&net->ipv4.ip_local_ports.lock); in inet_init_net()
1855 net->ipv4.ip_local_ports.range[0] = 32768; in inet_init_net()
1856 net->ipv4.ip_local_ports.range[1] = 60999; in inet_init_net()
1858 seqlock_init(&net->ipv4.ping_group_range.lock); in inet_init_net()
1863 net->ipv4 in inet_init_net()
[all...]
/kernel/linux/linux-5.10/security/selinux/
H A Dnetnode.c125 if (node->nsec.addr.ipv4 == *(__be32 *)addr) in sel_netnode_find()
152 idx = sel_netnode_hashfn_ipv4(node->nsec.addr.ipv4); in sel_netnode_insert()
210 new->nsec.addr.ipv4 = *(__be32 *)addr; in sel_netnode_sid_slow()
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/
H A Dlpm_trie_map_batch_ops.c19 struct in_addr ipv4; member
36 inet_pton(AF_INET, buff, &keys[i].ipv4); in map_batch_update()
53 inet_ntop(AF_INET, &keys[i].ipv4, buff, 32); in map_batch_verify()
/kernel/linux/linux-6.6/security/selinux/
H A Dnetnode.c124 if (node->nsec.addr.ipv4 == *(const __be32 *)addr) in sel_netnode_find()
151 idx = sel_netnode_hashfn_ipv4(node->nsec.addr.ipv4); in sel_netnode_insert()
210 new->nsec.addr.ipv4 = *(__be32 *)addr; in sel_netnode_sid_slow()
/kernel/linux/linux-6.6/drivers/net/ethernet/mediatek/
H A Dmtk_ppe.c149 hv1 = e->ipv4.orig.ports; in mtk_ppe_hash_entry()
150 hv2 = e->ipv4.orig.dest_ip; in mtk_ppe_hash_entry()
151 hv3 = e->ipv4.orig.src_ip; in mtk_ppe_hash_entry()
192 return &entry->ipv4.l2; in mtk_foe_entry_l2()
206 return &entry->ipv4.ib2; in mtk_foe_entry_ib2()
246 entry->ipv4.orig.ports = ports_pad; in mtk_foe_entry_prepare()
259 entry->ipv4.ib2 = val; in mtk_foe_entry_prepare()
260 l2 = &entry->ipv4.l2; in mtk_foe_entry_prepare()
305 t = &entry->ipv4.new; in mtk_foe_entry_set_ipv4_tuple()
311 t = &entry->ipv4 in mtk_foe_entry_set_ipv4_tuple()
[all...]
/kernel/linux/linux-6.6/drivers/net/ethernet/mscc/
H A Docelot_flower.c685 filter->key.ipv4.proto.value[0] = in ocelot_flower_parse_key()
687 filter->key.ipv4.proto.mask[0] = in ocelot_flower_parse_key()
726 tmp = &filter->key.ipv4.sip.value.addr[0]; in ocelot_flower_parse_key()
729 tmp = &filter->key.ipv4.sip.mask.addr[0]; in ocelot_flower_parse_key()
732 tmp = &filter->key.ipv4.dip.value.addr[0]; in ocelot_flower_parse_key()
735 tmp = &filter->key.ipv4.dip.mask.addr[0]; in ocelot_flower_parse_key()
755 filter->key.ipv4.sport.value = ntohs(match.key->src); in ocelot_flower_parse_key()
756 filter->key.ipv4.sport.mask = ntohs(match.mask->src); in ocelot_flower_parse_key()
757 filter->key.ipv4.dport.value = ntohs(match.key->dst); in ocelot_flower_parse_key()
758 filter->key.ipv4 in ocelot_flower_parse_key()
[all...]
/kernel/linux/linux-6.6/tools/testing/selftests/net/
H A Dicmp.sh56 ip netns exec $NS2 sysctl -qw net.ipv4.icmp_ratelimit=0 net.ipv4.ip_forward=1
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dfs_tcp.c36 outer_headers.src_ipv4_src_ipv6.ipv4_layout.ipv4), in accel_fs_tcp_set_ipv4_flow()
39 outer_headers.dst_ipv4_dst_ipv6.ipv4_layout.ipv4), in accel_fs_tcp_set_ipv4_flow()
42 outer_headers.src_ipv4_src_ipv6.ipv4_layout.ipv4); in accel_fs_tcp_set_ipv4_flow()
44 outer_headers.dst_ipv4_dst_ipv6.ipv4_layout.ipv4); in accel_fs_tcp_set_ipv4_flow()
221 src_ipv4_src_ipv6.ipv4_layout.ipv4); in accel_fs_tcp_create_groups()
223 dst_ipv4_dst_ipv6.ipv4_layout.ipv4); in accel_fs_tcp_create_groups()
/kernel/linux/linux-5.10/net/psample/
H A Dpsample.c233 if (tun_key->u.ipv4.src && in __psample_ip_tun_to_nlattr()
235 tun_key->u.ipv4.src)) in __psample_ip_tun_to_nlattr()
237 if (tun_key->u.ipv4.dst && in __psample_ip_tun_to_nlattr()
239 tun_key->u.ipv4.dst)) in __psample_ip_tun_to_nlattr()
323 if (tun_key->u.ipv4.src) in psample_tunnel_meta_len()
325 if (tun_key->u.ipv4.dst) in psample_tunnel_meta_len()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dfs_tcp.c36 outer_headers.src_ipv4_src_ipv6.ipv4_layout.ipv4), in accel_fs_tcp_set_ipv4_flow()
39 outer_headers.dst_ipv4_dst_ipv6.ipv4_layout.ipv4), in accel_fs_tcp_set_ipv4_flow()
42 outer_headers.src_ipv4_src_ipv6.ipv4_layout.ipv4); in accel_fs_tcp_set_ipv4_flow()
44 outer_headers.dst_ipv4_dst_ipv6.ipv4_layout.ipv4); in accel_fs_tcp_set_ipv4_flow()
217 src_ipv4_src_ipv6.ipv4_layout.ipv4); in accel_fs_tcp_create_groups()
219 dst_ipv4_dst_ipv6.ipv4_layout.ipv4); in accel_fs_tcp_create_groups()
/kernel/linux/linux-6.6/net/psample/
H A Dpsample.c235 if (tun_key->u.ipv4.src && in __psample_ip_tun_to_nlattr()
237 tun_key->u.ipv4.src)) in __psample_ip_tun_to_nlattr()
239 if (tun_key->u.ipv4.dst && in __psample_ip_tun_to_nlattr()
241 tun_key->u.ipv4.dst)) in __psample_ip_tun_to_nlattr()
325 if (tun_key->u.ipv4.src) in psample_tunnel_meta_len()
327 if (tun_key->u.ipv4.dst) in psample_tunnel_meta_len()

Completed in 46 milliseconds

12345678910>>...25