Home
last modified time | relevance | path

Searched refs:addr_len (Results 1 – 25 of 165) sorted by relevance

1234567

/linux-2.4.37.9/net/ethernet/
Deth.c95 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/
Dipmi_devintf.c182 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/
Difconfig_net.c172 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/
Dndisc.c235 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 …]
Draw.c189 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()
Dudp.c226 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/
Darp.c215 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 …]
Daf_inet.c473 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()
Draw.c458 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()
Dipconfig.c430 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/
Dnet_init.c242 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/
Dinet_common.h17 int addr_len, int flags);
20 int addr_len, int flags);
47 struct sockaddr *uaddr, int addr_len);
Dtransp_v6.h26 int addr_len);
/linux-2.4.37.9/include/linux/
Dnet.h179 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)) \
Dipmi.h404 unsigned int addr_len; member
434 unsigned int addr_len; /* The size of the address buffer. member
/linux-2.4.37.9/net/netrom/
Dnr_dev.c143 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/
Dfc.c69 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()
Dfddi.c79 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/
Dax25_ip.c70 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()
Daf_ax25.c1049 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/
Drose_dev.c138 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/
Difconfig_net.h29 unsigned char addr_len; /* hardware address length */ member
/linux-2.4.37.9/drivers/net/tulip/
Deeprom.c343 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/
Daf_unix.c630 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/
Daf_ipx.c681 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 …]

1234567