/net/bluetooth/ |
D | hci_sock.c | 647 struct sockaddr_hci haddr; in hci_sock_bind() local 657 memset(&haddr, 0, sizeof(haddr)); in hci_sock_bind() 658 len = min_t(unsigned int, sizeof(haddr), addr_len); in hci_sock_bind() 659 memcpy(&haddr, addr, len); in hci_sock_bind() 661 if (haddr.hci_family != AF_BLUETOOTH) in hci_sock_bind() 671 switch (haddr.hci_channel) { in hci_sock_bind() 678 if (haddr.hci_dev != HCI_DEV_NONE) { in hci_sock_bind() 679 hdev = hci_dev_get(haddr.hci_dev); in hci_sock_bind() 697 if (haddr.hci_dev == HCI_DEV_NONE) { in hci_sock_bind() 707 hdev = hci_dev_get(haddr.hci_dev); in hci_sock_bind() [all …]
|
/net/ethernet/ |
D | eth.c | 239 int eth_header_parse(const struct sk_buff *skb, unsigned char *haddr) in eth_header_parse() argument 242 memcpy(haddr, eth->h_source, ETH_ALEN); in eth_header_parse() 284 const unsigned char *haddr) in eth_header_cache_update() argument 287 haddr, ETH_ALEN); in eth_header_cache_update()
|
/net/ipv4/ |
D | arp.c | 191 int arp_mc_map(__be32 addr, u8 *haddr, struct net_device *dev, int dir) in arp_mc_map() argument 197 ip_eth_mc_map(addr, haddr); in arp_mc_map() 200 ip_ib_mc_map(addr, dev->broadcast, haddr); in arp_mc_map() 203 ip_ipgre_mc_map(addr, dev->broadcast, haddr); in arp_mc_map() 207 memcpy(haddr, dev->broadcast, dev->addr_len); in arp_mc_map() 452 static int arp_set_predefined(int addr_hint, unsigned char *haddr, in arp_set_predefined() argument 458 memcpy(haddr, dev->dev_addr, dev->addr_len); in arp_set_predefined() 461 arp_mc_map(paddr, haddr, dev, 1); in arp_set_predefined() 464 memcpy(haddr, dev->broadcast, dev->addr_len); in arp_set_predefined() 471 int arp_find(unsigned char *haddr, struct sk_buff *skb) in arp_find() argument [all …]
|
D | ip_gre.c | 395 static int ipgre_header_parse(const struct sk_buff *skb, unsigned char *haddr) in ipgre_header_parse() argument 398 memcpy(haddr, &iph->saddr, 4); in ipgre_header_parse()
|
D | devinet.c | 874 __u32 haddr = ntohl(addr); in inet_abc_len() local 876 if (IN_CLASSA(haddr)) in inet_abc_len() 878 else if (IN_CLASSB(haddr)) in inet_abc_len() 880 else if (IN_CLASSC(haddr)) in inet_abc_len()
|
/net/ieee802154/ |
D | dgram.c | 94 struct ieee802154_addr haddr; in dgram_bind() local 109 ieee802154_addr_from_sa(&haddr, &addr->addr); in dgram_bind() 110 dev = ieee802154_get_dev(sock_net(sk), &haddr); in dgram_bind() 121 ro->src_addr = haddr; in dgram_bind()
|
/net/sched/ |
D | sch_teql.c | 249 char haddr[MAX_ADDR_LEN]; in __teql_resolve() local 251 neigh_ha_snapshot(haddr, n, dev); in __teql_resolve() 252 err = dev_hard_header(skb, dev, ntohs(skb->protocol), haddr, in __teql_resolve()
|
/net/phonet/ |
D | af_phonet.c | 145 static int pn_header_parse(const struct sk_buff *skb, unsigned char *haddr) in pn_header_parse() argument 148 *haddr = *media; in pn_header_parse()
|
/net/mac802154/ |
D | wpan.c | 300 mac802154_header_parse(const struct sk_buff *skb, unsigned char *haddr) in mac802154_header_parse() argument 303 struct ieee802154_addr *addr = (struct ieee802154_addr *)haddr; in mac802154_header_parse()
|
/net/core/ |
D | neighbour.c | 2227 char haddr[MAX_ADDR_LEN]; in neigh_fill_info() local 2229 neigh_ha_snapshot(haddr, neigh, neigh->dev); in neigh_fill_info() 2230 if (nla_put(skb, NDA_LLADDR, neigh->dev->addr_len, haddr) < 0) { in neigh_fill_info()
|