• Home
  • Raw
  • Download

Lines Matching refs:sockaddr

416 	struct sockaddr *addr = (struct sockaddr *)(sp + 1);  in verify_address_len()
502 struct sockaddr *s_addr, *d_addr; in present_and_same_family()
507 s_addr = (struct sockaddr *)(src + 1); in present_and_same_family()
508 d_addr = (struct sockaddr *)(dst + 1); in present_and_same_family()
631 int pfkey_sockaddr_extract(const struct sockaddr *sa, xfrm_address_t *xaddr) in pfkey_sockaddr_extract()
652 return pfkey_sockaddr_extract((struct sockaddr *)(addr + 1), in pfkey_sadb_addr2xfrm_addr()
677 family = ((struct sockaddr *)(addr + 1))->sa_family; in pfkey_xfrm_state_lookup()
735 struct sockaddr *sa, in pfkey_sockaddr_fill()
930 (struct sockaddr *) (addr + 1), in __pfkey_xfrm_state2msg()
947 (struct sockaddr *) (addr + 1), in __pfkey_xfrm_state2msg()
966 (struct sockaddr *) (addr + 1), in __pfkey_xfrm_state2msg()
1347 family = ((struct sockaddr *)(saddr + 1))->sa_family; in pfkey_getspi()
1907 family = pfkey_sockaddr_extract((struct sockaddr *)sa, in parse_ipsecrequest()
1913 if (pfkey_sockaddr_extract((struct sockaddr *)(sa + socklen), in parse_ipsecrequest()
2021 (struct sockaddr *) (addr + 1), in pfkey_xfrm_policy2msg()
2037 (struct sockaddr *) (addr + 1), in pfkey_xfrm_policy2msg()
2116 (struct sockaddr *)sa, in pfkey_xfrm_policy2msg()
2119 (struct sockaddr *) (sa + socklen), in pfkey_xfrm_policy2msg()
2409 static int parse_sockaddr_pair(struct sockaddr *sa, int ext_len, in parse_sockaddr_pair()
2423 if (pfkey_sockaddr_extract((struct sockaddr *) (((u8 *)sa) + socklen), in parse_sockaddr_pair()
2443 err = parse_sockaddr_pair((struct sockaddr *)(rq1 + 1), in ipsecrequests_to_migrate()
2458 err = parse_sockaddr_pair((struct sockaddr *)(rq2 + 1), in ipsecrequests_to_migrate()
2511 ret = parse_sockaddr_pair((struct sockaddr *)(kma + 1), in pfkey_migrate()
3086 (struct sockaddr *) (addr + 1), in pfkey_send_acquire()
3102 (struct sockaddr *) (addr + 1), in pfkey_send_acquire()
3297 (struct sockaddr *) (addr + 1), in pfkey_send_new_mapping()
3320 (struct sockaddr *) (addr + 1), in pfkey_send_new_mapping()
3350 (struct sockaddr *)(addr + 1), in set_sadb_address()
3356 (struct sockaddr *)(addr + 1), in set_sadb_address()
3385 if (!pfkey_sockaddr_fill(&k->local, 0, (struct sockaddr *)sa, family) || in set_sadb_kmaddress()
3386 !pfkey_sockaddr_fill(&k->remote, 0, (struct sockaddr *)(sa+socklen), family)) in set_sadb_kmaddress()
3414 if (!pfkey_sockaddr_fill(src, 0, (struct sockaddr *)sa, family) || in set_ipsecrequest()
3415 !pfkey_sockaddr_fill(dst, 0, (struct sockaddr *)(sa + socklen), family)) in set_ipsecrequest()