Lines Matching refs:l3index

731 		int l3index;  in tcp_v4_send_reset()  local
736 l3index = tcp_v4_sdif(skb) ? inet_iif(skb) : 0; in tcp_v4_send_reset()
738 key = tcp_md5_do_lookup(sk, l3index, addr, AF_INET); in tcp_v4_send_reset()
743 int l3index; in tcp_v4_send_reset() local
763 l3index = sdif ? dif : 0; in tcp_v4_send_reset()
765 key = tcp_md5_do_lookup(sk1, l3index, addr, AF_INET); in tcp_v4_send_reset()
967 int l3index; in tcp_v4_reqsk_send_ack() local
981 l3index = tcp_v4_sdif(skb) ? inet_iif(skb) : 0; in tcp_v4_reqsk_send_ack()
988 tcp_md5_do_lookup(sk, l3index, addr, AF_INET), in tcp_v4_reqsk_send_ack()
1065 if (old->l3index && new->l3index == 0) in better_md5_match()
1067 if (old->l3index == 0 && new->l3index) in better_md5_match()
1074 struct tcp_md5sig_key *__tcp_md5_do_lookup(const struct sock *sk, int l3index, in __tcp_md5_do_lookup() argument
1095 if (key->flags & TCP_MD5SIG_FLAG_IFINDEX && key->l3index != l3index) in __tcp_md5_do_lookup()
1120 int l3index, u8 flags) in tcp_md5_do_lookup_exact() argument
1142 if (key->l3index != l3index) in tcp_md5_do_lookup_exact()
1155 int l3index; in tcp_v4_md5_lookup() local
1157 l3index = l3mdev_master_ifindex_by_index(sock_net(sk), in tcp_v4_md5_lookup()
1160 return tcp_md5_do_lookup(sk, l3index, addr, AF_INET); in tcp_v4_md5_lookup()
1166 int family, u8 prefixlen, int l3index, u8 flags, in tcp_md5_do_add() argument
1174 key = tcp_md5_do_lookup_exact(sk, addr, family, prefixlen, l3index, flags); in tcp_md5_do_add()
1218 key->l3index = l3index; in tcp_md5_do_add()
1229 u8 prefixlen, int l3index, u8 flags) in tcp_md5_do_del() argument
1233 key = tcp_md5_do_lookup_exact(sk, addr, family, prefixlen, l3index, flags); in tcp_md5_do_del()
1266 int l3index = 0; in tcp_v4_parse_md5_keys() local
1294 l3index = dev->ifindex; in tcp_v4_parse_md5_keys()
1301 if (!dev || !l3index) in tcp_v4_parse_md5_keys()
1308 return tcp_md5_do_del(sk, addr, AF_INET, prefixlen, l3index, flags); in tcp_v4_parse_md5_keys()
1313 return tcp_md5_do_add(sk, addr, AF_INET, prefixlen, l3index, flags, in tcp_v4_parse_md5_keys()
1506 int l3index; in tcp_v4_syn_recv_sock() local
1560 l3index = l3mdev_master_ifindex_by_index(sock_net(sk), ireq->ir_iif); in tcp_v4_syn_recv_sock()
1563 key = tcp_md5_do_lookup(sk, l3index, addr, AF_INET); in tcp_v4_syn_recv_sock()
1571 tcp_md5_do_add(newsk, addr, AF_INET, 32, l3index, key->flags, in tcp_v4_syn_recv_sock()