Home
last modified time | relevance | path

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

1234

/Linux-v5.4/net/core/
Ddev_addr_lists.c21 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 …]
/Linux-v5.4/net/ipv4/
Dnetfilter.c20 int ip_route_me_harder(struct net *net, struct sk_buff *skb, unsigned int addr_type) in ip_route_me_harder() argument
31 if (addr_type == RTN_UNSPEC) in ip_route_me_harder()
32 addr_type = inet_addr_type_dev_table(net, dev, saddr); in ip_route_me_harder()
33 if (addr_type == RTN_LOCAL || addr_type == RTN_UNICAST) in ip_route_me_harder()
Darp.c646 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 …]
/Linux-v5.4/include/uapi/linux/
Dipmi.h54 int addr_type; member
66 int addr_type; member
77 int addr_type; member
102 int addr_type; member
/Linux-v5.4/drivers/hwtracing/coresight/
Dcoresight-etm3x-sysfs.c84 config->addr_type[i] = ETM_ADDR_TYPE_NONE; in reset_store()
319 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_show()
320 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_show()
347 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_store()
348 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_store()
354 config->addr_type[idx] = ETM_ADDR_TYPE_SINGLE; in addr_single_store()
375 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_show()
376 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_show()
377 (config->addr_type[idx] == ETM_ADDR_TYPE_RANGE && in addr_range_show()
378 config->addr_type[idx + 1] == ETM_ADDR_TYPE_RANGE))) { in addr_range_show()
[all …]
Dcoresight-etm4x-sysfs.c33 if (config->addr_type[idx] != ETM_ADDR_TYPE_RANGE || in etm4_set_mode_exclude()
34 config->addr_type[idx + 1] != ETM_ADDR_TYPE_RANGE) in etm4_set_mode_exclude()
250 config->addr_type[i] = ETM_ADDR_TYPE_NONE; in reset_store()
895 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_show()
896 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_show()
919 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_store()
920 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_store()
926 config->addr_type[idx] = ETM_ADDR_TYPE_SINGLE; in addr_single_store()
947 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_show()
948 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_show()
[all …]
/Linux-v5.4/drivers/net/ipvlan/
Dipvlan_core.c354 int addr_type, bool use_dest) in ipvlan_addr_lookup() argument
358 switch (addr_type) { in ipvlan_addr_lookup()
566 int addr_type; in ipvlan_xmit_mode_l3() local
568 lyr3h = ipvlan_get_L3_hdr(ipvlan->port, skb, &addr_type); in ipvlan_xmit_mode_l3()
573 addr = ipvlan_addr_lookup(ipvlan->port, lyr3h, addr_type, true); in ipvlan_xmit_mode_l3()
593 int addr_type; in ipvlan_xmit_mode_l2() local
597 lyr3h = ipvlan_get_L3_hdr(ipvlan->port, skb, &addr_type); in ipvlan_xmit_mode_l2()
599 addr = ipvlan_addr_lookup(ipvlan->port, lyr3h, addr_type, true); in ipvlan_xmit_mode_l2()
663 int addr_type; in ipvlan_external_frame() local
666 lyr3h = ipvlan_get_L3_hdr(port, skb, &addr_type); in ipvlan_external_frame()
[all …]
Dipvlan_l3s.c18 int addr_type; in ipvlan_skb_to_addr() local
28 lyr3h = ipvlan_get_L3_hdr(port, skb, &addr_type); in ipvlan_skb_to_addr()
32 addr = ipvlan_addr_lookup(port, lyr3h, addr_type, true); in ipvlan_skb_to_addr()
/Linux-v5.4/net/ipv6/netfilter/
Dip6t_rpfilter.c22 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()
/Linux-v5.4/include/net/bluetooth/
Dhci_core.h146 u8 addr_type; member
550 u8 addr_type; member
1092 bdaddr_t *addr, u8 addr_type);
1094 bdaddr_t *addr, u8 addr_type);
1095 void hci_conn_params_del(struct hci_dev *hdev, bdaddr_t *addr, u8 addr_type);
1100 u8 addr_type);
1110 u8 addr_type, u8 type, u8 authenticated,
1113 u8 addr_type, u8 role);
1120 u8 addr_type);
1122 u8 addr_type, u8 val[16], bdaddr_t *rpa);
[all …]
/Linux-v5.4/net/rds/
Dbind.c192 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()
/Linux-v5.4/net/l2tp/
Dl2tp_ip6.c269 int addr_type; in l2tp_ip6_bind() local
277 addr_type = ipv6_addr_type(&addr->l2tp_addr); in l2tp_ip6_bind()
280 if (addr_type == IPV6_ADDR_MAPPED) in l2tp_ip6_bind()
284 if (addr_type & IPV6_ADDR_MULTICAST) in l2tp_ip6_bind()
300 if (addr_type != IPV6_ADDR_ANY) { in l2tp_ip6_bind()
303 if (addr_type & IPV6_ADDR_LINKLOCAL) { in l2tp_ip6_bind()
367 int addr_type; in l2tp_ip6_connect() local
376 addr_type = ipv6_addr_type(&usin->sin6_addr); in l2tp_ip6_connect()
377 if (addr_type & IPV6_ADDR_MULTICAST) in l2tp_ip6_connect()
380 if (addr_type & IPV6_ADDR_MAPPED) { in l2tp_ip6_connect()
/Linux-v5.4/drivers/char/ipmi/
Dipmi_poweroff.c192 smi_addr.addr_type = IPMI_SYSTEM_INTERFACE_ADDR_TYPE; in pps_poweroff_atca()
221 smi_addr.addr_type = IPMI_SYSTEM_INTERFACE_ADDR_TYPE; in ipmi_atca_detect()
256 smi_addr.addr_type = IPMI_SYSTEM_INTERFACE_ADDR_TYPE; in ipmi_poweroff_atca()
331 smi_addr.addr_type = IPMI_SYSTEM_INTERFACE_ADDR_TYPE; in ipmi_poweroff_cpi1()
370 ipmb_addr.addr_type = IPMI_IPMB_ADDR_TYPE; in ipmi_poweroff_cpi1()
478 smi_addr.addr_type = IPMI_SYSTEM_INTERFACE_ADDR_TYPE; in ipmi_poweroff_chassis()
582 smi_addr.addr_type = IPMI_SYSTEM_INTERFACE_ADDR_TYPE; in ipmi_po_new_smi()
Dipmi_msghandler.c666 return addr->addr_type == IPMI_LAN_ADDR_TYPE; in is_lan_addr()
671 return addr->addr_type == IPMI_IPMB_ADDR_TYPE; in is_ipmb_addr()
676 return addr->addr_type == IPMI_IPMB_BROADCAST_ADDR_TYPE; in is_ipmb_bcast_addr()
806 if (addr1->addr_type != addr2->addr_type) in ipmi_addr_equal()
812 if (addr1->addr_type == IPMI_SYSTEM_INTERFACE_ADDR_TYPE) { in ipmi_addr_equal()
851 if (addr->addr_type == IPMI_SYSTEM_INTERFACE_ADDR_TYPE) { in ipmi_validate_addr()
878 unsigned int ipmi_addr_length(int addr_type) in ipmi_addr_length() argument
880 if (addr_type == IPMI_SYSTEM_INTERFACE_ADDR_TYPE) in ipmi_addr_length()
883 if ((addr_type == IPMI_IPMB_ADDR_TYPE) in ipmi_addr_length()
884 || (addr_type == IPMI_IPMB_BROADCAST_ADDR_TYPE)) in ipmi_addr_length()
[all …]
/Linux-v5.4/net/netfilter/
Dxt_addrtype.c71 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()
/Linux-v5.4/drivers/s390/cio/
Dioasm.c168 typedef struct { char _[4096]; } addr_type; in chsc() typedef
177 : "+d" (cc), "=m" (*(addr_type *) chsc_area) in chsc()
178 : "d" (chsc_area), "m" (*(addr_type *) chsc_area) in chsc()
/Linux-v5.4/net/bluetooth/
D6lowpan.c530 u8 addr_type; in bt_xmit() local
544 err = setup_header(skb, netdev, &addr, &addr_type); in bt_xmit()
553 netdev->name, &addr, addr_type, in bt_xmit()
981 static int get_l2cap_conn(char *buf, bdaddr_t *addr, u8 *addr_type, in get_l2cap_conn() argument
991 addr_type); in get_l2cap_conn()
1002 hcon = hci_conn_hash_lookup_le(hdev, addr, *addr_type); in get_l2cap_conn()
1117 u8 addr_type; in lowpan_control_write() local
1126 ret = get_l2cap_conn(&buf[8], &addr, &addr_type, &conn); in lowpan_control_write()
1150 addr_type); in lowpan_control_write()
1153 ret = bt_6lowpan_connect(&addr, addr_type); in lowpan_control_write()
[all …]
Dhci_core.c2357 u8 addr_type, u8 role) in hci_find_ltk() argument
2363 if (addr_type != k->bdaddr_type || bacmp(bdaddr, &k->bdaddr)) in hci_find_ltk()
2401 u8 addr_type) in hci_find_irk_by_addr() argument
2406 if (addr_type == ADDR_LE_DEV_RANDOM && (bdaddr->b[5] & 0xc0) != 0xc0) in hci_find_irk_by_addr()
2411 if (addr_type == irk->addr_type && in hci_find_irk_by_addr()
2470 u8 addr_type, u8 type, u8 authenticated, in hci_add_ltk() argument
2476 old_key = hci_find_ltk(hdev, bdaddr, addr_type, role); in hci_add_ltk()
2487 key->bdaddr_type = addr_type; in hci_add_ltk()
2499 u8 addr_type, u8 val[16], bdaddr_t *rpa) in hci_add_irk() argument
2503 irk = hci_find_irk_by_addr(hdev, bdaddr, addr_type); in hci_add_irk()
[all …]
Dsmp.h95 __u8 addr_type; member
185 u8 addr_type);
Dmgmt.c2362 u8 addr_type, struct sock *skip_sk) in device_unpaired() argument
2367 ev.addr.type = addr_type; in device_unpaired()
2381 u8 addr_type; in unpair_device() local
2434 addr_type = le_addr_type(cp->addr.type); in unpair_device()
2437 err = smp_cancel_and_remove_pairing(hdev, &cp->addr.bdaddr, addr_type); in unpair_device()
2445 conn = hci_conn_hash_lookup_le(hdev, &cp->addr.bdaddr, addr_type); in unpair_device()
2447 hci_conn_params_del(hdev, &cp->addr.bdaddr, addr_type); in unpair_device()
2458 params = hci_conn_params_lookup(hdev, &cp->addr.bdaddr, addr_type); in unpair_device()
2567 static u8 link_to_bdaddr(u8 link_type, u8 addr_type) in link_to_bdaddr() argument
2571 switch (addr_type) { in link_to_bdaddr()
[all …]
/Linux-v5.4/net/ipv6/
Dping.c52 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()
Daf_inet6.c284 int addr_type = 0; in __inet6_bind() local
290 addr_type = ipv6_addr_type(&addr->sin6_addr); in __inet6_bind()
291 if ((addr_type & IPV6_ADDR_MULTICAST) && sk->sk_type == SOCK_STREAM) in __inet6_bind()
309 if (addr_type == IPV6_ADDR_MAPPED) { in __inet6_bind()
344 if (addr_type != IPV6_ADDR_ANY) { in __inet6_bind()
348 if (__ipv6_addr_needs_scope_id(addr_type)) { in __inet6_bind()
376 if (!(addr_type & IPV6_ADDR_MULTICAST)) { in __inet6_bind()
393 if (!(addr_type & IPV6_ADDR_MULTICAST)) in __inet6_bind()
397 if (addr_type != IPV6_ADDR_ANY && addr_type != IPV6_ADDR_MAPPED) in __inet6_bind()
417 if (addr_type != IPV6_ADDR_ANY) in __inet6_bind()
Ddatagram.c143 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()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_flower.c330 u16 addr_type = 0; in mlxsw_sp_flower_parse() local
360 addr_type = match.key->addr_type; in mlxsw_sp_flower_parse()
433 if (addr_type == FLOW_DISSECTOR_KEY_IPV4_ADDRS) in mlxsw_sp_flower_parse()
436 if (addr_type == FLOW_DISSECTOR_KEY_IPV6_ADDRS) in mlxsw_sp_flower_parse()
/Linux-v5.4/include/net/
Daf_ieee802154.h28 int addr_type; member

1234