/linux-2.4.37.9/net/ethernet/ |
D | eth.c | 95 memcpy(eth->h_source,saddr,dev->addr_len); in eth_header() 97 memcpy(eth->h_source,dev->dev_addr,dev->addr_len); in eth_header() 101 memcpy(eth->h_dest,daddr,dev->addr_len); in eth_header() 111 memset(eth->h_dest, 0, dev->addr_len); in eth_header() 144 memcpy(eth->h_source, dev->dev_addr, dev->addr_len); in eth_rebuild_header() 229 memcpy(eth->h_source, dev->dev_addr, dev->addr_len); in eth_header_cache() 230 memcpy(eth->h_dest, neigh->ha, dev->addr_len); in eth_header_cache() 242 haddr, dev->addr_len); in eth_header_cache_update()
|
/linux-2.4.37.9/drivers/char/ipmi/ |
D | ipmi_devintf.c | 182 if (req.addr_len > sizeof(struct ipmi_addr)) in ipmi_ioctl() 188 if (copy_from_user(&addr, req.addr, req.addr_len)) { in ipmi_ioctl() 193 rv = ipmi_validate_addr(&addr, req.addr_len); in ipmi_ioctl() 228 int addr_len; in ipmi_ioctl() local 262 addr_len = ipmi_addr_length(msg->addr.addr_type); in ipmi_ioctl() 263 if (rsp.addr_len < addr_len) in ipmi_ioctl() 269 if (copy_to_user(rsp.addr, &(msg->addr), addr_len)) { in ipmi_ioctl() 273 rsp.addr_len = addr_len; in ipmi_ioctl()
|
/linux-2.4.37.9/arch/ia64/sn/io/drivers/ |
D | ifconfig_net.c | 172 while (ifname_MAC->addr_len) { in find_persistent_ifname() 173 if (memcmp(dev->dev_addr, ifname_MAC->dev_addr, dev->addr_len) == 0) in find_persistent_ifname() 240 if ( (dev->addr_len == 0) || ( !strncmp(dev->name, "lo", strlen(dev->name))) ){ in ifconfig_net_ioctl() 262 temp_new_devices->addr_len = dev->addr_len; in ifconfig_net_ioctl() 263 memcpy(temp_new_devices->dev_addr, dev->dev_addr, dev->addr_len); in ifconfig_net_ioctl()
|
/linux-2.4.37.9/net/ipv6/ |
D | ndisc.c | 235 memcpy(buf, dev->broadcast, dev->addr_len); in ndisc_mc_map() 282 memcpy(neigh->ha, dev->dev_addr, dev->addr_len); in ndisc_constructor() 287 memcpy(neigh->ha, dev->broadcast, dev->addr_len); in ndisc_constructor() 345 memcpy(ha, neigh->ha, dev->addr_len); in ndisc_build_ll_hdr() 354 memcpy(ha, neigh->ha, dev->addr_len); in ndisc_build_ll_hdr() 390 if (dev->addr_len) in ndisc_send_na() 391 len += NDISC_OPT_SPACE(dev->addr_len); in ndisc_send_na() 436 ndisc_fill_option(msg->opt, ND_OPT_TARGET_LL_ADDR, dev->dev_addr, dev->addr_len); in ndisc_send_na() 469 send_llinfo = dev->addr_len && ipv6_addr_type(saddr) != IPV6_ADDR_ANY; in ndisc_send_ns() 471 len += NDISC_OPT_SPACE(dev->addr_len); in ndisc_send_ns() [all …]
|
D | raw.c | 189 static int rawv6_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in rawv6_bind() argument 196 if (addr_len < SIN6_LEN_RFC2133) in rawv6_bind() 211 if (addr_len >= sizeof(struct sockaddr_in6) && in rawv6_bind() 354 int noblock, int flags, int *addr_len) in rawv6_recvmsg() argument 363 if (addr_len) in rawv6_recvmsg() 364 *addr_len=sizeof(*sin6); in rawv6_recvmsg() 519 int addr_len = msg->msg_namelen; in rawv6_sendmsg() local 544 if (addr_len < SIN6_LEN_RFC2133) in rawv6_sendmsg() 575 if (addr_len >= sizeof(struct sockaddr_in6) && in rawv6_sendmsg()
|
D | udp.c | 226 int udpv6_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in udpv6_connect() argument 241 err = udp_connect(sk, uaddr, addr_len); in udpv6_connect() 245 if (addr_len < SIN6_LEN_RFC2133) in udpv6_connect() 308 if (addr_len >= sizeof(struct sockaddr_in6) && in udpv6_connect() 394 int noblock, int flags, int *addr_len) in udpv6_recvmsg() argument 399 if (addr_len) in udpv6_recvmsg() 400 *addr_len=sizeof(struct sockaddr_in6); in udpv6_recvmsg() 784 int addr_len = msg->msg_namelen; in udpv6_sendmsg() local 808 if (addr_len < SIN6_LEN_RFC2133) in udpv6_sendmsg() 835 if (addr_len >= sizeof(struct sockaddr_in6) && in udpv6_sendmsg()
|
/linux-2.4.37.9/net/ipv4/ |
D | arp.c | 215 memcpy(haddr, dev->broadcast, dev->addr_len); in arp_mc_map() 295 memcpy(neigh->ha, dev->dev_addr, dev->addr_len); in arp_constructor() 298 memcpy(neigh->ha, dev->broadcast, dev->addr_len); in arp_constructor() 442 memcpy(haddr, dev->dev_addr, dev->addr_len); in arp_set_predefined() 448 memcpy(haddr, dev->broadcast, dev->addr_len); in arp_set_predefined() 478 memcpy(haddr, n->ha, dev->addr_len); in arp_find() 561 skb = alloc_skb(sizeof(struct arphdr)+ 2*(dev->addr_len+4) in arp_create() 568 arp = (struct arphdr *) skb_put(skb,sizeof(struct arphdr) + 2*(dev->addr_len+4)); in arp_create() 627 arp->ar_hln = dev->addr_len; in arp_create() 633 memcpy(arp_ptr, src_hw, dev->addr_len); in arp_create() [all …]
|
D | af_inet.c | 473 int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in inet_bind() argument 483 return sk->prot->bind(sk, uaddr, addr_len); in inet_bind() 485 if (addr_len < sizeof(struct sockaddr_in)) in inet_bind() 550 int addr_len, int flags) in inet_dgram_connect() argument 559 return sk->prot->connect(sk, (struct sockaddr *)uaddr, addr_len); in inet_dgram_connect() 593 int addr_len, int flags) in inet_stream_connect() argument 623 err = sk->prot->connect(sk, uaddr, addr_len); in inet_stream_connect() 738 int addr_len = 0; in inet_recvmsg() local 742 flags&~MSG_DONTWAIT, &addr_len); in inet_recvmsg() 744 msg->msg_namelen = addr_len; in inet_recvmsg()
|
D | raw.c | 458 static int raw_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in raw_bind() argument 464 if (sk->state != TCP_CLOSE || addr_len < sizeof(struct sockaddr_in)) in raw_bind() 485 int noblock, int flags, int *addr_len) in raw_recvmsg() argument 495 if (addr_len) in raw_recvmsg() 496 *addr_len = sizeof(*sin); in raw_recvmsg()
|
D | ipconfig.c | 430 if (rarp->ar_hln != dev->addr_len || dev->type != ntohs(rarp->ar_hrd)) in ic_rarp_recv() 443 rarp_ptr += dev->addr_len; in ic_rarp_recv() 447 rarp_ptr += dev->addr_len; in ic_rarp_recv() 451 if (memcmp(tha, dev->dev_addr, dev->addr_len)) in ic_rarp_recv() 698 b->hlen = dev->addr_len; in ic_bootp_send_if() 701 memcpy(b->hw_addr, dev->dev_addr, dev->addr_len); in ic_bootp_send_if() 904 if (memcmp(dev->dev_addr, b->hw_addr, dev->addr_len) != 0) in ic_bootp_recv()
|
/linux-2.4.37.9/drivers/net/ |
D | net_init.c | 242 memcpy(dev->dev_addr, addr->sa_data,dev->addr_len); in eth_mac_addr() 331 memcpy(dev->dev_addr, addr->sa_data, dev->addr_len); in hippi_mac_addr() 422 dev->addr_len = ETH_ALEN; in ether_setup() 448 dev->addr_len = FDDI_K_ALEN; in fddi_setup() 481 dev->addr_len = HIPPI_ALEN; in hippi_setup() 522 dev->addr_len = LTALK_ALEN; in ltalk_setup() 593 dev->addr_len = TR_ALEN; in tr_setup() 670 dev->addr_len = FC_ALEN; in fc_setup()
|
/linux-2.4.37.9/include/net/ |
D | inet_common.h | 17 int addr_len, int flags); 20 int addr_len, int flags); 47 struct sockaddr *uaddr, int addr_len);
|
D | transp_v6.h | 26 int addr_len);
|
/linux-2.4.37.9/include/linux/ |
D | net.h | 179 SOCKCALL_WRAP(name, bind, (struct socket *sock, struct sockaddr *uaddr, int addr_len), \ 180 (sock, uaddr, addr_len)) \ 182 int addr_len, int flags), \ 183 (sock, uaddr, addr_len, flags)) \ 189 int *addr_len, int peer), (sock, uaddr, addr_len, peer)) \
|
D | ipmi.h | 404 unsigned int addr_len; member 434 unsigned int addr_len; /* The size of the address buffer. member
|
/linux-2.4.37.9/net/netrom/ |
D | nr_dev.c | 143 memcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len); in nr_header() 150 memcpy(buff, daddr, dev->addr_len); in nr_header() 176 memcpy(dev->dev_addr, sa->sa_data, dev->addr_len); in nr_set_mac_address() 221 dev->addr_len = AX25_ADDR_LEN; in nr_init()
|
/linux-2.4.37.9/net/802/ |
D | fc.c | 69 memcpy(fch->saddr,saddr,dev->addr_len); in fc_header() 71 memcpy(fch->saddr,dev->dev_addr,dev->addr_len); in fc_header() 75 memcpy(fch->daddr,daddr,dev->addr_len); in fc_header()
|
D | fddi.c | 79 memcpy(fddi->saddr, saddr, dev->addr_len); in fddi_header() 81 memcpy(fddi->saddr, dev->dev_addr, dev->addr_len); in fddi_header() 85 memcpy(fddi->daddr, daddr, dev->addr_len); in fddi_header()
|
/linux-2.4.37.9/net/ax25/ |
D | ax25_ip.c | 70 memcpy(buff, daddr, dev->addr_len); /* Address specified */ in ax25_encapsulate() 78 memcpy(buff, saddr, dev->addr_len); in ax25_encapsulate() 80 memcpy(buff, dev->dev_addr, dev->addr_len); in ax25_encapsulate()
|
D | af_ax25.c | 1049 static int ax25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in ax25_bind() argument 1059 if (addr_len != sizeof(struct sockaddr_ax25) && in ax25_bind() 1060 addr_len != sizeof(struct full_sockaddr_ax25)) { in ax25_bind() 1062 if ((addr_len < sizeof(struct sockaddr_ax25) + sizeof(ax25_address) * 6) || in ax25_bind() 1063 (addr_len > sizeof(struct full_sockaddr_ax25))) in ax25_bind() 1089 if (addr_len > sizeof(struct sockaddr_ax25) && addr->fsa_ax25.sax25_ndigis == 1) { in ax25_bind() 1110 static int ax25_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags) in ax25_connect() argument 1143 if (addr_len == sizeof(struct sockaddr_ax25)) { in ax25_connect() 1148 else if (addr_len != sizeof(struct full_sockaddr_ax25)) { in ax25_connect() 1150 if ((addr_len < sizeof(struct sockaddr_ax25) + sizeof(ax25_address) * 6) || in ax25_connect() [all …]
|
/linux-2.4.37.9/net/rose/ |
D | rose_dev.c | 138 memcpy(dev->dev_addr, sa->sa_data, dev->addr_len); in rose_set_mac_address() 188 dev->addr_len = ROSE_ADDR_LEN; in rose_init()
|
/linux-2.4.37.9/include/asm-ia64/sn/ |
D | ifconfig_net.h | 29 unsigned char addr_len; /* hardware address length */ member
|
/linux-2.4.37.9/drivers/net/tulip/ |
D | eeprom.c | 343 int __devinit tulip_read_eeprom(long ioaddr, int location, int addr_len) in tulip_read_eeprom() argument 348 int read_cmd = location | (EE_READ_CMD << addr_len); in tulip_read_eeprom() 354 for (i = 4 + addr_len; i >= 0; i--) { in tulip_read_eeprom()
|
/linux-2.4.37.9/net/unix/ |
D | af_unix.c | 630 static int unix_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in unix_bind() argument 645 if (addr_len==sizeof(short)) { in unix_bind() 650 err = unix_mkname(sunaddr, addr_len, &hash); in unix_bind() 653 addr_len = err; in unix_bind() 662 addr = kmalloc(sizeof(*addr)+addr_len, GFP_KERNEL); in unix_bind() 666 memcpy(addr->name, sunaddr, addr_len); in unix_bind() 667 addr->len = addr_len; in unix_bind() 727 if (__unix_find_socket_byname(sunaddr, addr_len, in unix_bind() 848 int addr_len, int flags) in unix_stream_connect() argument 860 err = unix_mkname(sunaddr, addr_len, &hash); in unix_stream_connect() [all …]
|
/linux-2.4.37.9/net/ipx/ |
D | af_ipx.c | 681 int addr_len; in ipxitf_send() local 759 addr_len = dev->addr_len; in ipxitf_send() 761 memcpy(dest_node, dev->broadcast, addr_len); in ipxitf_send() 763 memcpy(dest_node, &(node[IPX_NODE_LEN-addr_len]), addr_len); in ipxitf_send() 1132 if (dev->addr_len > IPX_NODE_LEN) in ipxitf_create() 1150 memcpy(intrfc->if_node + IPX_NODE_LEN - dev->addr_len, in ipxitf_create() 1151 dev->dev_addr, dev->addr_len); in ipxitf_create() 1221 if (dev->addr_len > IPX_NODE_LEN) in ipxitf_auto_create() 1250 memcpy((char *)&(intrfc->if_node[IPX_NODE_LEN-dev->addr_len]), in ipxitf_auto_create() 1251 dev->dev_addr, dev->addr_len); in ipxitf_auto_create() [all …]
|