]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
tproxy: add lookup type checks for UDP in nf_tproxy_get_sock_v4()
authorBalazs Scheidler <bazsi@balabit.hu>
Thu, 21 Oct 2010 10:47:34 +0000 (12:47 +0200)
committerPatrick McHardy <kaber@trash.net>
Thu, 21 Oct 2010 10:47:34 +0000 (12:47 +0200)
commit6006db84a91838813cdad8a6622a4e39efe9ea47
tree842b0a7efaf2d826c82e04ae5552e9b94c6de858
parent106e4c26b1529e559d1aae777f11b4f8f7bafc26
tproxy: add lookup type checks for UDP in nf_tproxy_get_sock_v4()

Also, inline this function as the lookup_type is always a literal
and inlining removes branches performed at runtime.

Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
Signed-off-by: KOVACS Krisztian <hidden@balabit.hu>
Signed-off-by: Patrick McHardy <kaber@trash.net>
include/net/netfilter/nf_tproxy_core.h
net/netfilter/nf_tproxy_core.c