Home
last modified time | relevance | path

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

/net/ipv6/
Desp6.c157 int alen; in esp6_output() local
171 alen = crypto_aead_authsize(aead); in esp6_output()
188 err = skb_cow_data(skb, tfclen + plen + alen, &trailer); in esp6_output()
228 pskb_put(skb, trailer, clen - skb->len + alen); in esp6_output()
240 clen + alen); in esp6_output()
276 int alen = crypto_aead_authsize(aead); in esp_input_done2() local
288 if (skb_copy_bits(skb, skb->len - alen - 2, nexthdr, 2)) in esp_input_done2()
293 if (padlen + 2 + alen >= elen) { in esp_input_done2()
295 "padlen=%d, elen=%d\n", padlen + 2, elen - alen); in esp_input_done2()
301 pskb_trim(skb, skb->len - alen - padlen - 2); in esp_input_done2()
/net/ipv4/
Desp4.c131 int alen; in esp_output() local
144 alen = crypto_aead_authsize(aead); in esp_output()
161 err = skb_cow_data(skb, tfclen + plen + alen, &trailer); in esp_output()
201 pskb_put(skb, trailer, clen - skb->len + alen); in esp_output()
248 clen + alen); in esp_output()
285 int alen = crypto_aead_authsize(aead); in esp_input_done2() local
297 if (skb_copy_bits(skb, skb->len-alen-2, nexthdr, 2)) in esp_input_done2()
302 if (padlen + 2 + alen >= elen) in esp_input_done2()
347 pskb_trim(skb, skb->len - alen - padlen - 2); in esp_input_done2()
/net/packet/
Dinternal.h9 unsigned short alen; member
Ddiag.c58 dml->pdmc_alen = ml->alen; in pdiag_put_mclist()
Daf_packet.c2916 if (i->alen != dev->addr_len) in packet_dev_mc()
2930 if (i->alen != dev->addr_len) in packet_dev_mc()
2978 ml->alen == mreq->mr_alen && in packet_mc_add()
2979 memcmp(ml->addr, mreq->mr_address, ml->alen) == 0) { in packet_mc_add()
2989 i->alen = mreq->mr_alen; in packet_mc_add()
2990 memcpy(i->addr, mreq->mr_address, i->alen); in packet_mc_add()
3014 ml->alen == mreq->mr_alen && in packet_mc_drop()
3015 memcmp(ml->addr, mreq->mr_address, ml->alen) == 0) { in packet_mc_drop()
/net/bluetooth/
Dl2cap_sock.c52 static int l2cap_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) in l2cap_sock_bind() argument
65 len = min_t(unsigned int, sizeof(la), alen); in l2cap_sock_bind()
117 int alen, int flags) in l2cap_sock_connect() argument
126 if (!addr || alen < sizeof(addr->sa_family) || in l2cap_sock_connect()
131 len = min_t(unsigned int, sizeof(la), alen); in l2cap_sock_connect()
Dsco.c451 static int sco_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) in sco_sock_bind() argument
463 len = min_t(unsigned int, sizeof(sa), alen); in sco_sock_bind()
488 static int sco_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) in sco_sock_connect() argument
500 len = min_t(unsigned int, sizeof(sa), alen); in sco_sock_connect()
/net/nfc/
Dllcp_sock.c72 static int llcp_sock_bind(struct socket *sock, struct sockaddr *addr, int alen) in llcp_sock_bind() argument
87 len = min_t(unsigned int, sizeof(llcp_addr), alen); in llcp_sock_bind()
146 int alen) in llcp_raw_sock_bind() argument
161 len = min_t(unsigned int, sizeof(llcp_addr), alen); in llcp_raw_sock_bind()
/net/bluetooth/rfcomm/
Dsock.c374 static int rfcomm_sock_connect(struct socket *sock, struct sockaddr *addr, int alen, int flags) in rfcomm_sock_connect() argument
383 if (alen < sizeof(struct sockaddr_rc) || in rfcomm_sock_connect()
/net/unix/
Daf_unix.c1074 int alen, int flags) in unix_dgram_connect() argument
1084 err = unix_mkname(sunaddr, alen, &hash); in unix_dgram_connect()
1087 alen = err; in unix_dgram_connect()
1094 other = unix_find_other(net, sunaddr, alen, sock->type, hash, &err); in unix_dgram_connect()
/net/iucv/
Daf_iucv.c839 int alen, int flags) in iucv_sock_connect() argument
846 if (addr->sa_family != AF_IUCV || alen < sizeof(struct sockaddr_iucv)) in iucv_sock_connect()
/net/netlink/
Daf_netlink.c1332 int alen, int flags) in netlink_connect() argument
1339 if (alen < sizeof(addr->sa_family)) in netlink_connect()