| /linux/net/ipv4/ |
| H A D | tcp_ao.c | 246 static int __tcp_ao_key_cmp(const struct tcp_ao_key *key, int l3index, in __tcp_ao_key_cmp() argument 254 if (l3index >= 0 && (key->keyflags & TCP_AO_KEYF_IFINDEX)) { in __tcp_ao_key_cmp() 255 if (key->l3index != l3index) in __tcp_ao_key_cmp() 256 return (key->l3index > l3index) ? 1 : -1; in __tcp_ao_key_cmp() 282 static int tcp_ao_key_cmp(const struct tcp_ao_key *key, int l3index, in tcp_ao_key_cmp() argument 290 return __tcp_ao_key_cmp(key, l3index, in tcp_ao_key_cmp() 295 return __tcp_ao_key_cmp(key, l3index, addr, in tcp_ao_key_cmp() 299 static struct tcp_ao_key *__tcp_ao_do_lookup(const struct sock *sk, int l3index, in __tcp_ao_do_lookup() argument 317 if (!tcp_ao_key_cmp(key, l3index, addr, prefixlen, in __tcp_ao_do_lookup() 324 struct tcp_ao_key *tcp_ao_do_lookup(const struct sock *sk, int l3index, in tcp_ao_do_lookup() argument [all …]
|
| H A D | tcp_ipv4.c | 668 int l3index = sdif ? dif : 0; in tcp_v4_ao_sign_reset() local 677 if (tcp_ao_prepare_reset(sk, skb, aoh, l3index, ntohl(reply->seq), in tcp_v4_ao_sign_reset() 780 int l3index; in tcp_v4_send_reset() local 785 l3index = tcp_v4_sdif(skb) ? inet_iif(skb) : 0; in tcp_v4_send_reset() 787 key = tcp_md5_do_lookup(sk, l3index, addr, AF_INET); in tcp_v4_send_reset() 792 int l3index; in tcp_v4_send_reset() local 811 l3index = sdif ? dif : 0; in tcp_v4_send_reset() 813 key = tcp_md5_do_lookup(sk1, l3index, addr, AF_INET); in tcp_v4_send_reset() 1095 int l3index; local 1104 l3index 1134 int l3index; global() local 1239 __tcp_md5_do_lookup(const struct sock * sk,int l3index,const union tcp_md5_addr * addr,int family,bool any_l3index) global() argument 1285 tcp_md5_do_lookup_exact(const struct sock * sk,const union tcp_md5_addr * addr,int family,u8 prefixlen,int l3index,u8 flags) global() argument 1320 int l3index; global() local 1345 __tcp_md5_do_add(struct sock * sk,const union tcp_md5_addr * addr,int family,u8 prefixlen,int l3index,u8 flags,const u8 * newkey,u8 newkeylen,gfp_t gfp) global() argument 1394 tcp_md5_do_add(struct sock * sk,const union tcp_md5_addr * addr,int family,u8 prefixlen,int l3index,u8 flags,const u8 * newkey,u8 newkeylen) global() argument 1423 tcp_md5_key_copy(struct sock * sk,const union tcp_md5_addr * addr,int family,u8 prefixlen,int l3index,struct tcp_md5sig_key * key) global() argument 1450 tcp_md5_do_del(struct sock * sk,const union tcp_md5_addr * addr,int family,u8 prefixlen,int l3index,u8 flags) global() argument 1486 int l3index = 0; global() local 1690 int l3index; global() local [all...] |
| H A D | tcp.c | 4926 int family, int l3index, const __u8 *hash_location) in tcp_inbound_md5_hash() 4937 key = tcp_md5_do_lookup(sk, l3index, saddr, family); in tcp_inbound_md5_hash() 4963 int family, int l3index, const __u8 *hash_location) in tcp_inbound_md5_hash() 5033 int l3index; in tcp_inbound_hash() 5062 l3index = sdif ? dif : 0; in tcp_inbound_hash() 5071 if (tcp_ao_required(sk, saddr, family, l3index, true)) { in tcp_inbound_hash() 5075 if (unlikely(tcp_md5_do_lookup(sk, l3index, saddr, family))) { in tcp_inbound_hash() 5084 return tcp_inbound_ao_hash(sk, skb, family, req, l3index, aoh); in tcp_inbound_hash() 5087 l3index, md5_location); 4924 tcp_inbound_md5_hash(const struct sock * sk,const struct sk_buff * skb,const void * saddr,const void * daddr,int family,int l3index,const __u8 * hash_location) tcp_inbound_md5_hash() argument 4961 tcp_inbound_md5_hash(const struct sock * sk,const struct sk_buff * skb,const void * saddr,const void * daddr,int family,int l3index,const __u8 * hash_location) tcp_inbound_md5_hash() argument 5031 int l3index; tcp_inbound_hash() local
|
| /linux/net/ipv6/ |
| H A D | tcp_ipv6.c | 614 int l3index) in tcp_v6_md5_do_lookup() argument 616 return tcp_md5_do_lookup(sk, l3index, in tcp_v6_md5_do_lookup() 623 int l3index; in tcp_v6_md5_lookup() local 625 l3index = l3mdev_master_ifindex_by_index(sock_net(sk), in tcp_v6_md5_lookup() 628 l3index); in tcp_v6_md5_lookup() 637 int l3index = 0; in tcp_v6_parse_md5_keys() local 671 l3index = dev->ifindex; in tcp_v6_parse_md5_keys() 677 if (!dev || !l3index) in tcp_v6_parse_md5_keys() 685 l3index, flags); in tcp_v6_parse_md5_keys() 687 AF_INET6, prefixlen, l3index, flags); in tcp_v6_parse_md5_keys() [all …]
|
| /linux/include/net/ |
| H A D | tcp_ao.h | 56 int l3index; member 219 const struct request_sock *req, int l3index, 222 struct tcp_ao_key *tcp_ao_do_lookup(const struct sock *sk, int l3index, 231 const struct tcp_ao_hdr *aoh, int l3index, u32 seq, 303 const struct request_sock *req, int l3index, in tcp_inbound_ao_hash() argument 310 int l3index, const union tcp_ao_addr *addr, in tcp_ao_do_lookup() argument
|
| H A D | tcp.h | 2009 int l3index; /* set if key added with L3 scope */ member 2039 int family, u8 prefixlen, int l3index, u8 flags, 2042 int family, u8 prefixlen, int l3index, 2046 int family, u8 prefixlen, int l3index, u8 flags); 2052 struct tcp_md5sig_key *__tcp_md5_do_lookup(const struct sock *sk, int l3index, 2056 tcp_md5_do_lookup(const struct sock *sk, int l3index, in tcp_md5_do_lookup() argument 2061 return __tcp_md5_do_lookup(sk, l3index, addr, family, false); in tcp_md5_do_lookup() 2077 tcp_md5_do_lookup(const struct sock *sk, int l3index, in tcp_md5_do_lookup() argument 3052 int family, int l3index, bool stat_inc) in tcp_ao_required() argument 3066 ao_key = tcp_ao_do_lookup(sk, l3index, saddr, family, -1, -1); in tcp_ao_required()
|