Lines Matching refs:socklen
2032 int socklen = 0; in pfkey_xfrm_policy2msg_size() local
2037 socklen += pfkey_sockaddr_len(t->encap_family); in pfkey_xfrm_policy2msg_size()
2046 (socklen * 2) + in pfkey_xfrm_policy2msg_size()
2075 int socklen = pfkey_sockaddr_len(xp->family); in pfkey_xfrm_policy2msg() local
2163 socklen = pfkey_sockaddr_len(t->encap_family); in pfkey_xfrm_policy2msg()
2164 req_size += socklen * 2; in pfkey_xfrm_policy2msg()
2166 size -= 2*socklen; in pfkey_xfrm_policy2msg()
2189 (struct sockaddr *) (sa + socklen), in pfkey_xfrm_policy2msg()
2476 int af, socklen; in parse_sockaddr_pair() local
2485 socklen = pfkey_sockaddr_len(af); in parse_sockaddr_pair()
2486 if (pfkey_sockaddr_extract((struct sockaddr *) (((u8 *)sa) + socklen), in parse_sockaddr_pair()
3499 int socklen = pfkey_sockaddr_len(family); in set_sadb_kmaddress() local
3512 !pfkey_sockaddr_fill(&k->remote, 0, (struct sockaddr *)(sa+socklen), family)) in set_sadb_kmaddress()
3525 int socklen = pfkey_sockaddr_len(family); in set_ipsecrequest() local
3540 !pfkey_sockaddr_fill(dst, 0, (struct sockaddr *)(sa + socklen), family)) in set_ipsecrequest()