Home
last modified time | relevance | path

Searched refs:addr_type (Results 1 – 25 of 32) sorted by relevance

12

/net/core/
Ddev_addr_lists.c25 unsigned char addr_type, bool global, in __hw_addr_create_ex() argument
38 ha->type = addr_type; in __hw_addr_create_ex()
51 unsigned char addr_type, bool global, bool sync, in __hw_addr_add_ex() argument
61 ha->type == addr_type) { in __hw_addr_add_ex()
80 return __hw_addr_create_ex(list, addr, addr_len, addr_type, global, in __hw_addr_add_ex()
86 unsigned char addr_type) in __hw_addr_add() argument
88 return __hw_addr_add_ex(list, addr, addr_len, addr_type, false, false, in __hw_addr_add()
118 unsigned char addr_type, bool global, bool sync) in __hw_addr_del_ex() argument
124 (ha->type == addr_type || !addr_type)) in __hw_addr_del_ex()
132 unsigned char addr_type) in __hw_addr_del() argument
[all …]
/net/bluetooth/
D6lowpan.c417 bdaddr_t *addr, u8 *addr_type) in convert_dest_bdaddr() argument
426 *addr_type = get_addr_type_from_eui64(addr->b[5]); in convert_dest_bdaddr()
447 u8 addr_type; in setup_header() local
452 convert_dest_bdaddr(&ipv6_daddr, &addr, &addr_type); in setup_header()
455 addr_type, &ipv6_daddr); in setup_header()
458 peer = peer_lookup_ba(dev, &addr, addr_type); in setup_header()
478 *peer_addr_type = addr_type; in setup_header()
593 u8 addr_type; in bt_xmit() local
607 err = setup_header(skb, netdev, &addr, &addr_type); in bt_xmit()
616 netdev->name, &addr, addr_type, in bt_xmit()
[all …]
Dmgmt.c2684 u8 addr_type, struct sock *skip_sk) in device_unpaired() argument
2689 ev.addr.type = addr_type; in device_unpaired()
2730 u8 addr_type; in unpair_device() local
2733 addr_type = ADDR_LE_DEV_PUBLIC; in unpair_device()
2735 addr_type = ADDR_LE_DEV_RANDOM; in unpair_device()
2737 hci_remove_irk(hdev, &cp->addr.bdaddr, addr_type); in unpair_device()
2739 hci_conn_params_del(hdev, &cp->addr.bdaddr, addr_type); in unpair_device()
2741 err = hci_remove_ltk(hdev, &cp->addr.bdaddr, addr_type); in unpair_device()
2847 static u8 link_to_bdaddr(u8 link_type, u8 addr_type) in link_to_bdaddr() argument
2851 switch (addr_type) { in link_to_bdaddr()
[all …]
Dhci_core.c629 u8 addr_type; in identity_show() local
633 hci_copy_identity_address(hdev, &addr, &addr_type); in identity_show()
635 seq_printf(f, "%pMR (type %u) %*phN %pMR\n", &addr, addr_type, in identity_show()
782 &irk->bdaddr, irk->addr_type, in identity_resolving_keys_show()
1036 seq_printf(f, "%pMR %u %u\n", &p->addr, p->addr_type, in device_list_show()
3221 u8 addr_type, u8 role) in hci_find_ltk_by_addr() argument
3226 if (addr_type == k->bdaddr_type && in hci_find_ltk_by_addr()
3254 u8 addr_type) in hci_find_irk_by_addr() argument
3259 if (addr_type == ADDR_LE_DEV_RANDOM && (bdaddr->b[5] & 0xc0) != 0xc0) in hci_find_irk_by_addr()
3263 if (addr_type == irk->addr_type && in hci_find_irk_by_addr()
[all …]
Dsmp.h91 __u8 addr_type; member
/net/ipv4/
Dnetfilter.c20 int ip_route_me_harder(struct sk_buff *skb, unsigned int addr_type) in ip_route_me_harder() argument
30 if (addr_type == RTN_UNSPEC) in ip_route_me_harder()
31 addr_type = inet_addr_type(net, saddr); in ip_route_me_harder()
32 if (addr_type == RTN_LOCAL || addr_type == RTN_UNICAST) in ip_route_me_harder()
Dping.c336 int addr_type, scoped, has_addr; in ping_check_bind_addr() local
348 addr_type = ipv6_addr_type(&addr->sin6_addr); in ping_check_bind_addr()
349 scoped = __ipv6_addr_needs_scope_id(addr_type); in ping_check_bind_addr()
350 if ((addr_type != IPV6_ADDR_ANY && in ping_check_bind_addr()
351 !(addr_type & IPV6_ADDR_UNICAST)) || in ping_check_bind_addr()
368 addr_type == IPV6_ADDR_ANY)) in ping_check_bind_addr()
Dip_tunnel.c674 int addr_type; in ip_tunnel_xmit() local
682 addr_type = ipv6_addr_type(addr6); in ip_tunnel_xmit()
684 if (addr_type == IPV6_ADDR_ANY) { in ip_tunnel_xmit()
686 addr_type = ipv6_addr_type(addr6); in ip_tunnel_xmit()
689 if ((addr_type & IPV6_ADDR_COMPATv4) == 0) in ip_tunnel_xmit()
Darp.c737 int addr_type; in arp_process() local
854 addr_type = rt->rt_type; in arp_process()
856 if (addr_type == RTN_LOCAL) { in arp_process()
873 if (addr_type == RTN_UNICAST && in arp_process()
/net/l2tp/
Dl2tp_ip6.c266 int addr_type; in l2tp_ip6_bind() local
274 addr_type = ipv6_addr_type(&addr->l2tp_addr); in l2tp_ip6_bind()
277 if (addr_type == IPV6_ADDR_MAPPED) in l2tp_ip6_bind()
281 if (addr_type & IPV6_ADDR_MULTICAST) in l2tp_ip6_bind()
302 if (addr_type != IPV6_ADDR_ANY) { in l2tp_ip6_bind()
305 if (addr_type & IPV6_ADDR_LINKLOCAL) { in l2tp_ip6_bind()
368 int addr_type; in l2tp_ip6_connect() local
380 addr_type = ipv6_addr_type(&usin->sin6_addr); in l2tp_ip6_connect()
381 if (addr_type & IPV6_ADDR_MULTICAST) in l2tp_ip6_connect()
384 if (addr_type & IPV6_ADDR_MAPPED) { in l2tp_ip6_connect()
/net/6lowpan/
Diphc.c67 const u8 *lladdr, const u8 addr_type, in uncompress_addr() argument
93 switch (addr_type) { in uncompress_addr()
600 int addr_type; in lowpan_header_compress() local
706 addr_type = ipv6_addr_type(&hdr->saddr); in lowpan_header_compress()
708 if (addr_type == IPV6_ADDR_ANY) { in lowpan_header_compress()
712 if (addr_type & IPV6_ADDR_LINKLOCAL) { in lowpan_header_compress()
724 addr_type = ipv6_addr_type(&hdr->daddr); in lowpan_header_compress()
726 if (addr_type & IPV6_ADDR_MULTICAST) { in lowpan_header_compress()
757 if (addr_type & IPV6_ADDR_LINKLOCAL) { in lowpan_header_compress()
/net/ipv6/
Daf_inet6.c280 int addr_type = 0; in inet6_bind() local
293 addr_type = ipv6_addr_type(&addr->sin6_addr); in inet6_bind()
294 if ((addr_type & IPV6_ADDR_MULTICAST) && sock->type == SOCK_STREAM) in inet6_bind()
310 if (addr_type == IPV6_ADDR_MAPPED) { in inet6_bind()
334 if (addr_type != IPV6_ADDR_ANY) { in inet6_bind()
338 if (__ipv6_addr_needs_scope_id(addr_type)) { in inet6_bind()
363 if (!(addr_type & IPV6_ADDR_MULTICAST)) { in inet6_bind()
380 if (!(addr_type & IPV6_ADDR_MULTICAST)) in inet6_bind()
390 if (addr_type != IPV6_ADDR_ANY) { in inet6_bind()
392 if (addr_type != IPV6_ADDR_MAPPED) in inet6_bind()
Ddatagram.c53 int addr_type; in __ip6_datagram_connect() local
90 addr_type = ipv6_addr_type(&usin->sin6_addr); in __ip6_datagram_connect()
94 if (addr_type & IPV6_ADDR_MAPPED) { in __ip6_datagram_connect()
130 if (__ipv6_addr_needs_scope_id(addr_type)) { in __ip6_datagram_connect()
141 if (!sk->sk_bound_dev_if && (addr_type & IPV6_ADDR_MULTICAST)) in __ip6_datagram_connect()
170 if (!fl6.flowi6_oif && (addr_type&IPV6_ADDR_MULTICAST)) in __ip6_datagram_connect()
657 int addr_type; in ip6_datagram_send_ctl() local
687 addr_type = __ipv6_addr_type(&src_info->ipi6_addr); in ip6_datagram_send_ctl()
696 } else if (addr_type & IPV6_ADDR_LINKLOCAL) { in ip6_datagram_send_ctl()
701 if (addr_type != IPV6_ADDR_ANY) { in ip6_datagram_send_ctl()
[all …]
Dping.c86 int addr_type; in ping_v6_sendmsg() local
130 addr_type = ipv6_addr_type(daddr); in ping_v6_sendmsg()
131 if ((__ipv6_addr_needs_scope_id(addr_type) && !oif) || in ping_v6_sendmsg()
132 (addr_type & IPV6_ADDR_MAPPED) || in ping_v6_sendmsg()
Dicmp.c404 int addr_type = 0; in icmp6_send() local
420 addr_type = ipv6_addr_type(&hdr->daddr); in icmp6_send()
430 if ((addr_type & IPV6_ADDR_MULTICAST || skb->pkt_type != PACKET_HOST)) { in icmp6_send()
440 addr_type = ipv6_addr_type(&hdr->saddr); in icmp6_send()
446 if (__ipv6_addr_needs_scope_id(addr_type)) in icmp6_send()
455 if ((addr_type == IPV6_ADDR_ANY) || (addr_type & IPV6_ADDR_MULTICAST)) { in icmp6_send()
Draw.c248 int addr_type; in rawv6_bind() local
257 addr_type = ipv6_addr_type(&addr->sin6_addr); in rawv6_bind()
260 if (addr_type == IPV6_ADDR_MAPPED) in rawv6_bind()
271 if (addr_type != IPV6_ADDR_ANY) { in rawv6_bind()
274 if (__ipv6_addr_needs_scope_id(addr_type)) { in rawv6_bind()
298 if (!(addr_type & IPV6_ADDR_MULTICAST)) { in rawv6_bind()
309 if (!(addr_type & IPV6_ADDR_MULTICAST)) in rawv6_bind()
Dip6_flowlabel.c361 int addr_type; in fl_create() local
413 addr_type = ipv6_addr_type(&freq->flr_dst); in fl_create()
414 if ((addr_type & IPV6_ADDR_MAPPED) || in fl_create()
415 addr_type == IPV6_ADDR_ANY) { in fl_create()
Dsit.c821 int addr_type; in ipip6_tunnel_xmit() local
847 addr_type = ipv6_addr_type(addr6); in ipip6_tunnel_xmit()
849 if ((addr_type & IPV6_ADDR_UNICAST) && in ipip6_tunnel_xmit()
876 addr_type = ipv6_addr_type(addr6); in ipip6_tunnel_xmit()
878 if (addr_type == IPV6_ADDR_ANY) { in ipip6_tunnel_xmit()
880 addr_type = ipv6_addr_type(addr6); in ipip6_tunnel_xmit()
883 if ((addr_type & IPV6_ADDR_COMPATv4) != 0) in ipip6_tunnel_xmit()
Daddrconf.c841 int addr_type = ipv6_addr_type(addr); in ipv6_add_addr() local
843 if (addr_type == IPV6_ADDR_ANY || in ipv6_add_addr()
844 addr_type & IPV6_ADDR_MULTICAST || in ipv6_add_addr()
846 addr_type & IPV6_ADDR_LOOPBACK)) in ipv6_add_addr()
1211 int addr_type; member
1294 ret = __ipv6_addr_src_scope(score->addr_type); in ipv6_get_saddr_eval()
1308 ret = ipv6_saddr_preferred(score->addr_type) || in ipv6_get_saddr_eval()
1329 &score->ifa->addr, score->addr_type, in ipv6_get_saddr_eval()
1402 score->addr_type = __ipv6_addr_type(&score->ifa->addr); in __ipv6_dev_get_saddr()
1404 if (unlikely(score->addr_type == IPV6_ADDR_ANY || in __ipv6_dev_get_saddr()
[all …]
Dudp.c83 int addr_type = ipv6_addr_type(&sk->sk_v6_rcv_saddr); in ipv6_rcv_saddr_equal() local
87 if (addr_type == IPV6_ADDR_MAPPED && addr_type2 == IPV6_ADDR_MAPPED) in ipv6_rcv_saddr_equal()
93 !(sk2_ipv6only && addr_type == IPV6_ADDR_MAPPED)) in ipv6_rcv_saddr_equal()
96 if (addr_type == IPV6_ADDR_ANY && in ipv6_rcv_saddr_equal()
/net/netfilter/
Dxt_addrtype.c86 int addr_type = ipv6_addr_type(addr); in match_type6() local
89 !(addr_type & IPV6_ADDR_MULTICAST)) in match_type6()
91 if ((mask & XT_ADDRTYPE_UNICAST) && !(addr_type & IPV6_ADDR_UNICAST)) in match_type6()
93 if ((mask & XT_ADDRTYPE_UNSPEC) && addr_type != IPV6_ADDR_ANY) in match_type6()
/net/ipv6/netfilter/
Dip6t_rpfilter.c25 int addr_type = ipv6_addr_type(addr); in rpfilter_addr_unicast() local
26 return addr_type & IPV6_ADDR_UNICAST; in rpfilter_addr_unicast()
/net/ieee802154/
D6lowpan_rtnl.c180 if (sa.addr_type == IEEE802154_ADDR_SHORT) in process_data()
185 if (da.addr_type == IEEE802154_ADDR_SHORT) in process_data()
190 return lowpan_process_data(skb, skb->dev, sap, sa.addr_type, in process_data()
191 IEEE802154_ADDR_LEN, dap, da.addr_type, in process_data()
/net/dccp/
Dipv6.c855 int addr_type; in dccp_v6_connect() local
885 addr_type = ipv6_addr_type(&usin->sin6_addr); in dccp_v6_connect()
887 if (addr_type & IPV6_ADDR_MULTICAST) in dccp_v6_connect()
890 if (addr_type & IPV6_ADDR_LINKLOCAL) { in dccp_v6_connect()
914 if (addr_type == IPV6_ADDR_MAPPED) { in dccp_v6_connect()
/net/mac802154/
Dwpan.c84 sa->addr.addr_type = IEEE802154_ADDR_SHORT; in mac802154_wpan_ioctl()
95 sa->addr.addr_type != IEEE802154_ADDR_SHORT || in mac802154_wpan_ioctl()

12