Home
last modified time | relevance | path

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

/linux-6.12.1/net/ipv4/
Dtcp_ao.c140 static int __tcp_ao_key_cmp(const struct tcp_ao_key *key, int l3index, in __tcp_ao_key_cmp() argument
148 if (l3index >= 0 && (key->keyflags & TCP_AO_KEYF_IFINDEX)) { in __tcp_ao_key_cmp()
149 if (key->l3index != l3index) in __tcp_ao_key_cmp()
150 return (key->l3index > l3index) ? 1 : -1; in __tcp_ao_key_cmp()
176 static int tcp_ao_key_cmp(const struct tcp_ao_key *key, int l3index, in tcp_ao_key_cmp() argument
184 return __tcp_ao_key_cmp(key, l3index, in tcp_ao_key_cmp()
189 return __tcp_ao_key_cmp(key, l3index, addr, in tcp_ao_key_cmp()
193 static struct tcp_ao_key *__tcp_ao_do_lookup(const struct sock *sk, int l3index, in __tcp_ao_do_lookup() argument
211 if (!tcp_ao_key_cmp(key, l3index, addr, prefixlen, in __tcp_ao_do_lookup()
218 struct tcp_ao_key *tcp_ao_do_lookup(const struct sock *sk, int l3index, in tcp_ao_do_lookup() argument
[all …]
Dtcp_ipv4.c689 int l3index = sdif ? dif : 0; in tcp_v4_ao_sign_reset() local
698 if (tcp_ao_prepare_reset(sk, skb, aoh, l3index, ntohl(reply->seq), in tcp_v4_ao_sign_reset()
802 int l3index; in tcp_v4_send_reset() local
807 l3index = tcp_v4_sdif(skb) ? inet_iif(skb) : 0; in tcp_v4_send_reset()
809 key = tcp_md5_do_lookup(sk, l3index, addr, AF_INET); in tcp_v4_send_reset()
814 int l3index; in tcp_v4_send_reset() local
834 l3index = sdif ? dif : 0; in tcp_v4_send_reset()
836 key = tcp_md5_do_lookup(sk1, l3index, addr, AF_INET); in tcp_v4_send_reset()
1105 int l3index; local
1114 l3index = tcp_v4_sdif(skb) ? inet_iif(skb) : 0;
[all …]
Dtcp.c4731 int family, int l3index, const __u8 *hash_location) in tcp_inbound_md5_hash() argument
4744 key = tcp_md5_do_lookup(sk, l3index, saddr, family); in tcp_inbound_md5_hash()
4772 int family, int l3index, const __u8 *hash_location) in tcp_inbound_md5_hash() argument
4789 int l3index; in tcp_inbound_hash() local
4818 l3index = sdif ? dif : 0; in tcp_inbound_hash()
4827 if (tcp_ao_required(sk, saddr, family, l3index, true)) { in tcp_inbound_hash()
4831 if (unlikely(tcp_md5_do_lookup(sk, l3index, saddr, family))) { in tcp_inbound_hash()
4840 return tcp_inbound_ao_hash(sk, skb, family, req, l3index, aoh); in tcp_inbound_hash()
4843 l3index, md5_location); in tcp_inbound_hash()
/linux-6.12.1/net/ipv6/
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()
Dtcp_ipv6.c585 int l3index) in tcp_v6_md5_do_lookup() argument
587 return tcp_md5_do_lookup(sk, l3index, in tcp_v6_md5_do_lookup()
594 int l3index; in tcp_v6_md5_lookup() local
596 l3index = l3mdev_master_ifindex_by_index(sock_net(sk), in tcp_v6_md5_lookup()
599 l3index); in tcp_v6_md5_lookup()
608 int l3index = 0; in tcp_v6_parse_md5_keys() local
642 l3index = dev->ifindex; in tcp_v6_parse_md5_keys()
648 if (!dev || !l3index) in tcp_v6_parse_md5_keys()
656 l3index, flags); in tcp_v6_parse_md5_keys()
658 AF_INET6, prefixlen, l3index, flags); in tcp_v6_parse_md5_keys()
[all …]
/linux-6.12.1/include/net/
Dtcp_ao.h41 int l3index; member
202 const struct request_sock *req, int l3index,
205 struct tcp_ao_key *tcp_ao_do_lookup(const struct sock *sk, int l3index,
214 const struct tcp_ao_hdr *aoh, int l3index, u32 seq,
286 const struct request_sock *req, int l3index, in tcp_inbound_ao_hash() argument
293 int l3index, const union tcp_ao_addr *addr, in tcp_ao_do_lookup() argument
Dtcp.h1762 int l3index; /* set if key added with L3 scope */ member
1833 int family, u8 prefixlen, int l3index, u8 flags,
1836 int family, u8 prefixlen, int l3index,
1840 int family, u8 prefixlen, int l3index, u8 flags);
1846 struct tcp_md5sig_key *__tcp_md5_do_lookup(const struct sock *sk, int l3index,
1850 tcp_md5_do_lookup(const struct sock *sk, int l3index, in tcp_md5_do_lookup() argument
1855 return __tcp_md5_do_lookup(sk, l3index, addr, family, false); in tcp_md5_do_lookup()
1870 tcp_md5_do_lookup(const struct sock *sk, int l3index, in tcp_md5_do_lookup() argument
2788 int family, int l3index, bool stat_inc) in tcp_ao_required() argument
2802 ao_key = tcp_ao_do_lookup(sk, l3index, saddr, family, -1, -1); in tcp_ao_required()
/linux-6.12.1/include/trace/events/
Dtcp.h429 __field(int, l3index)
453 __entry->l3index = inet_sdif(skb) ? inet_iif(skb) : 0;
472 __entry->l3index,
526 __field(int, l3index)
554 __entry->l3index = inet_sdif(skb) ? inet_iif(skb) : 0;
577 __entry->l3index,