Home
last modified time | relevance | path

Searched refs:l3index (Results 1 – 6 of 6) sorted by relevance

/linux/net/ipv4/
H A Dtcp_ao.c143 static int __tcp_ao_key_cmp(const struct tcp_ao_key *key, int l3index, in __tcp_ao_key_cmp()
151 if (l3index >= 0 && (key->keyflags & TCP_AO_KEYF_IFINDEX)) { in __tcp_ao_key_cmp()
152 if (key->l3index != l3index) in __tcp_ao_key_cmp()
153 return (key->l3index > l3index) ? 1 : -1; in __tcp_ao_key_cmp()
179 static int tcp_ao_key_cmp(const struct tcp_ao_key *key, int l3index, in tcp_ao_key_cmp()
187 return __tcp_ao_key_cmp(key, l3index, in tcp_ao_key_cmp()
192 return __tcp_ao_key_cmp(key, l3index, addr, in tcp_ao_key_cmp()
196 static struct tcp_ao_key *__tcp_ao_do_lookup(const struct sock *sk, int l3index, in __tcp_ao_do_lookup()
142 __tcp_ao_key_cmp(const struct tcp_ao_key * key,int l3index,const union tcp_ao_addr * addr,u8 prefixlen,int family,int sndid,int rcvid) __tcp_ao_key_cmp() argument
178 tcp_ao_key_cmp(const struct tcp_ao_key * key,int l3index,const union tcp_ao_addr * addr,u8 prefixlen,int family,int sndid,int rcvid) tcp_ao_key_cmp() argument
195 __tcp_ao_do_lookup(const struct sock * sk,int l3index,const union tcp_ao_addr * addr,int family,u8 prefix,int sndid,int rcvid) __tcp_ao_do_lookup() argument
220 tcp_ao_do_lookup(const struct sock * sk,int l3index,const union tcp_ao_addr * addr,int family,int sndid,int rcvid) tcp_ao_do_lookup() argument
708 int l3index; tcp_v4_ao_lookup_rsk() local
717 int l3index = l3mdev_master_ifindex_by_index(sock_net(sk), tcp_v4_ao_lookup() local
725 tcp_ao_prepare_reset(const struct sock * sk,struct sk_buff * skb,const struct tcp_ao_hdr * aoh,int l3index,u32 seq,struct tcp_ao_key ** key,char ** traffic_key,bool * allocated_traffic_key,u8 * keyid,u32 * sne) tcp_ao_prepare_reset() argument
848 tcp_ao_inbound_lookup(unsigned short int family,const struct sock * sk,const struct sk_buff * skb,int sndid,int rcvid,int l3index) tcp_ao_inbound_lookup() argument
872 int l3index; tcp_ao_syncookie() local
904 tcp_ao_verify_hash(const struct sock * sk,const struct sk_buff * skb,unsigned short int family,struct tcp_ao_info * info,const struct tcp_ao_hdr * aoh,struct tcp_ao_key * key,u8 * traffic_key,u8 * phash,u32 sne,int l3index) tcp_ao_verify_hash() argument
945 tcp_inbound_ao_hash(struct sock * sk,const struct sk_buff * skb,unsigned short int family,const struct request_sock * req,int l3index,const struct tcp_ao_hdr * aoh) tcp_inbound_ao_hash() argument
1101 int family, l3index; tcp_ao_connect_init() local
1197 int l3index, ret = -ENOMEM; tcp_ao_copy_all_matching() local
1605 int ret, l3index = 0; tcp_ao_add_cmd() local
1818 int err, addr_len, l3index = 0; tcp_ao_del_cmd() local
2116 int err, l3index, user_len; tcp_ao_copy_mkts_to_user() local
[all...]
H A Dtcp_ipv4.c668 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()
1092 int l3index; local
1101 l3index = tcp_v4_sdif(skb) ? inet_iif(skb) : 0;
[all …]
H A Dtcp.c4921 int family, int l3index, const __u8 *hash_location) in tcp_inbound_md5_hash() argument
4932 key = tcp_md5_do_lookup(sk, l3index, saddr, family); in tcp_inbound_md5_hash()
4958 int family, int l3index, const __u8 *hash_location) in tcp_inbound_md5_hash() argument
5028 int l3index; in tcp_inbound_hash() local
5057 l3index = sdif ? dif : 0; in tcp_inbound_hash()
5066 if (tcp_ao_required(sk, saddr, family, l3index, true)) { in tcp_inbound_hash()
5070 if (unlikely(tcp_md5_do_lookup(sk, l3index, saddr, family))) { in tcp_inbound_hash()
5079 return tcp_inbound_ao_hash(sk, skb, family, req, l3index, aoh); in tcp_inbound_hash()
5082 l3index, md5_location); in tcp_inbound_hash()
/linux/net/ipv6/
H A Dtcp_ao.c94 int l3index = l3mdev_master_ifindex_by_index(sock_net(sk), in tcp_v6_ao_lookup() local
98 return tcp_ao_do_lookup(sk, l3index, (union tcp_ao_addr *)addr, in tcp_v6_ao_lookup()
108 int l3index; in tcp_v6_ao_lookup_rsk() local
110 l3index = l3mdev_master_ifindex_by_index(sock_net(sk), ireq->ir_iif); in tcp_v6_ao_lookup_rsk()
111 return tcp_ao_do_lookup(sk, l3index, (union tcp_ao_addr *)addr, in tcp_v6_ao_lookup_rsk()
H A Dtcp_ipv6.c606 int l3index) in tcp_v6_md5_do_lookup() argument
608 return tcp_md5_do_lookup(sk, l3index, in tcp_v6_md5_do_lookup()
615 int l3index; in tcp_v6_md5_lookup() local
617 l3index = l3mdev_master_ifindex_by_index(sock_net(sk), in tcp_v6_md5_lookup()
620 l3index); in tcp_v6_md5_lookup()
629 int l3index = 0; in tcp_v6_parse_md5_keys() local
663 l3index = dev->ifindex; in tcp_v6_parse_md5_keys()
669 if (!dev || !l3index) in tcp_v6_parse_md5_keys()
677 l3index, flags); in tcp_v6_parse_md5_keys()
679 AF_INET6, prefixlen, l3index, flags); in tcp_v6_parse_md5_keys()
[all …]
/linux/include/net/
H A Dtcp.h1993 int l3index; /* set if key added with L3 scope */ member
2057 int family, u8 prefixlen, int l3index, u8 flags,
2060 int family, u8 prefixlen, int l3index,
2064 int family, u8 prefixlen, int l3index, u8 flags);
2070 struct tcp_md5sig_key *__tcp_md5_do_lookup(const struct sock *sk, int l3index,
2074 tcp_md5_do_lookup(const struct sock *sk, int l3index, in tcp_md5_do_lookup() argument
2079 return __tcp_md5_do_lookup(sk, l3index, addr, family, false); in tcp_md5_do_lookup()
2095 tcp_md5_do_lookup(const struct sock *sk, int l3index, in tcp_md5_do_lookup() argument
3053 int family, int l3index, bool stat_inc) in tcp_ao_required() argument
3067 ao_key = tcp_ao_do_lookup(sk, l3index, saddr, family, -1, -1); in tcp_ao_required()