Home
last modified time | relevance | path

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

12345

/Linux-v5.15/net/core/
Ddev_addr_lists.c21 unsigned char addr_type, bool global, bool sync) in __hw_addr_create() argument
33 ha->type = addr_type; in __hw_addr_create()
44 unsigned char addr_type, bool global, bool sync, in __hw_addr_add_ex() argument
55 (!addr_type || addr_type == ha->type)) in __hw_addr_add_ex()
64 diff = memcmp(&addr_type, &ha->type, sizeof(addr_type)); in __hw_addr_add_ex()
93 ha = __hw_addr_create(addr, addr_len, addr_type, global, sync); in __hw_addr_add_ex()
116 unsigned char addr_type) in __hw_addr_add() argument
118 return __hw_addr_add_ex(list, addr, addr_len, addr_type, false, false, in __hw_addr_add()
152 unsigned char addr_type) in __hw_addr_lookup() argument
163 (!addr_type || addr_type == ha->type)) in __hw_addr_lookup()
[all …]
/Linux-v5.15/net/ipv4/
Dnetfilter.c20 …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
34 if (addr_type == RTN_UNSPEC) in ip_route_me_harder()
35 addr_type = inet_addr_type_dev_table(net, dev, saddr); in ip_route_me_harder()
36 if (addr_type == RTN_LOCAL || addr_type == RTN_UNICAST) in ip_route_me_harder()
Darp.c648 int *addr_type, __be16 ar_op, in arp_is_garp() argument
666 *addr_type = inet_addr_type_dev_table(net, dev, sip); in arp_is_garp()
667 if (*addr_type != RTN_UNICAST) in arp_is_garp()
688 int addr_type; in arp_process() local
819 addr_type = rt->rt_type; in arp_process()
821 if (addr_type == RTN_LOCAL) { in arp_process()
839 if (addr_type == RTN_UNICAST && in arp_process()
869 addr_type = -1; in arp_process()
871 is_garp = arp_is_garp(net, dev, &addr_type, arp->ar_op, in arp_process()
883 (addr_type == RTN_UNICAST || in arp_process()
[all …]
/Linux-v5.15/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.15/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.c34 if (config->addr_type[idx] != ETM_ADDR_TYPE_RANGE || in etm4_set_mode_exclude()
35 config->addr_type[idx + 1] != ETM_ADDR_TYPE_RANGE) in etm4_set_mode_exclude()
253 config->addr_type[i] = ETM_ADDR_TYPE_NONE; in reset_store()
903 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_show()
904 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_show()
927 if (!(config->addr_type[idx] == ETM_ADDR_TYPE_NONE || in addr_single_store()
928 config->addr_type[idx] == ETM_ADDR_TYPE_SINGLE)) { in addr_single_store()
934 config->addr_type[idx] = ETM_ADDR_TYPE_SINGLE; in addr_single_store()
955 if (!((config->addr_type[idx] == ETM_ADDR_TYPE_NONE && in addr_range_show()
956 config->addr_type[idx + 1] == ETM_ADDR_TYPE_NONE) || in addr_range_show()
[all …]
/Linux-v5.15/drivers/net/ipvlan/
Dipvlan_core.c355 int addr_type, bool use_dest) in ipvlan_addr_lookup() argument
359 switch (addr_type) { in ipvlan_addr_lookup()
569 int addr_type; in ipvlan_xmit_mode_l3() local
571 lyr3h = ipvlan_get_L3_hdr(ipvlan->port, skb, &addr_type); in ipvlan_xmit_mode_l3()
576 addr = ipvlan_addr_lookup(ipvlan->port, lyr3h, addr_type, true); in ipvlan_xmit_mode_l3()
596 int addr_type; in ipvlan_xmit_mode_l2() local
600 lyr3h = ipvlan_get_L3_hdr(ipvlan->port, skb, &addr_type); in ipvlan_xmit_mode_l2()
602 addr = ipvlan_addr_lookup(ipvlan->port, lyr3h, addr_type, true); in ipvlan_xmit_mode_l2()
665 int addr_type; in ipvlan_external_frame() local
668 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.15/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.15/include/net/bluetooth/
Dhci_core.h198 u8 addr_type; member
723 u8 addr_type; member
1303 bdaddr_t *addr, u8 addr_type);
1305 bdaddr_t *addr, u8 addr_type);
1306 void hci_conn_params_del(struct hci_dev *hdev, bdaddr_t *addr, u8 addr_type);
1311 u8 addr_type);
1321 u8 addr_type, u8 type, u8 authenticated,
1324 u8 addr_type, u8 role);
1331 u8 addr_type);
1333 u8 addr_type, u8 val[16], bdaddr_t *rpa);
[all …]
/Linux-v5.15/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.15/net/l2tp/
Dl2tp_ip6.c270 int addr_type; in l2tp_ip6_bind() local
278 addr_type = ipv6_addr_type(&addr->l2tp_addr); in l2tp_ip6_bind()
281 if (addr_type == IPV6_ADDR_MAPPED) in l2tp_ip6_bind()
285 if (addr_type & IPV6_ADDR_MULTICAST) in l2tp_ip6_bind()
301 if (addr_type != IPV6_ADDR_ANY) { in l2tp_ip6_bind()
304 if (addr_type & IPV6_ADDR_LINKLOCAL) { in l2tp_ip6_bind()
368 int addr_type; in l2tp_ip6_connect() local
377 addr_type = ipv6_addr_type(&usin->sin6_addr); in l2tp_ip6_connect()
378 if (addr_type & IPV6_ADDR_MULTICAST) in l2tp_ip6_connect()
381 if (addr_type & IPV6_ADDR_MAPPED) { in l2tp_ip6_connect()
/Linux-v5.15/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.c643 return addr->addr_type == IPMI_LAN_ADDR_TYPE; in is_lan_addr()
648 return addr->addr_type == IPMI_IPMB_ADDR_TYPE; in is_ipmb_addr()
653 return addr->addr_type == IPMI_IPMB_BROADCAST_ADDR_TYPE; in is_ipmb_bcast_addr()
784 if (addr1->addr_type != addr2->addr_type) in ipmi_addr_equal()
790 if (addr1->addr_type == IPMI_SYSTEM_INTERFACE_ADDR_TYPE) { in ipmi_addr_equal()
829 if (addr->addr_type == IPMI_SYSTEM_INTERFACE_ADDR_TYPE) { in ipmi_validate_addr()
856 unsigned int ipmi_addr_length(int addr_type) in ipmi_addr_length() argument
858 if (addr_type == IPMI_SYSTEM_INTERFACE_ADDR_TYPE) in ipmi_addr_length()
861 if ((addr_type == IPMI_IPMB_ADDR_TYPE) in ipmi_addr_length()
862 || (addr_type == IPMI_IPMB_BROADCAST_ADDR_TYPE)) in ipmi_addr_length()
[all …]
/Linux-v5.15/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.15/drivers/net/ethernet/mediatek/
Dmtk_ppe_offload.c182 u16 addr_type = 0; in mtk_flow_offload_replace() local
204 addr_type = match.key->addr_type; in mtk_flow_offload_replace()
252 switch (addr_type) { in mtk_flow_offload_replace()
280 if (addr_type == FLOW_DISSECTOR_KEY_IPV4_ADDRS) { in mtk_flow_offload_replace()
314 if (addr_type == FLOW_DISSECTOR_KEY_IPV4_ADDRS) { in mtk_flow_offload_replace()
/Linux-v5.15/net/bluetooth/
D6lowpan.c502 u8 addr_type; in bt_xmit() local
516 err = setup_header(skb, netdev, &addr, &addr_type); in bt_xmit()
525 netdev->name, &addr, addr_type, in bt_xmit()
951 static int get_l2cap_conn(char *buf, bdaddr_t *addr, u8 *addr_type, in get_l2cap_conn() argument
961 addr_type); in get_l2cap_conn()
972 hcon = hci_conn_hash_lookup_le(hdev, addr, *addr_type); in get_l2cap_conn()
1089 u8 addr_type; in lowpan_control_write() local
1098 ret = get_l2cap_conn(&buf[8], &addr, &addr_type, &conn); in lowpan_control_write()
1124 addr_type); in lowpan_control_write()
1127 ret = bt_6lowpan_connect(&addr, addr_type); in lowpan_control_write()
[all …]
Dhci_core.c2486 u8 addr_type, u8 role) in hci_find_ltk() argument
2492 if (addr_type != k->bdaddr_type || bacmp(bdaddr, &k->bdaddr)) in hci_find_ltk()
2549 u8 addr_type) in hci_find_irk_by_addr() argument
2555 if (addr_type == ADDR_LE_DEV_RANDOM && (bdaddr->b[5] & 0xc0) != 0xc0) in hci_find_irk_by_addr()
2560 if (addr_type == irk->addr_type && in hci_find_irk_by_addr()
2629 u8 addr_type, u8 type, u8 authenticated, in hci_add_ltk() argument
2635 old_key = hci_find_ltk(hdev, bdaddr, addr_type, role); in hci_add_ltk()
2646 key->bdaddr_type = addr_type; in hci_add_ltk()
2658 u8 addr_type, u8 val[16], bdaddr_t *rpa) in hci_add_irk() argument
2662 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);
/Linux-v5.15/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.c288 int addr_type = 0; in __inet6_bind() local
294 addr_type = ipv6_addr_type(&addr->sin6_addr); in __inet6_bind()
295 if ((addr_type & IPV6_ADDR_MULTICAST) && sk->sk_type == SOCK_STREAM) in __inet6_bind()
314 if (addr_type == IPV6_ADDR_MAPPED) { in __inet6_bind()
349 if (addr_type != IPV6_ADDR_ANY) { in __inet6_bind()
353 if (__ipv6_addr_needs_scope_id(addr_type)) { in __inet6_bind()
381 if (!(addr_type & IPV6_ADDR_MULTICAST)) { in __inet6_bind()
398 if (!(addr_type & IPV6_ADDR_MULTICAST)) in __inet6_bind()
402 if (addr_type != IPV6_ADDR_ANY && addr_type != IPV6_ADDR_MAPPED) in __inet6_bind()
424 if (addr_type != IPV6_ADDR_ANY) in __inet6_bind()
Ddatagram.c144 int addr_type; in __ip6_datagram_connect() local
174 addr_type = ipv6_addr_type(&usin->sin6_addr); in __ip6_datagram_connect()
178 if (addr_type & IPV6_ADDR_MAPPED) { in __ip6_datagram_connect()
214 if (__ipv6_addr_needs_scope_id(addr_type)) { in __ip6_datagram_connect()
224 if (!sk->sk_bound_dev_if && (addr_type & IPV6_ADDR_MULTICAST)) in __ip6_datagram_connect()
766 int addr_type; in ip6_datagram_send_ctl() local
807 addr_type = __ipv6_addr_type(&src_info->ipi6_addr); in ip6_datagram_send_ctl()
816 } else if (addr_type & IPV6_ADDR_LINKLOCAL) { in ip6_datagram_send_ctl()
821 if (addr_type != IPV6_ADDR_ANY) { in ip6_datagram_send_ctl()
822 int strict = __ipv6_addr_src_scope(addr_type) <= IPV6_ADDR_SCOPE_LINKLOCAL; in ip6_datagram_send_ctl()
/Linux-v5.15/drivers/net/ethernet/marvell/prestera/
Dprestera_flower.c95 u16 addr_type = 0; in prestera_flower_parse() local
125 addr_type = match.key->addr_type; in prestera_flower_parse()
189 if (addr_type == FLOW_DISSECTOR_KEY_IPV4_ADDRS) { in prestera_flower_parse()
/Linux-v5.15/drivers/s390/cio/
Dioasm.c174 typedef struct { char _[4096]; } addr_type; in chsc() typedef
183 : [cc] "+&d" (cc), "+m" (*(addr_type *)chsc_area) in chsc()
/Linux-v5.15/net/6lowpan/
Dndisc.c201 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()

12345