Home
last modified time | relevance | path

Searched refs:addrs (Results 1 – 19 of 19) sorted by relevance

/net/core/
Dflow_dissector.c1417 size_t diff = FLOW_KEYS_HASH_OFFSET + sizeof(flow->addrs); in flow_keys_hash_length()
1418 BUILD_BUG_ON(offsetof(typeof(*flow), addrs) != in flow_keys_hash_length()
1419 sizeof(*flow) - sizeof(flow->addrs)); in flow_keys_hash_length()
1423 diff -= sizeof(flow->addrs.v4addrs); in flow_keys_hash_length()
1426 diff -= sizeof(flow->addrs.v6addrs); in flow_keys_hash_length()
1429 diff -= sizeof(flow->addrs.tipckey); in flow_keys_hash_length()
1439 return flow->addrs.v4addrs.src; in flow_get_u32_src()
1442 &flow->addrs.v6addrs.src); in flow_get_u32_src()
1444 return flow->addrs.tipckey.key; in flow_get_u32_src()
1455 return flow->addrs.v4addrs.dst; in flow_get_u32_dst()
[all …]
Dfilter.c543 int *addrs = NULL; in bpf_convert_filter() local
554 addrs = kcalloc(len, sizeof(*addrs), in bpf_convert_filter()
556 if (!addrs) in bpf_convert_filter()
600 if (addrs) in bpf_convert_filter()
601 addrs[i] = new_insn - first_insn; in bpf_convert_filter()
673 off = addrs ? addrs[target] - addrs[i] - 1 : 0; \ in bpf_convert_filter()
873 kfree(addrs); in bpf_convert_filter()
877 kfree(addrs); in bpf_convert_filter()
/net/ipv6/
Doutput_core.c38 struct in6_addr *addrs; in ipv6_proxy_select_ident() local
41 addrs = skb_header_pointer(skb, in ipv6_proxy_select_ident()
45 if (!addrs) in ipv6_proxy_select_ident()
48 id = __ipv6_select_ident(net, &addrs[1], &addrs[0]); in ipv6_proxy_select_ident()
Dah6.c217 struct in6_addr *addrs; in ipv6_rearrange_rthdr() local
234 addrs = ((struct rt0_hdr *)rthdr)->addr; in ipv6_rearrange_rthdr()
235 final_addr = addrs[segments - 1]; in ipv6_rearrange_rthdr()
237 addrs += segments - segments_left; in ipv6_rearrange_rthdr()
238 memmove(addrs + 1, addrs, (segments_left - 1) * sizeof(*addrs)); in ipv6_rearrange_rthdr()
240 addrs[0] = iph->daddr; in ipv6_rearrange_rthdr()
Droute.c2352 keys->addrs.v6addrs.src = _flkeys->addrs.v6addrs.src; in ip6_multipath_l3_keys()
2353 keys->addrs.v6addrs.dst = _flkeys->addrs.v6addrs.dst; in ip6_multipath_l3_keys()
2357 keys->addrs.v6addrs.src = key_iph->saddr; in ip6_multipath_l3_keys()
2358 keys->addrs.v6addrs.dst = key_iph->daddr; in ip6_multipath_l3_keys()
2378 hash_keys.addrs.v6addrs.src = fl6->saddr; in rt6_multipath_hash()
2379 hash_keys.addrs.v6addrs.dst = fl6->daddr; in rt6_multipath_hash()
2400 hash_keys.addrs.v6addrs.src = flkeys->addrs.v6addrs.src; in rt6_multipath_hash()
2401 hash_keys.addrs.v6addrs.dst = flkeys->addrs.v6addrs.dst; in rt6_multipath_hash()
2408 hash_keys.addrs.v6addrs.src = fl6->saddr; in rt6_multipath_hash()
2409 hash_keys.addrs.v6addrs.dst = fl6->daddr; in rt6_multipath_hash()
[all …]
/net/phonet/
Dpn_dev.c57 bitmap_zero(pnd->addrs, 64); in __phonet_device_alloc()
105 for_each_set_bit(addr, pnd->addrs, 64) in phonet_device_destroy()
146 else if (test_and_set_bit(addr >> 2, pnd->addrs)) in phonet_address_add()
160 if (!pnd || !test_and_clear_bit(addr >> 2, pnd->addrs)) { in phonet_address_del()
163 } else if (bitmap_empty(pnd->addrs, 64)) in phonet_address_del()
184 BUG_ON(bitmap_empty(pnd->addrs, 64)); in phonet_address_get()
187 if (test_bit(daddr >> 2, pnd->addrs)) in phonet_address_get()
190 saddr = find_first_bit(pnd->addrs, 64) << 2; in phonet_address_get()
222 if (test_bit(addr >> 2, pnd->addrs)) { in phonet_address_lookup()
Dpn_netlink.c139 for_each_set_bit(addr, pnd->addrs, 64) { in getaddr_dumpit()
/net/ipv4/
Dipconfig.c1671 static int __init ip_auto_config_setup(char *addrs) in ip_auto_config_setup() argument
1683 if (ic_proto_name(addrs)) in ip_auto_config_setup()
1687 if (*addrs == 0 || in ip_auto_config_setup()
1688 strcmp(addrs, "off") == 0 || in ip_auto_config_setup()
1689 strcmp(addrs, "none") == 0) { in ip_auto_config_setup()
1699 ip = addrs; in ip_auto_config_setup()
1772 static int __init nfsaddrs_config_setup(char *addrs) in nfsaddrs_config_setup() argument
1774 return ip_auto_config_setup(addrs); in nfsaddrs_config_setup()
1778 static int __init vendor_class_identifier_setup(char *addrs) in vendor_class_identifier_setup() argument
1780 if (strlcpy(vendor_class_identifier, addrs, in vendor_class_identifier_setup()
Droute.c1942 hash_keys->addrs.v4addrs.src = key_iph->saddr; in ip_multipath_l3_keys()
1943 hash_keys->addrs.v4addrs.dst = key_iph->daddr; in ip_multipath_l3_keys()
1961 hash_keys.addrs.v4addrs.src = fl4->saddr; in fib_multipath_hash()
1962 hash_keys.addrs.v4addrs.dst = fl4->daddr; in fib_multipath_hash()
1983 hash_keys.addrs.v4addrs.src = flkeys->addrs.v4addrs.src; in fib_multipath_hash()
1984 hash_keys.addrs.v4addrs.dst = flkeys->addrs.v4addrs.dst; in fib_multipath_hash()
1991 hash_keys.addrs.v4addrs.src = fl4->saddr; in fib_multipath_hash()
1992 hash_keys.addrs.v4addrs.dst = fl4->daddr; in fib_multipath_hash()
2008 hash_keys.addrs.v4addrs.src = keys.addrs.v4addrs.src; in fib_multipath_hash()
2009 hash_keys.addrs.v4addrs.dst = keys.addrs.v4addrs.dst; in fib_multipath_hash()
[all …]
/net/sctp/
Dsocket.c506 static int sctp_bindx_add(struct sock *sk, struct sockaddr *addrs, int addrcnt) in sctp_bindx_add() argument
515 addrs, addrcnt); in sctp_bindx_add()
517 addr_buf = addrs; in sctp_bindx_add()
538 sctp_bindx_rem(sk, addrs, cnt); in sctp_bindx_add()
557 struct sockaddr *addrs, in sctp_send_asconf_add_ip() argument
581 __func__, sk, addrs, addrcnt); in sctp_send_asconf_add_ip()
598 addr_buf = addrs; in sctp_send_asconf_add_ip()
621 chunk = sctp_make_asconf_update_ip(asoc, &laddr->a, addrs, in sctp_send_asconf_add_ip()
631 addr_buf = addrs; in sctp_send_asconf_add_ip()
679 static int sctp_bindx_rem(struct sock *sk, struct sockaddr *addrs, int addrcnt) in sctp_bindx_rem() argument
[all …]
Dsm_make_chunk.c219 union sctp_params addrs; in sctp_make_init() local
233 addrs = sctp_bind_addrs_to_raw(bp, &addrs_len, gfp); in sctp_make_init()
326 sctp_addto_chunk(retval, addrs_len, addrs.v); in sctp_make_init()
375 kfree(addrs.v); in sctp_make_init()
391 union sctp_params addrs; in sctp_make_init_ack() local
400 addrs = sctp_bind_addrs_to_raw(&asoc->base.bind_addr, &addrs_len, gfp); in sctp_make_init_ack()
412 addrs.v, addrs_len); in sctp_make_init_ack()
492 retval->param_hdr.v = sctp_addto_chunk(retval, addrs_len, addrs.v); in sctp_make_init_ack()
529 kfree(addrs.v); in sctp_make_init_ack()
2825 struct sockaddr *addrs, in sctp_make_asconf_update_ip() argument
[all …]
Dbind_addr.c424 const union sctp_addr *addrs, in sctp_find_unmatch_addr() argument
439 addr_buf = (union sctp_addr *)addrs; in sctp_find_unmatch_addr()
/net/smc/
Dsmc_clc.c152 struct sockaddr_storage addrs; in smc_clc_prfx_set() local
167 if (kernel_getsockname(clcsock, (struct sockaddr *)&addrs) < 0) in smc_clc_prfx_set()
170 addr6 = (struct sockaddr_in6 *)&addrs; in smc_clc_prfx_set()
172 if (addrs.ss_family == PF_INET) { in smc_clc_prfx_set()
174 addr = (struct sockaddr_in *)&addrs; in smc_clc_prfx_set()
/net/ipv6/netfilter/
Dip6t_rt.c142 if (ipv6_addr_equal(ap, &rtinfo->addrs[i])) { in rt_mt6()
174 if (!ipv6_addr_equal(ap, &rtinfo->addrs[temp])) in rt_mt6()
/net/sched/
Dsch_cake.c601 keys->addrs.v4addrs.src = rev ? tuple.dst.u3.ip : tuple.src.u3.ip; in cake_update_flowkeys()
602 keys->addrs.v4addrs.dst = rev ? tuple.src.u3.ip : tuple.dst.u3.ip; in cake_update_flowkeys()
658 host_keys.addrs.v4addrs.src = 0; in cake_hash()
660 host_keys.addrs.v4addrs.src = keys.addrs.v4addrs.src; in cake_hash()
661 host_keys.addrs.v4addrs.dst = 0; in cake_hash()
666 memset(&host_keys.addrs.v6addrs.src, 0, in cake_hash()
667 sizeof(host_keys.addrs.v6addrs.src)); in cake_hash()
669 host_keys.addrs.v6addrs.src = keys.addrs.v6addrs.src; in cake_hash()
670 memset(&host_keys.addrs.v6addrs.dst, 0, in cake_hash()
671 sizeof(host_keys.addrs.v6addrs.dst)); in cake_hash()
/net/ncsi/
Dncsi-rsp.c484 memcpy(&ncf->addrs[index], cmd->mac, ETH_ALEN); in ncsi_rsp_handler_sma()
487 memset(&ncf->addrs[index], 0, ETH_ALEN); in ncsi_rsp_handler_sma()
821 nc->mac_filter.addrs = kzalloc(size, GFP_ATOMIC); in ncsi_rsp_handler_gc()
822 if (!nc->mac_filter.addrs) in ncsi_rsp_handler_gc()
896 memcpy(&ncmf->addrs[i * ETH_ALEN], pdata, ETH_ALEN); in ncsi_rsp_handler_gp()
Dinternal.h112 unsigned char *addrs; member
Dncsi-manage.c251 kfree(nc->mac_filter.addrs); in ncsi_remove_channel()
/net/mac80211/
Drx.c4260 } addrs __aligned(2); in ieee80211_invoke_fast_rx()
4388 ether_addr_copy(addrs.da, skb->data + fast_rx->da_offs); in ieee80211_invoke_fast_rx()
4389 ether_addr_copy(addrs.sa, skb->data + fast_rx->sa_offs); in ieee80211_invoke_fast_rx()
4393 memcpy(skb_push(skb, sizeof(addrs)), &addrs, sizeof(addrs)); in ieee80211_invoke_fast_rx()
4411 if (is_multicast_ether_addr(addrs.da)) { in ieee80211_invoke_fast_rx()
4413 } else if (!ether_addr_equal(addrs.da, addrs.sa) && in ieee80211_invoke_fast_rx()
4414 sta_info_get(rx->sdata, addrs.da)) { in ieee80211_invoke_fast_rx()