ext_hdrs 511 net/key/af_key.c static int parse_exthdrs(struct sk_buff *skb, const struct sadb_msg *hdr, void **ext_hdrs) ext_hdrs 538 net/key/af_key.c if (ext_hdrs[ext_type-1] != NULL) ext_hdrs 560 net/key/af_key.c ext_hdrs[ext_type-1] = (void *) p; ext_hdrs 656 net/key/af_key.c static struct xfrm_state *pfkey_xfrm_state_lookup(struct net *net, const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 664 net/key/af_key.c sa = ext_hdrs[SADB_EXT_SA - 1]; ext_hdrs 673 net/key/af_key.c addr = ext_hdrs[SADB_EXT_ADDRESS_DST - 1]; ext_hdrs 1065 net/key/af_key.c void * const *ext_hdrs) ext_hdrs 1076 net/key/af_key.c sa = ext_hdrs[SADB_EXT_SA - 1]; ext_hdrs 1078 net/key/af_key.c !present_and_same_family(ext_hdrs[SADB_EXT_ADDRESS_SRC-1], ext_hdrs 1079 net/key/af_key.c ext_hdrs[SADB_EXT_ADDRESS_DST-1])) ext_hdrs 1082 net/key/af_key.c !ext_hdrs[SADB_EXT_KEY_ENCRYPT-1]) ext_hdrs 1085 net/key/af_key.c !ext_hdrs[SADB_EXT_KEY_AUTH-1]) ext_hdrs 1087 net/key/af_key.c if (!!ext_hdrs[SADB_EXT_LIFETIME_HARD-1] != ext_hdrs 1088 net/key/af_key.c !!ext_hdrs[SADB_EXT_LIFETIME_SOFT-1]) ext_hdrs 1115 net/key/af_key.c key = ext_hdrs[SADB_EXT_KEY_AUTH - 1]; ext_hdrs 1120 net/key/af_key.c key = ext_hdrs[SADB_EXT_KEY_ENCRYPT-1]; ext_hdrs 1141 net/key/af_key.c lifetime = ext_hdrs[SADB_EXT_LIFETIME_HARD - 1]; ext_hdrs 1148 net/key/af_key.c lifetime = ext_hdrs[SADB_EXT_LIFETIME_SOFT - 1]; ext_hdrs 1156 net/key/af_key.c sec_ctx = ext_hdrs[SADB_X_EXT_SEC_CTX - 1]; ext_hdrs 1171 net/key/af_key.c key = ext_hdrs[SADB_EXT_KEY_AUTH - 1]; ext_hdrs 1217 net/key/af_key.c key = (struct sadb_key*) ext_hdrs[SADB_EXT_KEY_ENCRYPT-1]; ext_hdrs 1237 net/key/af_key.c x->props.family = pfkey_sadb_addr2xfrm_addr((struct sadb_address *) ext_hdrs[SADB_EXT_ADDRESS_SRC-1], ext_hdrs 1239 net/key/af_key.c pfkey_sadb_addr2xfrm_addr((struct sadb_address *) ext_hdrs[SADB_EXT_ADDRESS_DST-1], ext_hdrs 1242 net/key/af_key.c if (ext_hdrs[SADB_X_EXT_SA2-1]) { ext_hdrs 1243 net/key/af_key.c const struct sadb_x_sa2 *sa2 = ext_hdrs[SADB_X_EXT_SA2-1]; ext_hdrs 1253 net/key/af_key.c if (ext_hdrs[SADB_EXT_ADDRESS_PROXY-1]) { ext_hdrs 1254 net/key/af_key.c const struct sadb_address *addr = ext_hdrs[SADB_EXT_ADDRESS_PROXY-1]; ext_hdrs 1264 net/key/af_key.c if (ext_hdrs[SADB_X_EXT_NAT_T_TYPE-1]) { ext_hdrs 1275 net/key/af_key.c n_type = ext_hdrs[SADB_X_EXT_NAT_T_TYPE-1]; ext_hdrs 1278 net/key/af_key.c if (ext_hdrs[SADB_X_EXT_NAT_T_SPORT-1]) { ext_hdrs 1280 net/key/af_key.c ext_hdrs[SADB_X_EXT_NAT_T_SPORT-1]; ext_hdrs 1283 net/key/af_key.c if (ext_hdrs[SADB_X_EXT_NAT_T_DPORT-1]) { ext_hdrs 1285 net/key/af_key.c ext_hdrs[SADB_X_EXT_NAT_T_DPORT-1]; ext_hdrs 1304 net/key/af_key.c static int pfkey_reserved(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 1309 net/key/af_key.c static int pfkey_getspi(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 1326 net/key/af_key.c if (!present_and_same_family(ext_hdrs[SADB_EXT_ADDRESS_SRC-1], ext_hdrs 1327 net/key/af_key.c ext_hdrs[SADB_EXT_ADDRESS_DST-1])) ext_hdrs 1334 net/key/af_key.c if ((sa2 = ext_hdrs[SADB_X_EXT_SA2-1]) != NULL) { ext_hdrs 1344 net/key/af_key.c saddr = ext_hdrs[SADB_EXT_ADDRESS_SRC-1]; ext_hdrs 1345 net/key/af_key.c daddr = ext_hdrs[SADB_EXT_ADDRESS_DST-1]; ext_hdrs 1378 net/key/af_key.c range = ext_hdrs[SADB_EXT_SPIRANGE-1]; ext_hdrs 1414 net/key/af_key.c static int pfkey_acquire(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 1501 net/key/af_key.c static int pfkey_add(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 1508 net/key/af_key.c x = pfkey_msg2xfrm_state(net, hdr, ext_hdrs); ext_hdrs 1538 net/key/af_key.c static int pfkey_delete(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 1545 net/key/af_key.c if (!ext_hdrs[SADB_EXT_SA-1] || ext_hdrs 1546 net/key/af_key.c !present_and_same_family(ext_hdrs[SADB_EXT_ADDRESS_SRC-1], ext_hdrs 1547 net/key/af_key.c ext_hdrs[SADB_EXT_ADDRESS_DST-1])) ext_hdrs 1550 net/key/af_key.c x = pfkey_xfrm_state_lookup(net, hdr, ext_hdrs); ext_hdrs 1578 net/key/af_key.c static int pfkey_get(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 1586 net/key/af_key.c if (!ext_hdrs[SADB_EXT_SA-1] || ext_hdrs 1587 net/key/af_key.c !present_and_same_family(ext_hdrs[SADB_EXT_ADDRESS_SRC-1], ext_hdrs 1588 net/key/af_key.c ext_hdrs[SADB_EXT_ADDRESS_DST-1])) ext_hdrs 1591 net/key/af_key.c x = pfkey_xfrm_state_lookup(net, hdr, ext_hdrs); ext_hdrs 1690 net/key/af_key.c static int pfkey_register(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 1759 net/key/af_key.c static int pfkey_flush(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 1831 net/key/af_key.c static int pfkey_dump(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 1849 net/key/af_key.c if (ext_hdrs[SADB_X_EXT_FILTER - 1]) { ext_hdrs 1850 net/key/af_key.c struct sadb_x_filter *xfilter = ext_hdrs[SADB_X_EXT_FILTER - 1]; ext_hdrs 1877 net/key/af_key.c static int pfkey_promisc(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 2236 net/key/af_key.c static int pfkey_spdadd(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 2247 net/key/af_key.c if (!present_and_same_family(ext_hdrs[SADB_EXT_ADDRESS_SRC-1], ext_hdrs 2248 net/key/af_key.c ext_hdrs[SADB_EXT_ADDRESS_DST-1]) || ext_hdrs 2249 net/key/af_key.c !ext_hdrs[SADB_X_EXT_POLICY-1]) ext_hdrs 2252 net/key/af_key.c pol = ext_hdrs[SADB_X_EXT_POLICY-1]; ext_hdrs 2266 net/key/af_key.c sa = ext_hdrs[SADB_EXT_ADDRESS_SRC-1]; ext_hdrs 2275 net/key/af_key.c sa = ext_hdrs[SADB_EXT_ADDRESS_DST-1]; ext_hdrs 2288 net/key/af_key.c sec_ctx = ext_hdrs[SADB_X_EXT_SEC_CTX - 1]; ext_hdrs 2308 net/key/af_key.c if ((lifetime = ext_hdrs[SADB_EXT_LIFETIME_HARD-1]) != NULL) { ext_hdrs 2314 net/key/af_key.c if ((lifetime = ext_hdrs[SADB_EXT_LIFETIME_SOFT-1]) != NULL) { ext_hdrs 2351 net/key/af_key.c static int pfkey_spddelete(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 2363 net/key/af_key.c if (!present_and_same_family(ext_hdrs[SADB_EXT_ADDRESS_SRC-1], ext_hdrs 2364 net/key/af_key.c ext_hdrs[SADB_EXT_ADDRESS_DST-1]) || ext_hdrs 2365 net/key/af_key.c !ext_hdrs[SADB_X_EXT_POLICY-1]) ext_hdrs 2368 net/key/af_key.c pol = ext_hdrs[SADB_X_EXT_POLICY-1]; ext_hdrs 2374 net/key/af_key.c sa = ext_hdrs[SADB_EXT_ADDRESS_SRC-1]; ext_hdrs 2382 net/key/af_key.c sa = ext_hdrs[SADB_EXT_ADDRESS_DST-1]; ext_hdrs 2390 net/key/af_key.c sec_ctx = ext_hdrs[SADB_X_EXT_SEC_CTX - 1]; ext_hdrs 2538 net/key/af_key.c const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 2551 net/key/af_key.c if (!present_and_same_family(ext_hdrs[SADB_EXT_ADDRESS_SRC - 1], ext_hdrs 2552 net/key/af_key.c ext_hdrs[SADB_EXT_ADDRESS_DST - 1]) || ext_hdrs 2553 net/key/af_key.c !ext_hdrs[SADB_X_EXT_POLICY - 1]) { ext_hdrs 2558 net/key/af_key.c kma = ext_hdrs[SADB_X_EXT_KMADDRESS - 1]; ext_hdrs 2559 net/key/af_key.c pol = ext_hdrs[SADB_X_EXT_POLICY - 1]; ext_hdrs 2582 net/key/af_key.c sa = ext_hdrs[SADB_EXT_ADDRESS_SRC - 1]; ext_hdrs 2591 net/key/af_key.c sa = ext_hdrs[SADB_EXT_ADDRESS_DST - 1]; ext_hdrs 2630 net/key/af_key.c const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 2637 net/key/af_key.c static int pfkey_spdget(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 2646 net/key/af_key.c if ((pol = ext_hdrs[SADB_X_EXT_POLICY-1]) == NULL) ext_hdrs 2727 net/key/af_key.c static int pfkey_spddump(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 2769 net/key/af_key.c static int pfkey_spdflush(struct sock *sk, struct sk_buff *skb, const struct sadb_msg *hdr, void * const *ext_hdrs) ext_hdrs 2794 net/key/af_key.c const struct sadb_msg *hdr, void * const *ext_hdrs); ext_hdrs 2823 net/key/af_key.c void *ext_hdrs[SADB_EXT_MAX]; ext_hdrs 2829 net/key/af_key.c memset(ext_hdrs, 0, sizeof(ext_hdrs)); ext_hdrs 2830 net/key/af_key.c err = parse_exthdrs(skb, hdr, ext_hdrs); ext_hdrs 2834 net/key/af_key.c err = pfkey_funcs[hdr->sadb_msg_type](sk, skb, hdr, ext_hdrs);