/net/core/ |
H A D | dev_addr_lists.c | 25 unsigned char addr_type, bool global, 38 ha->type = addr_type; 51 unsigned char addr_type, bool global, bool sync) 60 ha->type == addr_type) { 79 return __hw_addr_create_ex(list, addr, addr_len, addr_type, global, 85 unsigned char addr_type) 87 return __hw_addr_add_ex(list, addr, addr_len, addr_type, false, false); 116 unsigned char addr_type, bool global, bool sync) 122 (ha->type == addr_type || !addr_type)) 23 __hw_addr_create_ex(struct netdev_hw_addr_list *list, const unsigned char *addr, int addr_len, unsigned char addr_type, bool global, bool sync) argument 49 __hw_addr_add_ex(struct netdev_hw_addr_list *list, const unsigned char *addr, int addr_len, unsigned char addr_type, bool global, bool sync) argument 83 __hw_addr_add(struct netdev_hw_addr_list *list, const unsigned char *addr, int addr_len, unsigned char addr_type) argument 114 __hw_addr_del_ex(struct netdev_hw_addr_list *list, const unsigned char *addr, int addr_len, unsigned char addr_type, bool global, bool sync) argument 128 __hw_addr_del(struct netdev_hw_addr_list *list, const unsigned char *addr, int addr_len, unsigned char addr_type) argument 189 __hw_addr_add_multiple(struct netdev_hw_addr_list *to_list, struct netdev_hw_addr_list *from_list, int addr_len, unsigned char addr_type) argument 216 __hw_addr_del_multiple(struct netdev_hw_addr_list *to_list, struct netdev_hw_addr_list *from_list, int addr_len, unsigned char addr_type) argument 352 dev_addr_add(struct net_device *dev, const unsigned char *addr, unsigned char addr_type) argument 377 dev_addr_del(struct net_device *dev, const unsigned char *addr, unsigned char addr_type) argument 413 dev_addr_add_multiple(struct net_device *to_dev, struct net_device *from_dev, unsigned char addr_type) argument 441 dev_addr_del_multiple(struct net_device *to_dev, struct net_device *from_dev, unsigned char addr_type) argument [all...] |
/net/mac802154/ |
H A D | wpan.c | 86 sa->addr.addr_type = IEEE802154_ADDR_SHORT; 96 sa->addr.addr_type != IEEE802154_ADDR_SHORT || 157 dev_addr.addr_type = IEEE802154_ADDR_LONG; 161 dev_addr.addr_type = IEEE802154_ADDR_SHORT; 171 if (daddr->addr_type != IEEE802154_ADDR_NONE) { 172 fc |= (daddr->addr_type << IEEE802154_FC_DAMODE_SHIFT); 177 if (daddr->addr_type == IEEE802154_ADDR_SHORT) { 186 if (saddr->addr_type != IEEE802154_ADDR_NONE) { 187 fc |= (saddr->addr_type << IEEE802154_FC_SAMODE_SHIFT); 198 if (saddr->addr_type [all...] |
H A D | mac_cmd.c | 43 BUG_ON(addr->addr_type != IEEE802154_ADDR_SHORT);
|
/net/ipv4/ |
H A D | netfilter.c | 20 int ip_route_me_harder(struct sk_buff *skb, unsigned int addr_type) argument 30 if (addr_type == RTN_UNSPEC) 31 addr_type = inet_addr_type(net, saddr); 32 if (addr_type == RTN_LOCAL || addr_type == RTN_UNICAST)
|
H A D | ping.c | 332 int addr_type, scoped, has_addr; local 344 addr_type = ipv6_addr_type(&addr->sin6_addr); 345 scoped = __ipv6_addr_needs_scope_id(addr_type); 346 if ((addr_type != IPV6_ADDR_ANY && 347 !(addr_type & IPV6_ADDR_UNICAST)) || 364 addr_type == IPV6_ADDR_ANY))
|
H A D | ip_tunnel.c | 525 int addr_type; local 533 addr_type = ipv6_addr_type(addr6); 535 if (addr_type == IPV6_ADDR_ANY) { 537 addr_type = ipv6_addr_type(addr6); 540 if ((addr_type & IPV6_ADDR_COMPATv4) == 0)
|
H A D | arp.c | 730 int addr_type; local 846 addr_type = rt->rt_type; 848 if (addr_type == RTN_LOCAL) { 865 if (addr_type == RTN_UNICAST &&
|
/net/ipv6/netfilter/ |
H A D | ip6t_rpfilter.c | 25 int addr_type = ipv6_addr_type(addr); local 26 return addr_type & IPV6_ADDR_UNICAST;
|
/net/ipv6/ |
H A D | ping.c | 110 int addr_type; local 149 addr_type = ipv6_addr_type(daddr); 150 if (__ipv6_addr_needs_scope_id(addr_type) && !iif) 152 if (addr_type & IPV6_ADDR_MAPPED)
|
H A D | datagram.c | 53 int addr_type; local 80 addr_type = ipv6_addr_type(&usin->sin6_addr); 82 if (addr_type == IPV6_ADDR_ANY) { 91 if (addr_type == IPV6_ADDR_MAPPED) { 127 if (__ipv6_addr_needs_scope_id(addr_type)) { 138 if (!sk->sk_bound_dev_if && (addr_type & IPV6_ADDR_MULTICAST)) 167 if (!fl6.flowi6_oif && (addr_type&IPV6_ADDR_MULTICAST)) 622 int addr_type; local 652 addr_type = __ipv6_addr_type(&src_info->ipi6_addr); 661 } else if (addr_type [all...] |
H A D | af_inet6.c | 284 int addr_type = 0; local 297 addr_type = ipv6_addr_type(&addr->sin6_addr); 298 if ((addr_type & IPV6_ADDR_MULTICAST) && sock->type == SOCK_STREAM) 314 if (addr_type == IPV6_ADDR_MAPPED) { 338 if (addr_type != IPV6_ADDR_ANY) { 342 if (__ipv6_addr_needs_scope_id(addr_type)) { 367 if (!(addr_type & IPV6_ADDR_MULTICAST)) { 384 if (!(addr_type & IPV6_ADDR_MULTICAST)) 394 if (addr_type != IPV6_ADDR_ANY) { 396 if (addr_type ! [all...] |
H A D | icmp.c | 396 int addr_type = 0; local 412 addr_type = ipv6_addr_type(&hdr->daddr); 421 if ((addr_type & IPV6_ADDR_MULTICAST || skb->pkt_type != PACKET_HOST)) { 431 addr_type = ipv6_addr_type(&hdr->saddr); 437 if (__ipv6_addr_needs_scope_id(addr_type)) 446 if ((addr_type == IPV6_ADDR_ANY) || (addr_type & IPV6_ADDR_MULTICAST)) {
|
H A D | raw.c | 244 int addr_type; local 249 addr_type = ipv6_addr_type(&addr->sin6_addr); 252 if (addr_type == IPV6_ADDR_MAPPED) 263 if (addr_type != IPV6_ADDR_ANY) { 266 if (__ipv6_addr_needs_scope_id(addr_type)) { 290 if (!(addr_type & IPV6_ADDR_MULTICAST)) { 301 if (!(addr_type & IPV6_ADDR_MULTICAST))
|
H A D | ip6_flowlabel.c | 364 int addr_type; local 416 addr_type = ipv6_addr_type(&freq->flr_dst); 417 if ((addr_type & IPV6_ADDR_MAPPED) || 418 addr_type == IPV6_ADDR_ANY) {
|
H A D | sit.c | 699 int addr_type; local 721 addr_type = ipv6_addr_type(addr6); 723 if ((addr_type & IPV6_ADDR_UNICAST) && 750 addr_type = ipv6_addr_type(addr6); 752 if (addr_type == IPV6_ADDR_ANY) { 754 addr_type = ipv6_addr_type(addr6); 757 if ((addr_type & IPV6_ADDR_COMPATv4) != 0)
|
H A D | addrconf.c | 830 int addr_type = ipv6_addr_type(addr); local 832 if (addr_type == IPV6_ADDR_ANY || 833 addr_type & IPV6_ADDR_MULTICAST || 835 addr_type & IPV6_ADDR_LOOPBACK)) 1187 int addr_type; member in struct:ipv6_saddr_score 1270 ret = __ipv6_addr_src_scope(score->addr_type); 1284 ret = ipv6_saddr_preferred(score->addr_type) || 1305 &score->ifa->addr, score->addr_type, 1424 score->addr_type = __ipv6_addr_type(&score->ifa->addr); 1426 if (unlikely(score->addr_type 2104 int addr_type; local [all...] |
H A D | udp.c | 63 int addr_type = ipv6_addr_type(sk_rcv_saddr6); local 67 if (addr_type == IPV6_ADDR_MAPPED && addr_type2 == IPV6_ADDR_MAPPED) 73 !(sk2_ipv6only && addr_type == IPV6_ADDR_MAPPED)) 76 if (addr_type == IPV6_ADDR_ANY &&
|
/net/netfilter/ |
H A D | xt_addrtype.c | 86 int addr_type = ipv6_addr_type(addr); local 89 !(addr_type & IPV6_ADDR_MULTICAST)) 91 if ((mask & XT_ADDRTYPE_UNICAST) && !(addr_type & IPV6_ADDR_UNICAST)) 93 if ((mask & XT_ADDRTYPE_UNSPEC) && addr_type != IPV6_ADDR_ANY)
|
/net/l2tp/ |
H A D | l2tp_ip6.c | 264 int addr_type; local 274 addr_type = ipv6_addr_type(&addr->l2tp_addr); 277 if (addr_type == IPV6_ADDR_MAPPED) 281 if (addr_type & IPV6_ADDR_MULTICAST) 299 if (addr_type != IPV6_ADDR_ANY) { 302 if (addr_type & IPV6_ADDR_LINKLOCAL) { 365 int addr_type; local 374 addr_type = ipv6_addr_type(&usin->sin6_addr); 375 if (addr_type & IPV6_ADDR_MULTICAST) 378 if (addr_type [all...] |
/net/ieee802154/ |
H A D | nl-mac.c | 57 if (addr->addr_type != IEEE802154_ADDR_LONG) { 125 if (addr->addr_type == IEEE802154_ADDR_LONG) { 334 addr.addr_type = IEEE802154_ADDR_LONG; 339 addr.addr_type = IEEE802154_ADDR_SHORT; 378 addr.addr_type = IEEE802154_ADDR_LONG; 412 addr.addr_type = IEEE802154_ADDR_LONG; 417 addr.addr_type = IEEE802154_ADDR_SHORT; 463 addr.addr_type = IEEE802154_ADDR_SHORT;
|
H A D | dgram.c | 76 ro->dst_addr.addr_type = IEEE802154_ADDR_LONG; 197 ro->dst_addr.addr_type = IEEE802154_ADDR_LONG; 348 if (ro->src_addr.addr_type == IEEE802154_ADDR_LONG && 352 if (ro->src_addr.addr_type == IEEE802154_ADDR_SHORT &&
|
H A D | af_ieee802154.c | 53 switch (addr->addr_type) { 89 addr->addr_type);
|
H A D | 6lowpan.c | 589 sa.addr_type = IEEE802154_ADDR_LONG; 601 da.addr_type = IEEE802154_ADDR_SHORT; 604 da.addr_type = IEEE802154_ADDR_LONG;
|
/net/bluetooth/ |
H A D | mgmt.c | 1773 u8 addr_type, struct sock *skip_sk) 1778 ev.addr.type = addr_type; 1928 static u8 link_to_bdaddr(u8 link_type, u8 addr_type) argument 1932 switch (addr_type) { 3546 u8 addr_type, u32 flags, u8 *name, u8 name_len, 3554 ev->addr.type = link_to_bdaddr(link_type, addr_type); 3608 u8 link_type, u8 addr_type, u8 reason) 3617 ev.addr.type = link_to_bdaddr(link_type, addr_type); 3633 u8 link_type, u8 addr_type, u8 status) 3647 rp.addr.type = link_to_bdaddr(link_type, addr_type); 1772 device_unpaired(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 addr_type, struct sock *skip_sk) argument 3545 mgmt_device_connected(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, u8 addr_type, u32 flags, u8 *name, u8 name_len, u8 *dev_class) argument 3607 mgmt_device_disconnected(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, u8 addr_type, u8 reason) argument 3632 mgmt_disconnect_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, u8 addr_type, u8 status) argument 3657 mgmt_connect_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, u8 addr_type, u8 status) argument 3725 mgmt_user_confirm_request(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, u8 addr_type, __le32 value, u8 confirm_hint) argument 3742 mgmt_user_passkey_request(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, u8 addr_type) argument 3756 user_pairing_resp_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, u8 addr_type, u8 status, u8 opcode) argument 3778 mgmt_user_confirm_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, u8 addr_type, u8 status) argument 3785 mgmt_user_confirm_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, u8 addr_type, u8 status) argument 3793 mgmt_user_passkey_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, u8 addr_type, u8 status) argument 3800 mgmt_user_passkey_neg_reply_complete(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, u8 addr_type, u8 status) argument 3808 mgmt_user_passkey_notify(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, u8 addr_type, u32 passkey, u8 entered) argument 3824 mgmt_auth_failed(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, u8 addr_type, u8 status) argument 4058 mgmt_device_found(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, u8 addr_type, u8 *dev_class, s8 rssi, u8 cfm_name, u8 ssp, u8 *eir, u16 eir_len) argument 4093 mgmt_remote_name(struct hci_dev *hdev, bdaddr_t *bdaddr, u8 link_type, u8 addr_type, s8 rssi, u8 *name, u8 name_len) argument [all...] |
/net/dccp/ |
H A D | ipv6.c | 833 int addr_type; local 864 addr_type = ipv6_addr_type(&usin->sin6_addr); 866 if (addr_type & IPV6_ADDR_MULTICAST) 869 if (addr_type & IPV6_ADDR_LINKLOCAL) { 893 if (addr_type == IPV6_ADDR_MAPPED) {
|