• Home
  • Raw
  • Download

Lines Matching refs:sockaddr

65 static int parse_sockaddr_pair(struct sockaddr *sa, int ext_len,
379 const struct sockaddr *addr = (const struct sockaddr *)(sp + 1); in verify_address_len()
488 const struct sockaddr *s_addr, *d_addr; in present_and_same_family()
493 s_addr = (const struct sockaddr *)(src + 1); in present_and_same_family()
494 d_addr = (const struct sockaddr *)(dst + 1); in present_and_same_family()
627 int pfkey_sockaddr_extract(const struct sockaddr *sa, xfrm_address_t *xaddr) in pfkey_sockaddr_extract()
648 return pfkey_sockaddr_extract((struct sockaddr *)(addr + 1), in pfkey_sadb_addr2xfrm_addr()
673 family = ((const struct sockaddr *)(addr + 1))->sa_family; in pfkey_xfrm_state_lookup()
731 struct sockaddr *sa, in pfkey_sockaddr_fill()
925 (struct sockaddr *) (addr + 1), in __pfkey_xfrm_state2msg()
940 (struct sockaddr *) (addr + 1), in __pfkey_xfrm_state2msg()
958 (struct sockaddr *) (addr + 1), in __pfkey_xfrm_state2msg()
1343 family = ((struct sockaddr *)(saddr + 1))->sa_family; in pfkey_getspi()
1980 (struct sockaddr *)(rq + 1), in parse_ipsecrequest()
2095 (struct sockaddr *) (addr + 1), in pfkey_xfrm_policy2msg()
2110 (struct sockaddr *) (addr + 1), in pfkey_xfrm_policy2msg()
2187 (struct sockaddr *)sa, in pfkey_xfrm_policy2msg()
2190 (struct sockaddr *) (sa + socklen), in pfkey_xfrm_policy2msg()
2473 static int parse_sockaddr_pair(struct sockaddr *sa, int ext_len, in parse_sockaddr_pair()
2487 if (pfkey_sockaddr_extract((struct sockaddr *) (((u8 *)sa) + socklen), in parse_sockaddr_pair()
2509 err = parse_sockaddr_pair((struct sockaddr *)(rq1 + 1), in ipsecrequests_to_migrate()
2525 err = parse_sockaddr_pair((struct sockaddr *)(rq2 + 1), in ipsecrequests_to_migrate()
2579 ret = parse_sockaddr_pair((struct sockaddr *)(kma + 1), in pfkey_migrate()
3210 (struct sockaddr *) (addr + 1), in pfkey_send_acquire()
3225 (struct sockaddr *) (addr + 1), in pfkey_send_acquire()
3425 (struct sockaddr *) (addr + 1), in pfkey_send_new_mapping()
3447 (struct sockaddr *) (addr + 1), in pfkey_send_new_mapping()
3478 (struct sockaddr *)(addr + 1), in set_sadb_address()
3484 (struct sockaddr *)(addr + 1), in set_sadb_address()
3512 if (!pfkey_sockaddr_fill(&k->local, 0, (struct sockaddr *)sa, family) || in set_sadb_kmaddress()
3513 !pfkey_sockaddr_fill(&k->remote, 0, (struct sockaddr *)(sa+socklen), family)) in set_sadb_kmaddress()
3540 if (!pfkey_sockaddr_fill(src, 0, (struct sockaddr *)sa, family) || in set_ipsecrequest()
3541 !pfkey_sockaddr_fill(dst, 0, (struct sockaddr *)(sa + socklen), family)) in set_ipsecrequest()