OSDN Git Service

netfilter: move handlers to net/ip_vs.h
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 3 Feb 2021 13:51:12 +0000 (15:51 +0200)
committerJakub Kicinski <kuba@kernel.org>
Fri, 5 Feb 2021 02:37:57 +0000 (18:37 -0800)
commitedf597da02a01edb26bddf06890fb81eee3d82cf
tree8ea798be48b0b48babe507d9bedf66dd6da03714
parent04f00ab2275f60658b5e4996e28f52ab1bc51d75
netfilter: move handlers to net/ip_vs.h

Fix the following compilation warnings:
net/netfilter/ipvs/ip_vs_proto_tcp.c:147:1: warning: no previous prototype for 'tcp_snat_handler' [-Wmissing-prototypes]
  147 | tcp_snat_handler(struct sk_buff *skb, struct ip_vs_protocol *pp,
      | ^~~~~~~~~~~~~~~~
net/netfilter/ipvs/ip_vs_proto_udp.c:136:1: warning: no previous prototype for 'udp_snat_handler' [-Wmissing-prototypes]
  136 | udp_snat_handler(struct sk_buff *skb, struct ip_vs_protocol *pp,
      | ^~~~~~~~~~~~~~~~

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/ip_vs.h
net/netfilter/ipvs/ip_vs_core.c