Home
last modified time | relevance | path

Searched refs:haddr (Results 1 – 7 of 7) sorted by relevance

/net/bluetooth/
Dhci_sock.c267 struct sockaddr_hci *haddr = (struct sockaddr_hci *) addr; in hci_sock_bind() local
274 if (!haddr || haddr->hci_family != AF_BLUETOOTH) in hci_sock_bind()
284 if (haddr->hci_dev != HCI_DEV_NONE) { in hci_sock_bind()
285 if (!(hdev = hci_dev_get(haddr->hci_dev))) { in hci_sock_bind()
303 struct sockaddr_hci *haddr = (struct sockaddr_hci *) addr; in hci_sock_getname() local
314 *addr_len = sizeof(*haddr); in hci_sock_getname()
315 haddr->hci_family = AF_BLUETOOTH; in hci_sock_getname()
316 haddr->hci_dev = hdev->id; in hci_sock_getname()
/net/ethernet/
Deth.c225 int eth_header_parse(const struct sk_buff *skb, unsigned char *haddr) in eth_header_parse() argument
228 memcpy(haddr, eth->h_source, ETH_ALEN); in eth_header_parse()
269 const unsigned char *haddr) in eth_header_cache_update() argument
272 haddr, ETH_ALEN); in eth_header_cache_update()
/net/ipv4/
Darp.c200 int arp_mc_map(__be32 addr, u8 *haddr, struct net_device *dev, int dir) in arp_mc_map() argument
206 ip_eth_mc_map(addr, haddr); in arp_mc_map()
209 ip_tr_mc_map(addr, haddr); in arp_mc_map()
212 ip_ib_mc_map(addr, dev->broadcast, haddr); in arp_mc_map()
216 memcpy(haddr, dev->broadcast, dev->addr_len); in arp_mc_map()
447 static int arp_set_predefined(int addr_hint, unsigned char * haddr, __be32 paddr, struct net_device… in arp_set_predefined() argument
452 memcpy(haddr, dev->dev_addr, dev->addr_len); in arp_set_predefined()
455 arp_mc_map(paddr, haddr, dev, 1); in arp_set_predefined()
458 memcpy(haddr, dev->broadcast, dev->addr_len); in arp_set_predefined()
465 int arp_find(unsigned char *haddr, struct sk_buff *skb) in arp_find() argument
[all …]
Ddevinet.c568 __u32 haddr = ntohl(addr); in inet_abc_len() local
570 if (IN_CLASSA(haddr)) in inet_abc_len()
572 else if (IN_CLASSB(haddr)) in inet_abc_len()
574 else if (IN_CLASSC(haddr)) in inet_abc_len()
Dip_gre.c1103 static int ipgre_header_parse(const struct sk_buff *skb, unsigned char *haddr) in ipgre_header_parse() argument
1106 memcpy(haddr, &iph->saddr, 4); in ipgre_header_parse()
/net/phonet/
Daf_phonet.c143 static int pn_header_parse(const struct sk_buff *skb, unsigned char *haddr) in pn_header_parse() argument
146 *haddr = *media; in pn_header_parse()
/net/mac80211/
Dmain.c95 static int header_parse_80211(const struct sk_buff *skb, unsigned char *haddr) in header_parse_80211() argument
97 memcpy(haddr, skb_mac_header(skb) + 10, ETH_ALEN); /* addr2 */ in header_parse_80211()