13 #define KMSG_COMPONENT "IPVS"
14 #define pr_fmt(fmt) KMSG_COMPONENT ": " fmt
18 #include <linux/module.h>
19 #include <linux/kernel.h>
20 #include <linux/netfilter.h>
21 #include <linux/netfilter_ipv4.h>
41 #define PORT_ISAKMP 500
44 ah_esp_conn_fill_param_proto(
struct net *
net,
int af,
60 const struct ip_vs_iphdr *iph,
unsigned int proto_off,
65 struct net *
net = skb_net(skb);
67 ah_esp_conn_fill_param_proto(net, af, iph, inverse, &
p);
76 inverse ?
"ICMP+" :
"",
78 IP_VS_DBG_ADDR(af, &iph->
saddr),
79 IP_VS_DBG_ADDR(af, &iph->
daddr));
87 ah_esp_conn_out_get(
int af,
const struct sk_buff *skb,
89 unsigned int proto_off,
94 struct net *net = skb_net(skb);
96 ah_esp_conn_fill_param_proto(net, af, iph, inverse, &
p);
101 inverse ?
"ICMP+" :
"",
103 IP_VS_DBG_ADDR(af, &iph->
saddr),
104 IP_VS_DBG_ADDR(af, &iph->
daddr));
122 #ifdef CONFIG_IP_VS_PROTO_AH
130 .conn_schedule = ah_esp_conn_schedule,
131 .conn_in_get = ah_esp_conn_in_get,
132 .conn_out_get = ah_esp_conn_out_get,
133 .snat_handler =
NULL,
134 .dnat_handler =
NULL,
136 .state_transition =
NULL,
137 .register_app =
NULL,
138 .unregister_app =
NULL,
139 .app_conn_bind =
NULL,
141 .timeout_change =
NULL,
145 #ifdef CONFIG_IP_VS_PROTO_ESP
153 .conn_schedule = ah_esp_conn_schedule,
154 .conn_in_get = ah_esp_conn_in_get,
155 .conn_out_get = ah_esp_conn_out_get,
156 .snat_handler =
NULL,
157 .dnat_handler =
NULL,
159 .state_transition =
NULL,
160 .register_app =
NULL,
161 .unregister_app =
NULL,
162 .app_conn_bind =
NULL,
164 .timeout_change =
NULL,