/net/core/ |
D | dev_addr_lists.c | 20 const unsigned char *addr, int addr_len, in __hw_addr_create_ex() argument 33 memcpy(ha->addr, addr, addr_len); in __hw_addr_create_ex() 46 const unsigned char *addr, int addr_len, in __hw_addr_add_ex() argument 52 if (addr_len > MAX_ADDR_LEN) in __hw_addr_add_ex() 57 !memcmp(ha->addr, addr, addr_len)) { in __hw_addr_add_ex() 76 return __hw_addr_create_ex(list, addr, addr_len, addr_type, global, in __hw_addr_add_ex() 81 const unsigned char *addr, int addr_len, in __hw_addr_add() argument 84 return __hw_addr_add_ex(list, addr, addr_len, addr_type, false, false, in __hw_addr_add() 113 const unsigned char *addr, int addr_len, in __hw_addr_del_ex() argument 119 if (!memcmp(ha->addr, addr, addr_len) && in __hw_addr_del_ex() [all …]
|
D | dev_ioctl.c | 126 if (!dev->addr_len) in dev_ifsioc_locked() 132 (size_t)dev->addr_len)); in dev_ifsioc_locked() 247 if (dev->addr_len > sizeof(struct sockaddr)) in dev_ifsioc() 256 (size_t)dev->addr_len)); in dev_ifsioc()
|
/net/netlabel/ |
D | netlabel_unlabeled.c | 367 u32 addr_len, in netlbl_unlhsh_add() argument 379 if (addr_len != sizeof(struct in_addr) && in netlbl_unlhsh_add() 380 addr_len != sizeof(struct in6_addr)) in netlbl_unlhsh_add() 405 switch (addr_len) { in netlbl_unlhsh_add() 631 u32 addr_len, in netlbl_unlhsh_remove() argument 638 if (addr_len != sizeof(struct in_addr) && in netlbl_unlhsh_remove() 639 addr_len != sizeof(struct in6_addr)) in netlbl_unlhsh_remove() 656 switch (addr_len) { in netlbl_unlhsh_remove() 768 u32 addr_len; in netlbl_unlabel_addrinfo_get() local 772 addr_len = nla_len(info->attrs[NLBL_UNLABEL_A_IPV4ADDR]); in netlbl_unlabel_addrinfo_get() [all …]
|
D | netlabel_unlabeled.h | 213 u32 addr_len, 220 u32 addr_len,
|
D | netlabel_kapi.c | 216 u32 addr_len; in netlbl_cfg_unlbl_static_add() local 220 addr_len = sizeof(struct in_addr); in netlbl_cfg_unlbl_static_add() 224 addr_len = sizeof(struct in6_addr); in netlbl_cfg_unlbl_static_add() 232 dev_name, addr, mask, addr_len, in netlbl_cfg_unlbl_static_add() 258 u32 addr_len; in netlbl_cfg_unlbl_static_del() local 262 addr_len = sizeof(struct in_addr); in netlbl_cfg_unlbl_static_del() 266 addr_len = sizeof(struct in6_addr); in netlbl_cfg_unlbl_static_del() 274 dev_name, addr, mask, addr_len, in netlbl_cfg_unlbl_static_del()
|
/net/ceph/ |
D | decode.c | 11 u32 struct_len, addr_len; in ceph_decode_entity_addr_versioned() local 26 ceph_decode_32_safe(p, end, addr_len, bad); in ceph_decode_entity_addr_versioned() 27 if (addr_len > sizeof(addr->in_addr)) in ceph_decode_entity_addr_versioned() 31 if (addr_len) { in ceph_decode_entity_addr_versioned() 32 ceph_decode_copy_safe(p, end, &addr->in_addr, addr_len, bad); in ceph_decode_entity_addr_versioned()
|
/net/netrom/ |
D | nr_dev.c | 71 memcpy(buff, (saddr != NULL) ? saddr : dev->dev_addr, dev->addr_len); in nr_header() 78 memcpy(buff, daddr, dev->addr_len); in nr_header() 103 if (!memcmp(dev->dev_addr, sa->sa_data, dev->addr_len)) in nr_set_mac_address() 114 memcpy(dev->dev_addr, sa->sa_data, dev->addr_len); in nr_set_mac_address() 173 dev->addr_len = AX25_ADDR_LEN; in nr_setup()
|
/net/802/ |
D | fc.c | 62 memcpy(fch->saddr,saddr,dev->addr_len); in fc_header() 64 memcpy(fch->saddr,dev->dev_addr,dev->addr_len); in fc_header() 68 memcpy(fch->daddr,daddr,dev->addr_len); in fc_header() 84 dev->addr_len = FC_ALEN; in fc_setup()
|
D | fddi.c | 73 memcpy(fddi->saddr, saddr, dev->addr_len); in fddi_header() 75 memcpy(fddi->saddr, dev->dev_addr, dev->addr_len); in fddi_header() 79 memcpy(fddi->daddr, daddr, dev->addr_len); in fddi_header() 153 dev->addr_len = FDDI_K_ALEN; in fddi_setup()
|
/net/rose/ |
D | rose_dev.c | 42 memcpy(buff + 7, daddr, dev->addr_len); in rose_header() 61 if (!memcmp(dev->dev_addr, sa->sa_data, dev->addr_len)) in rose_set_mac_address() 72 memcpy(dev->dev_addr, sa->sa_data, dev->addr_len); in rose_set_mac_address() 136 dev->addr_len = ROSE_ADDR_LEN; in rose_setup()
|
/net/l2tp/ |
D | l2tp_ip6.c | 261 static int l2tp_ip6_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in l2tp_ip6_bind() argument 274 if (addr_len < sizeof(*addr)) in l2tp_ip6_bind() 362 int addr_len) in l2tp_ip6_connect() argument 370 if (addr_len < sizeof(*lsa)) in l2tp_ip6_connect() 394 rc = __ip6_datagram_connect(sk, uaddr, addr_len); in l2tp_ip6_connect() 502 int addr_len = msg->msg_namelen; in l2tp_ip6_sendmsg() local 528 if (addr_len < SIN6_LEN_RFC2133) in l2tp_ip6_sendmsg() 552 if (addr_len >= sizeof(struct sockaddr_in6) && in l2tp_ip6_sendmsg() 662 int noblock, int flags, int *addr_len) in l2tp_ip6_recvmsg() argument 674 return ipv6_recv_error(sk, msg, len, addr_len); in l2tp_ip6_recvmsg() [all …]
|
D | l2tp_ip.c | 245 static int l2tp_ip_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in l2tp_ip_bind() argument 253 if (addr_len < sizeof(struct sockaddr_l2tpip)) in l2tp_ip_bind() 302 static int l2tp_ip_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in l2tp_ip_connect() argument 307 if (addr_len < sizeof(*lsa)) in l2tp_ip_connect() 321 rc = __ip4_datagram_connect(sk, uaddr, addr_len); in l2tp_ip_connect() 513 size_t len, int noblock, int flags, int *addr_len) in l2tp_ip_recvmsg() argument 546 *addr_len = sizeof(*sin); in l2tp_ip_recvmsg()
|
/net/ipv4/ |
D | datagram.c | 20 int __ip4_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in __ip4_datagram_connect() argument 31 if (addr_len < sizeof(*usin)) in __ip4_datagram_connect() 85 int ip4_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in ip4_datagram_connect() argument 90 res = __ip4_datagram_connect(sk, uaddr, addr_len); in ip4_datagram_connect()
|
D | af_inet.c | 434 int inet_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in inet_bind() argument 441 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet_bind() 443 if (addr_len < sizeof(struct sockaddr_in)) in inet_bind() 453 return __inet_bind(sk, uaddr, addr_len, false, true); in inet_bind() 457 int __inet_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len, in __inet_bind() argument 557 int addr_len, int flags) in inet_dgram_connect() argument 562 if (addr_len < sizeof(uaddr->sa_family)) in inet_dgram_connect() 568 err = sk->sk_prot->pre_connect(sk, uaddr, addr_len); in inet_dgram_connect() 575 return sk->sk_prot->connect(sk, uaddr, addr_len); in inet_dgram_connect() 608 int addr_len, int flags, int is_sendmsg) in __inet_stream_connect() argument [all …]
|
D | arp.c | 200 memcpy(haddr, dev->broadcast, dev->addr_len); in arp_mc_map() 271 memcpy(neigh->ha, dev->dev_addr, dev->addr_len); in arp_constructor() 275 memcpy(neigh->ha, dev->broadcast, dev->addr_len); in arp_constructor() 595 arp->ar_hln = dev->addr_len; in arp_create() 601 memcpy(arp_ptr, src_hw, dev->addr_len); in arp_create() 602 arp_ptr += dev->addr_len; in arp_create() 613 memcpy(arp_ptr, target_hw, dev->addr_len); in arp_create() 615 memset(arp_ptr, 0, dev->addr_len); in arp_create() 616 arp_ptr += dev->addr_len; in arp_create() 661 !memcmp(tha, sha, dev->addr_len); in arp_is_garp() [all …]
|
/net/netfilter/ |
D | nft_fwd_netdev.c | 148 unsigned int addr_len; in nft_fwd_neigh_init() local 162 addr_len = sizeof(struct in_addr); in nft_fwd_neigh_init() 165 addr_len = sizeof(struct in6_addr); in nft_fwd_neigh_init() 175 return nft_validate_register_load(priv->sreg_addr, addr_len); in nft_fwd_neigh_init()
|
/net/rds/ |
D | bind.c | 163 int rds_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in rds_bind() argument 176 if (addr_len < offsetofend(struct sockaddr, sa_family)) in rds_bind() 181 if (addr_len < sizeof(struct sockaddr_in) || in rds_bind() 194 if (addr_len < sizeof(struct sockaddr_in6)) in rds_bind()
|
D | tcp_listen.c | 294 int addr_len; in rds_tcp_listen_init() local 320 addr_len = sizeof(*sin6); in rds_tcp_listen_init() 326 addr_len = sizeof(*sin); in rds_tcp_listen_init() 329 ret = sock->ops->bind(sock, (struct sockaddr *)&ss, addr_len); in rds_tcp_listen_init()
|
/net/ax25/ |
D | af_ax25.c | 1043 static int ax25_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in ax25_bind() argument 1053 if (addr_len != sizeof(struct sockaddr_ax25) && in ax25_bind() 1054 addr_len != sizeof(struct full_sockaddr_ax25)) in ax25_bind() 1058 if ((addr_len < sizeof(struct sockaddr_ax25) + sizeof(ax25_address) * 6) || in ax25_bind() 1059 (addr_len > sizeof(struct full_sockaddr_ax25))) in ax25_bind() 1092 if (addr_len > sizeof(struct sockaddr_ax25) && addr->fsa_ax25.sax25_ndigis == 1) { in ax25_bind() 1122 struct sockaddr *uaddr, int addr_len, int flags) in ax25_connect() argument 1134 if (addr_len == sizeof(struct sockaddr_ax25)) in ax25_connect() 1139 else if (addr_len != sizeof(struct full_sockaddr_ax25)) in ax25_connect() 1143 if ((addr_len < sizeof(struct sockaddr_ax25) + sizeof(ax25_address) * 6) || in ax25_connect() [all …]
|
D | ax25_ip.c | 60 memcpy(buff, daddr, dev->addr_len); /* Address specified */ in ax25_hard_header() 68 memcpy(buff, saddr, dev->addr_len); in ax25_hard_header() 70 memcpy(buff, dev->dev_addr, dev->addr_len); in ax25_hard_header()
|
/net/ipv6/ |
D | datagram.c | 134 int addr_len) in __ip6_datagram_connect() argument 149 err = __ip4_datagram_connect(sk, uaddr, addr_len); in __ip6_datagram_connect() 153 if (addr_len < SIN6_LEN_RFC2133) in __ip6_datagram_connect() 214 if (addr_len >= sizeof(struct sockaddr_in6) && in __ip6_datagram_connect() 266 int ip6_datagram_connect(struct sock *sk, struct sockaddr *uaddr, int addr_len) in ip6_datagram_connect() argument 271 res = __ip6_datagram_connect(sk, uaddr, addr_len); in ip6_datagram_connect() 278 int addr_len) in ip6_datagram_connect_v6_only() argument 283 return ip6_datagram_connect(sk, uaddr, addr_len); in ip6_datagram_connect_v6_only() 432 int ipv6_recv_error(struct sock *sk, struct msghdr *msg, int len, int *addr_len) in ipv6_recv_error() argument 483 *addr_len = sizeof(*sin); in ipv6_recv_error() [all …]
|
D | af_inet6.c | 274 static int __inet6_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len, in __inet6_bind() argument 351 if (addr_len >= sizeof(struct sockaddr_in6) && in __inet6_bind() 436 int inet6_bind(struct socket *sock, struct sockaddr *uaddr, int addr_len) in inet6_bind() argument 443 return sk->sk_prot->bind(sk, uaddr, addr_len); in inet6_bind() 445 if (addr_len < SIN6_LEN_RFC2133) in inet6_bind() 455 return __inet6_bind(sk, uaddr, addr_len, false, true); in inet6_bind() 588 int addr_len = 0; in inet6_recvmsg() local 596 flags & ~MSG_DONTWAIT, &addr_len); in inet6_recvmsg() 598 msg->msg_namelen = addr_len; in inet6_recvmsg()
|
D | raw.c | 242 static int rawv6_bind(struct sock *sk, struct sockaddr *uaddr, int addr_len) in rawv6_bind() argument 251 if (addr_len < SIN6_LEN_RFC2133) in rawv6_bind() 275 if (addr_len >= sizeof(struct sockaddr_in6) && in rawv6_bind() 463 int noblock, int flags, int *addr_len) in rawv6_recvmsg() argument 475 return ipv6_recv_error(sk, msg, len, addr_len); in rawv6_recvmsg() 478 return ipv6_recv_rxpmtu(sk, msg, len, addr_len); in rawv6_recvmsg() 512 *addr_len = sizeof(*sin6); in rawv6_recvmsg() 781 int addr_len = msg->msg_namelen; in rawv6_sendmsg() local 816 if (addr_len < SIN6_LEN_RFC2133) in rawv6_sendmsg() 851 if (addr_len >= sizeof(struct sockaddr_in6) && in rawv6_sendmsg()
|
/net/ieee802154/ |
D | socket.c | 101 int addr_len) in ieee802154_sock_bind() argument 106 return sk->sk_prot->bind(sk, uaddr, addr_len); in ieee802154_sock_bind() 108 return sock_no_bind(sock, uaddr, addr_len); in ieee802154_sock_bind() 112 int addr_len, int flags) in ieee802154_sock_connect() argument 116 if (addr_len < sizeof(uaddr->sa_family)) in ieee802154_sock_connect() 122 return sk->sk_prot->connect(sk, uaddr, addr_len); in ieee802154_sock_connect() 231 int addr_len) in raw_connect() argument 312 int noblock, int flags, int *addr_len) in raw_recvmsg() argument 703 int noblock, int flags, int *addr_len) in dgram_recvmsg() argument 737 *addr_len = sizeof(*saddr); in dgram_recvmsg()
|
/net/wimax/ |
D | stack.c | 434 unsigned char *addr, size_t addr_len) in wimax_addr_scnprint() argument 438 for (total = cnt = 0; cnt < addr_len; cnt++) in wimax_addr_scnprint() 441 cnt == addr_len - 1 ? '\0' : ':'); in wimax_addr_scnprint() 490 net_dev->dev_addr, net_dev->addr_len); in wimax_dev_add()
|