/net/ipv4/ |
D | esp4.c | 536 int alen; in esp_output_tail() local 558 alen = crypto_aead_authsize(aead); in esp_output_tail() 581 assoclen + ivlen + esp->clen + alen); in esp_output_tail() 609 assoclen + ivlen + esp->clen + alen); in esp_output_tail() 657 int alen; in esp_output() local 671 alen = crypto_aead_authsize(aead); in esp_output() 685 esp.tailen = esp.tfclen + esp.plen + alen; in esp_output() 710 int alen, hlen, elen; in esp_remove_trailer() local 716 alen = crypto_aead_authsize(aead); in esp_remove_trailer() 725 if (skb_copy_bits(skb, skb->len - alen - 2, nexthdr, 2)) in esp_remove_trailer() [all …]
|
D | esp4_offload.c | 251 int alen; in esp_xmit() local 279 alen = crypto_aead_authsize(aead); in esp_xmit() 287 esp.tailen = esp.tfclen + esp.plen + alen; in esp_xmit()
|
D | fib_frontend.c | 684 int alen; in fib_gw_from_via() local 692 alen = nla_len(nla) - offsetof(struct rtvia, rtvia_addr); in fib_gw_from_via() 696 if (alen != sizeof(__be32)) { in fib_gw_from_via() 705 if (alen != sizeof(struct in6_addr)) { in fib_gw_from_via()
|
D | fib_semantics.c | 1686 int alen = sizeof(struct in6_addr); in fib_nexthop_info() local 1690 nla = nla_reserve(skb, RTA_VIA, alen + 2); in fib_nexthop_info() 1696 memcpy(via->rtvia_addr, &nhc->nhc_gw.ipv6, alen); in fib_nexthop_info()
|
D | route.c | 3010 int alen = sizeof(struct in6_addr); in rt_fill_info() local 3014 nla = nla_reserve(skb, RTA_VIA, alen + 2); in rt_fill_info() 3020 memcpy(via->rtvia_addr, &rt->rt_gw6, alen); in rt_fill_info()
|
/net/ipv6/ |
D | esp6.c | 572 int alen; in esp6_output_tail() local 594 alen = crypto_aead_authsize(aead); in esp6_output_tail() 617 assoclen + ivlen + esp->clen + alen); in esp6_output_tail() 645 assoclen + ivlen + esp->clen + alen); in esp6_output_tail() 694 int alen; in esp6_output() local 708 alen = crypto_aead_authsize(aead); in esp6_output() 722 esp.tailen = esp.tfclen + esp.plen + alen; in esp6_output() 747 int alen, hlen, elen; in esp_remove_trailer() local 753 alen = crypto_aead_authsize(aead); in esp_remove_trailer() 762 ret = skb_copy_bits(skb, skb->len - alen - 2, nexthdr, 2); in esp_remove_trailer() [all …]
|
D | esp6_offload.c | 289 int alen; in esp6_xmit() local 314 alen = crypto_aead_authsize(aead); in esp6_xmit() 322 esp.tailen = esp.tfclen + esp.plen + alen; in esp6_xmit()
|
/net/netfilter/ |
D | nft_nat.c | 174 unsigned int alen, plen; in nft_nat_init() local 203 alen = sizeof_field(struct nf_nat_range, min_addr.ip); in nft_nat_init() 206 alen = sizeof_field(struct nf_nat_range, min_addr.ip6); in nft_nat_init() 217 &priv->sreg_addr_min, alen); in nft_nat_init() 224 alen); in nft_nat_init()
|
D | nft_tproxy.c | 196 unsigned int alen = 0; in nft_tproxy_init() local 228 alen = sizeof_field(union nf_inet_addr, in); in nft_tproxy_init() 235 alen = sizeof_field(union nf_inet_addr, in6); in nft_tproxy_init() 258 &priv->sreg_addr, alen); in nft_tproxy_init()
|
/net/nfc/ |
D | llcp_sock.c | 59 static int llcp_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) in llcp_sock_bind() argument 68 if (!addr || alen < offsetofend(struct sockaddr, sa_family) || in llcp_sock_bind() 75 len = min_t(unsigned int, sizeof(llcp_addr), alen); in llcp_sock_bind() 145 int alen) in llcp_raw_sock_bind() argument 154 if (!addr || alen < offsetofend(struct sockaddr, sa_family) || in llcp_raw_sock_bind() 161 len = min_t(unsigned int, sizeof(llcp_addr), alen); in llcp_raw_sock_bind()
|
/net/tipc/ |
D | socket.h | 77 int tipc_sk_bind(struct socket *sock, struct sockaddr *skaddr, int alen);
|
D | socket.c | 676 static int __tipc_bind(struct socket *sock, struct sockaddr *skaddr, int alen) in __tipc_bind() argument 682 if (unlikely(!alen)) in __tipc_bind() 705 int tipc_sk_bind(struct socket *sock, struct sockaddr *skaddr, int alen) in tipc_sk_bind() argument 710 res = __tipc_bind(sock, skaddr, alen); in tipc_sk_bind() 715 static int tipc_bind(struct socket *sock, struct sockaddr *skaddr, int alen) in tipc_bind() argument 720 if (alen) { in tipc_bind() 721 if (!tipc_uaddr_valid(ua, alen)) in tipc_bind() 731 return tipc_sk_bind(sock, skaddr, alen); in tipc_bind()
|
/net/mpls/ |
D | af_mpls.c | 724 int alen; in nla_get_via() local 731 alen = nla_len(nla) - in nla_get_via() 733 if (alen > MAX_VIA_ALEN) { in nla_get_via() 746 if (alen != 4) in nla_get_via() 751 if (alen != 16) in nla_get_via() 759 memcpy(via_addr, via->rtvia_addr, alen); in nla_get_via() 760 *via_alen = alen; in nla_get_via() 1686 u8 table, const void *addr, int alen) in nla_put_via() argument 1695 nla = nla_reserve(skb, RTA_VIA, alen + 2); in nla_put_via() 1704 memcpy(via->rtvia_addr, addr, alen); in nla_put_via()
|
/net/packet/ |
D | internal.h | 12 unsigned short alen; member
|
D | af_packet.c | 3586 if (i->alen != dev->addr_len) in packet_dev_mc() 3598 if (i->alen != dev->addr_len) in packet_dev_mc() 3653 ml->alen == mreq->mr_alen && in packet_mc_add() 3654 memcmp(ml->addr, mreq->mr_address, ml->alen) == 0) { in packet_mc_add() 3664 i->alen = mreq->mr_alen; in packet_mc_add() 3665 memcpy(i->addr, mreq->mr_address, i->alen); in packet_mc_add() 3666 memset(i->addr + i->alen, 0, sizeof(i->addr) - i->alen); in packet_mc_add() 3690 ml->alen == mreq->mr_alen && in packet_mc_drop() 3691 memcmp(ml->addr, mreq->mr_address, ml->alen) == 0) { in packet_mc_drop()
|
D | diag.c | 60 dml->pdmc_alen = ml->alen; in pdiag_put_mclist()
|
/net/bluetooth/ |
D | l2cap_sock.c | 82 static int l2cap_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) in l2cap_sock_bind() argument 91 if (!addr || alen < offsetofend(struct sockaddr, sa_family) || in l2cap_sock_bind() 96 len = min_t(unsigned int, sizeof(la), alen); in l2cap_sock_bind() 196 int alen, int flags) in l2cap_sock_connect() argument 213 if (!addr || alen < offsetofend(struct sockaddr, sa_family) || in l2cap_sock_connect() 218 len = min_t(unsigned int, sizeof(la), alen); in l2cap_sock_connect()
|
D | sco.c | 558 static int sco_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) in sco_sock_connect() argument 567 if (alen < sizeof(struct sockaddr_sco) || in sco_sock_connect()
|
/net/bluetooth/rfcomm/ |
D | sock.c | 381 static int rfcomm_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) in rfcomm_sock_connect() argument 390 if (alen < sizeof(struct sockaddr_rc) || in rfcomm_sock_connect()
|
/net/unix/ |
D | af_unix.c | 1213 int alen, int flags) in unix_dgram_connect() argument 1223 if (alen < offsetofend(struct sockaddr, sa_family)) in unix_dgram_connect() 1227 err = unix_mkname(sunaddr, alen, &hash); in unix_dgram_connect() 1230 alen = err; in unix_dgram_connect() 1237 other = unix_find_other(net, sunaddr, alen, sock->type, hash, &err); in unix_dgram_connect()
|
/net/netlink/ |
D | af_netlink.c | 1081 int alen, int flags) in netlink_connect() argument 1088 if (alen < sizeof(addr->sa_family)) in netlink_connect() 1102 if (alen < sizeof(struct sockaddr_nl)) in netlink_connect()
|
/net/smc/ |
D | af_smc.c | 1255 int alen, int flags) in smc_connect() argument 1264 if (alen < sizeof(addr->sa_family)) in smc_connect() 1286 rc = kernel_connect(smc->clcsock, addr, alen, flags); in smc_connect()
|
/net/iucv/ |
D | af_iucv.c | 717 int alen, int flags) in iucv_sock_connect() argument 724 if (alen < sizeof(struct sockaddr_iucv) || addr->sa_family != AF_IUCV) in iucv_sock_connect()
|