/net/core/ |
D | dev_addr_lists.c | 21 unsigned char addr_type, bool global, in __hw_addr_create_ex() argument 34 ha->type = addr_type; in __hw_addr_create_ex() 47 unsigned char addr_type, bool global, bool sync, in __hw_addr_add_ex() argument 56 if (ha->type == addr_type && in __hw_addr_add_ex() 76 return __hw_addr_create_ex(list, addr, addr_len, addr_type, global, in __hw_addr_add_ex() 82 unsigned char addr_type) in __hw_addr_add() argument 84 return __hw_addr_add_ex(list, addr, addr_len, addr_type, false, false, in __hw_addr_add() 114 unsigned char addr_type, bool global, bool sync) in __hw_addr_del_ex() argument 120 (ha->type == addr_type || !addr_type)) in __hw_addr_del_ex() 128 unsigned char addr_type) in __hw_addr_del() argument [all …]
|
D | flow_dissector.c | 251 ctrl->addr_type = type; in skb_flow_dissect_set_enc_addr_type() 807 key_control->addr_type = FLOW_DISSECTOR_KEY_IPV4_ADDRS; in __skb_flow_bpf_to_target() 818 key_control->addr_type = FLOW_DISSECTOR_KEY_IPV6_ADDRS; in __skb_flow_bpf_to_target() 1032 key_control->addr_type = FLOW_DISSECTOR_KEY_IPV4_ADDRS; in __skb_flow_dissect() 1079 key_control->addr_type = FLOW_DISSECTOR_KEY_IPV6_ADDRS; in __skb_flow_dissect() 1202 key_control->addr_type = FLOW_DISSECTOR_KEY_TIPC; in __skb_flow_dissect() 1421 switch (flow->control.addr_type) { in flow_keys_hash_length() 1437 switch (flow->control.addr_type) { in flow_get_u32_src() 1453 switch (flow->control.addr_type) { in flow_get_u32_dst() 1469 switch (keys->control.addr_type) { in __flow_hash_consistentify() [all …]
|
/net/ipv4/ |
D | netfilter.c | 20 …t ip_route_me_harder(struct net *net, struct sock *sk, struct sk_buff *skb, unsigned int addr_type) in ip_route_me_harder() argument 33 if (addr_type == RTN_UNSPEC) in ip_route_me_harder() 34 addr_type = inet_addr_type_dev_table(net, dev, saddr); in ip_route_me_harder() 35 if (addr_type == RTN_LOCAL || addr_type == RTN_UNICAST) in ip_route_me_harder()
|
D | arp.c | 646 int *addr_type, __be16 ar_op, in arp_is_garp() argument 664 *addr_type = inet_addr_type_dev_table(net, dev, sip); in arp_is_garp() 665 if (*addr_type != RTN_UNICAST) in arp_is_garp() 686 int addr_type; in arp_process() local 817 addr_type = rt->rt_type; in arp_process() 819 if (addr_type == RTN_LOCAL) { in arp_process() 837 if (addr_type == RTN_UNICAST && in arp_process() 867 addr_type = -1; in arp_process() 869 is_garp = arp_is_garp(net, dev, &addr_type, arp->ar_op, in arp_process() 881 (addr_type == RTN_UNICAST || in arp_process() [all …]
|
D | ping.c | 336 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() 376 addr_type == IPV6_ADDR_ANY)) in ping_check_bind_addr()
|
D | inet_connection_sock.c | 41 int addr_type = ipv6_addr_type(sk1_rcv_saddr6); in ipv6_rcv_saddr_equal() local 45 if (addr_type == IPV6_ADDR_MAPPED && addr_type2 == IPV6_ADDR_MAPPED) { in ipv6_rcv_saddr_equal() 55 if (addr_type == IPV6_ADDR_ANY && addr_type2 == IPV6_ADDR_ANY) in ipv6_rcv_saddr_equal() 59 !(sk2_ipv6only && addr_type == IPV6_ADDR_MAPPED)) in ipv6_rcv_saddr_equal() 62 if (addr_type == IPV6_ADDR_ANY && match_sk1_wildcard && in ipv6_rcv_saddr_equal()
|
/net/ipv6/netfilter/ |
D | ip6t_rpfilter.c | 22 int addr_type = ipv6_addr_type(addr); in rpfilter_addr_unicast() local 23 return addr_type & IPV6_ADDR_UNICAST; in rpfilter_addr_unicast() 28 int addr_type = ipv6_addr_type(addr); in rpfilter_addr_linklocal() local 29 return addr_type & IPV6_ADDR_LINKLOCAL; in rpfilter_addr_linklocal()
|
/net/rds/ |
D | bind.c | 192 int addr_type; in rds_bind() local 196 addr_type = ipv6_addr_type(&sin6->sin6_addr); in rds_bind() 197 if (!(addr_type & IPV6_ADDR_UNICAST)) { in rds_bind() 200 if (!(addr_type & IPV6_ADDR_MAPPED)) in rds_bind() 213 if (addr_type & IPV6_ADDR_LINKLOCAL) { in rds_bind()
|
D | af_rds.c | 574 int addr_type; in rds_connect() local 581 addr_type = ipv6_addr_type(&sin6->sin6_addr); in rds_connect() 582 if (!(addr_type & IPV6_ADDR_UNICAST)) { in rds_connect() 585 if (!(addr_type & IPV6_ADDR_MAPPED)) { in rds_connect() 602 if (addr_type & IPV6_ADDR_LINKLOCAL) { in rds_connect()
|
/net/l2tp/ |
D | l2tp_ip6.c | 281 int addr_type; in l2tp_ip6_bind() local 289 addr_type = ipv6_addr_type(&addr->l2tp_addr); in l2tp_ip6_bind() 292 if (addr_type == IPV6_ADDR_MAPPED) in l2tp_ip6_bind() 296 if (addr_type & IPV6_ADDR_MULTICAST) in l2tp_ip6_bind() 312 if (addr_type != IPV6_ADDR_ANY) { in l2tp_ip6_bind() 315 if (addr_type & IPV6_ADDR_LINKLOCAL) { in l2tp_ip6_bind() 379 int addr_type; in l2tp_ip6_connect() local 388 addr_type = ipv6_addr_type(&usin->sin6_addr); in l2tp_ip6_connect() 389 if (addr_type & IPV6_ADDR_MULTICAST) in l2tp_ip6_connect() 392 if (addr_type & IPV6_ADDR_MAPPED) { in l2tp_ip6_connect()
|
/net/netfilter/ |
D | xt_addrtype.c | 71 int addr_type = ipv6_addr_type(addr); in match_type6() local 74 !(addr_type & IPV6_ADDR_MULTICAST)) in match_type6() 76 if ((mask & XT_ADDRTYPE_UNICAST) && !(addr_type & IPV6_ADDR_UNICAST)) in match_type6() 78 if ((mask & XT_ADDRTYPE_UNSPEC) && addr_type != IPV6_ADDR_ANY) in match_type6()
|
D | nf_tables_offload.c | 34 enum flow_dissector_key_id addr_type) in nft_flow_rule_set_addr_type() argument 43 key->control.addr_type = addr_type; in nft_flow_rule_set_addr_type() 44 mask->control.addr_type = 0xffff; in nft_flow_rule_set_addr_type()
|
/net/bluetooth/ |
D | 6lowpan.c | 531 u8 addr_type; in bt_xmit() local 545 err = setup_header(skb, netdev, &addr, &addr_type); in bt_xmit() 554 netdev->name, &addr, addr_type, in bt_xmit() 982 static int get_l2cap_conn(char *buf, bdaddr_t *addr, u8 *addr_type, in get_l2cap_conn() argument 992 addr_type); in get_l2cap_conn() 1003 hcon = hci_conn_hash_lookup_le(hdev, addr, *addr_type); in get_l2cap_conn() 1121 u8 addr_type; in lowpan_control_write() local 1130 ret = get_l2cap_conn(&buf[8], &addr, &addr_type, &conn); in lowpan_control_write() 1156 addr_type); in lowpan_control_write() 1159 ret = bt_6lowpan_connect(&addr, addr_type); in lowpan_control_write() [all …]
|
D | hci_core.c | 2394 u8 addr_type, u8 role) in hci_find_ltk() argument 2400 if (addr_type != k->bdaddr_type || bacmp(bdaddr, &k->bdaddr)) in hci_find_ltk() 2438 u8 addr_type) in hci_find_irk_by_addr() argument 2443 if (addr_type == ADDR_LE_DEV_RANDOM && (bdaddr->b[5] & 0xc0) != 0xc0) in hci_find_irk_by_addr() 2448 if (addr_type == irk->addr_type && in hci_find_irk_by_addr() 2507 u8 addr_type, u8 type, u8 authenticated, in hci_add_ltk() argument 2513 old_key = hci_find_ltk(hdev, bdaddr, addr_type, role); in hci_add_ltk() 2524 key->bdaddr_type = addr_type; in hci_add_ltk() 2536 u8 addr_type, u8 val[16], bdaddr_t *rpa) in hci_add_irk() argument 2540 irk = hci_find_irk_by_addr(hdev, bdaddr, addr_type); in hci_add_irk() [all …]
|
D | mgmt.c | 2370 u8 addr_type, struct sock *skip_sk) in device_unpaired() argument 2375 ev.addr.type = addr_type; in device_unpaired() 2389 u8 addr_type; in unpair_device() local 2442 addr_type = le_addr_type(cp->addr.type); in unpair_device() 2445 err = smp_cancel_and_remove_pairing(hdev, &cp->addr.bdaddr, addr_type); in unpair_device() 2453 conn = hci_conn_hash_lookup_le(hdev, &cp->addr.bdaddr, addr_type); in unpair_device() 2455 hci_conn_params_del(hdev, &cp->addr.bdaddr, addr_type); in unpair_device() 2466 params = hci_conn_params_lookup(hdev, &cp->addr.bdaddr, addr_type); in unpair_device() 2575 static u8 link_to_bdaddr(u8 link_type, u8 addr_type) in link_to_bdaddr() argument 2579 switch (addr_type) { in link_to_bdaddr() [all …]
|
D | smp.h | 95 __u8 addr_type; member 185 u8 addr_type);
|
D | hci_debugfs.c | 130 seq_printf(f, "%pMR (type %u) %u\n", &p->addr, p->addr_type, in device_list_show() 605 u8 addr_type; in identity_show() local 609 hci_copy_identity_address(hdev, &addr, &addr_type); in identity_show() 611 seq_printf(f, "%pMR (type %u) %*phN %pMR\n", &addr, addr_type, in identity_show() 759 &irk->bdaddr, irk->addr_type, in identity_resolving_keys_show()
|
/net/ipv6/ |
D | af_inet6.c | 291 int addr_type = 0; in __inet6_bind() local 297 addr_type = ipv6_addr_type(&addr->sin6_addr); in __inet6_bind() 298 if ((addr_type & IPV6_ADDR_MULTICAST) && sk->sk_type == SOCK_STREAM) in __inet6_bind() 318 if (addr_type == IPV6_ADDR_MAPPED) { in __inet6_bind() 353 if (addr_type != IPV6_ADDR_ANY) { in __inet6_bind() 357 if (__ipv6_addr_needs_scope_id(addr_type)) { in __inet6_bind() 385 if (!(addr_type & IPV6_ADDR_MULTICAST)) { in __inet6_bind() 402 if (!(addr_type & IPV6_ADDR_MULTICAST)) in __inet6_bind() 406 if (addr_type != IPV6_ADDR_ANY && addr_type != IPV6_ADDR_MAPPED) in __inet6_bind() 426 if (addr_type != IPV6_ADDR_ANY) in __inet6_bind()
|
D | ping.c | 52 int addr_type; in ping_v6_sendmsg() local 96 addr_type = ipv6_addr_type(daddr); in ping_v6_sendmsg() 97 if ((__ipv6_addr_needs_scope_id(addr_type) && !oif) || in ping_v6_sendmsg() 98 (addr_type & IPV6_ADDR_MAPPED) || in ping_v6_sendmsg()
|
D | datagram.c | 143 int addr_type; in __ip6_datagram_connect() local 173 addr_type = ipv6_addr_type(&usin->sin6_addr); in __ip6_datagram_connect() 177 if (addr_type & IPV6_ADDR_MAPPED) { in __ip6_datagram_connect() 213 if (__ipv6_addr_needs_scope_id(addr_type)) { in __ip6_datagram_connect() 223 if (!sk->sk_bound_dev_if && (addr_type & IPV6_ADDR_MULTICAST)) in __ip6_datagram_connect() 750 int addr_type; in ip6_datagram_send_ctl() local 791 addr_type = __ipv6_addr_type(&src_info->ipi6_addr); in ip6_datagram_send_ctl() 800 } else if (addr_type & IPV6_ADDR_LINKLOCAL) { in ip6_datagram_send_ctl() 805 if (addr_type != IPV6_ADDR_ANY) { in ip6_datagram_send_ctl() 806 int strict = __ipv6_addr_src_scope(addr_type) <= IPV6_ADDR_SCOPE_LINKLOCAL; in ip6_datagram_send_ctl()
|
D | icmp.c | 447 int addr_type = 0; in icmp6_send() local 465 addr_type = ipv6_addr_type(&hdr->daddr); in icmp6_send() 475 if (addr_type & IPV6_ADDR_MULTICAST || skb->pkt_type != PACKET_HOST) { in icmp6_send() 485 addr_type = ipv6_addr_type(&hdr->saddr); in icmp6_send() 491 if (__ipv6_addr_needs_scope_id(addr_type)) { in icmp6_send() 504 if ((addr_type == IPV6_ADDR_ANY) || (addr_type & IPV6_ADDR_MULTICAST)) { in icmp6_send()
|
D | raw.c | 248 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() 300 if (!(addr_type & IPV6_ADDR_MULTICAST) && in rawv6_bind() 312 if (!(addr_type & IPV6_ADDR_MULTICAST)) in rawv6_bind()
|
D | ip6_flowlabel.c | 378 int addr_type; in fl_create() local 430 addr_type = ipv6_addr_type(&freq->flr_dst); in fl_create() 431 if ((addr_type & IPV6_ADDR_MAPPED) || in fl_create() 432 addr_type == IPV6_ADDR_ANY) { in fl_create()
|
/net/6lowpan/ |
D | ndisc.c | 201 int addr_type, u32 addr_flags, in lowpan_ndisc_prefix_rcv_add_addr() argument 213 addr, addr_type, addr_flags, in lowpan_ndisc_prefix_rcv_add_addr()
|
/net/dccp/ |
D | ipv6.c | 817 int addr_type; in dccp_v6_connect() local 847 addr_type = ipv6_addr_type(&usin->sin6_addr); in dccp_v6_connect() 849 if (addr_type & IPV6_ADDR_MULTICAST) in dccp_v6_connect() 852 if (addr_type & IPV6_ADDR_LINKLOCAL) { in dccp_v6_connect() 876 if (addr_type == IPV6_ADDR_MAPPED) { in dccp_v6_connect()
|