Home
last modified time | relevance | path

Searched refs:alen (Results 1 – 23 of 23) sorted by relevance

/net/ipv4/
Desp4.c536 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 …]
Desp4_offload.c251 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()
Dfib_frontend.c684 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()
Dfib_semantics.c1686 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()
Droute.c3010 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/
Desp6.c572 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 …]
Desp6_offload.c289 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/
Dnft_nat.c174 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()
Dnft_tproxy.c196 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/
Dllcp_sock.c59 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/
Dsocket.h77 int tipc_sk_bind(struct socket *sock, struct sockaddr *skaddr, int alen);
Dsocket.c676 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/
Daf_mpls.c724 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/
Dinternal.h12 unsigned short alen; member
Daf_packet.c3586 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()
Ddiag.c60 dml->pdmc_alen = ml->alen; in pdiag_put_mclist()
/net/bluetooth/
Dl2cap_sock.c82 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()
Dsco.c558 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/
Dsock.c381 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/
Daf_unix.c1213 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/
Daf_netlink.c1081 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/
Daf_smc.c1255 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/
Daf_iucv.c717 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()