|
@@ -63,15 +63,6 @@ static bool udp_invert_tuple(struct nf_conntrack_tuple *tuple,
|
|
|
return true;
|
|
return true;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-/* Print out the per-protocol part of the tuple. */
|
|
|
|
|
-static void udp_print_tuple(struct seq_file *s,
|
|
|
|
|
- const struct nf_conntrack_tuple *tuple)
|
|
|
|
|
-{
|
|
|
|
|
- seq_printf(s, "sport=%hu dport=%hu ",
|
|
|
|
|
- ntohs(tuple->src.u.udp.port),
|
|
|
|
|
- ntohs(tuple->dst.u.udp.port));
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
static unsigned int *udp_get_timeouts(struct net *net)
|
|
static unsigned int *udp_get_timeouts(struct net *net)
|
|
|
{
|
|
{
|
|
|
return udp_pernet(net)->timeouts;
|
|
return udp_pernet(net)->timeouts;
|
|
@@ -316,7 +307,6 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udp4 __read_mostly =
|
|
|
.allow_clash = true,
|
|
.allow_clash = true,
|
|
|
.pkt_to_tuple = udp_pkt_to_tuple,
|
|
.pkt_to_tuple = udp_pkt_to_tuple,
|
|
|
.invert_tuple = udp_invert_tuple,
|
|
.invert_tuple = udp_invert_tuple,
|
|
|
- .print_tuple = udp_print_tuple,
|
|
|
|
|
.packet = udp_packet,
|
|
.packet = udp_packet,
|
|
|
.get_timeouts = udp_get_timeouts,
|
|
.get_timeouts = udp_get_timeouts,
|
|
|
.new = udp_new,
|
|
.new = udp_new,
|
|
@@ -349,7 +339,6 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udplite4 __read_mostly =
|
|
|
.allow_clash = true,
|
|
.allow_clash = true,
|
|
|
.pkt_to_tuple = udp_pkt_to_tuple,
|
|
.pkt_to_tuple = udp_pkt_to_tuple,
|
|
|
.invert_tuple = udp_invert_tuple,
|
|
.invert_tuple = udp_invert_tuple,
|
|
|
- .print_tuple = udp_print_tuple,
|
|
|
|
|
.packet = udp_packet,
|
|
.packet = udp_packet,
|
|
|
.get_timeouts = udp_get_timeouts,
|
|
.get_timeouts = udp_get_timeouts,
|
|
|
.new = udp_new,
|
|
.new = udp_new,
|
|
@@ -382,7 +371,6 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udp6 __read_mostly =
|
|
|
.allow_clash = true,
|
|
.allow_clash = true,
|
|
|
.pkt_to_tuple = udp_pkt_to_tuple,
|
|
.pkt_to_tuple = udp_pkt_to_tuple,
|
|
|
.invert_tuple = udp_invert_tuple,
|
|
.invert_tuple = udp_invert_tuple,
|
|
|
- .print_tuple = udp_print_tuple,
|
|
|
|
|
.packet = udp_packet,
|
|
.packet = udp_packet,
|
|
|
.get_timeouts = udp_get_timeouts,
|
|
.get_timeouts = udp_get_timeouts,
|
|
|
.new = udp_new,
|
|
.new = udp_new,
|
|
@@ -415,7 +403,6 @@ struct nf_conntrack_l4proto nf_conntrack_l4proto_udplite6 __read_mostly =
|
|
|
.allow_clash = true,
|
|
.allow_clash = true,
|
|
|
.pkt_to_tuple = udp_pkt_to_tuple,
|
|
.pkt_to_tuple = udp_pkt_to_tuple,
|
|
|
.invert_tuple = udp_invert_tuple,
|
|
.invert_tuple = udp_invert_tuple,
|
|
|
- .print_tuple = udp_print_tuple,
|
|
|
|
|
.packet = udp_packet,
|
|
.packet = udp_packet,
|
|
|
.get_timeouts = udp_get_timeouts,
|
|
.get_timeouts = udp_get_timeouts,
|
|
|
.new = udp_new,
|
|
.new = udp_new,
|