netfilter: conntrack: remove pf argument from l4 packet functions
authorFlorian Westphal <fw@strlen.de>
Wed, 11 Oct 2017 08:47:42 +0000 (10:47 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 24 Oct 2017 16:01:49 +0000 (18:01 +0200)
not needed/used anymore.

Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_conntrack_l4proto.h
net/ipv4/netfilter/nf_conntrack_proto_icmp.c
net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c
net/netfilter/nf_conntrack_core.c
net/netfilter/nf_conntrack_proto_dccp.c
net/netfilter/nf_conntrack_proto_generic.c
net/netfilter/nf_conntrack_proto_gre.c
net/netfilter/nf_conntrack_proto_sctp.c
net/netfilter/nf_conntrack_proto_tcp.c
net/netfilter/nf_conntrack_proto_udp.c

index 5d51255b5bfb5210d56e880c867292814bdd70fd..e065188741444aa46e56c487d3f5e6504de839cc 100644 (file)
@@ -42,7 +42,6 @@ struct nf_conntrack_l4proto {
                      const struct sk_buff *skb,
                      unsigned int dataoff,
                      enum ip_conntrack_info ctinfo,
-                     u_int8_t pf,
                      unsigned int *timeouts);
 
        /* Called when a new connection for this protocol found;
index 7281a7b77a0e4939ad766956612e5f4e3cd1cc80..8969420cecc3db061ec9e3599fa0dd81f96349d0 100644 (file)
@@ -81,7 +81,6 @@ static int icmp_packet(struct nf_conn *ct,
                       const struct sk_buff *skb,
                       unsigned int dataoff,
                       enum ip_conntrack_info ctinfo,
-                      u_int8_t pf,
                       unsigned int *timeout)
 {
        /* Do not immediately delete the connection after the first
index 0f227ca4a5a2e7b57eb8de305fc23c7821263515..dca921df28e1f8cb3b555ad2274b435e3a8716c7 100644 (file)
@@ -94,7 +94,6 @@ static int icmpv6_packet(struct nf_conn *ct,
                       const struct sk_buff *skb,
                       unsigned int dataoff,
                       enum ip_conntrack_info ctinfo,
-                      u_int8_t pf,
                       unsigned int *timeout)
 {
        /* Do not immediately delete the connection after the first
index 01130392b7c0f536dc5afb74ff24d5b49cbd9f8a..28e6751508534d646c0badc8c50abc15819102e4 100644 (file)
@@ -1419,7 +1419,7 @@ repeat:
        /* Decide what timeout policy we want to apply to this flow. */
        timeouts = nf_ct_timeout_lookup(net, ct, l4proto);
 
-       ret = l4proto->packet(ct, skb, dataoff, ctinfo, pf, timeouts);
+       ret = l4proto->packet(ct, skb, dataoff, ctinfo, timeouts);
        if (ret <= 0) {
                /* Invalid: inverse of the return code tells
                 * the netfilter core what to do */
index 49e0abcdc6f4425180182c7d57c68925ce273b40..2a446f4a554c174ac2e298c7eea6ce637c664ef2 100644 (file)
@@ -467,7 +467,6 @@ static unsigned int *dccp_get_timeouts(struct net *net)
 
 static int dccp_packet(struct nf_conn *ct, const struct sk_buff *skb,
                       unsigned int dataoff, enum ip_conntrack_info ctinfo,
-                      u_int8_t pf,
                       unsigned int *timeouts)
 {
        enum ip_conntrack_dir dir = CTINFO2DIR(ctinfo);
index 9cd40700842e6c6aeb254c6b2583f610d51db393..1f86ddf6649a3c550e152ca39a28e73cf6b55023 100644 (file)
@@ -60,7 +60,6 @@ static int generic_packet(struct nf_conn *ct,
                          const struct sk_buff *skb,
                          unsigned int dataoff,
                          enum ip_conntrack_info ctinfo,
-                         u_int8_t pf,
                          unsigned int *timeout)
 {
        nf_ct_refresh_acct(ct, ctinfo, skb, *timeout);
index 09a90484c27d585bfca7d4761f68a58afb15a2b0..a2503005d80b01c2470dafa11adfe810f5488fbd 100644 (file)
@@ -244,7 +244,6 @@ static int gre_packet(struct nf_conn *ct,
                      const struct sk_buff *skb,
                      unsigned int dataoff,
                      enum ip_conntrack_info ctinfo,
-                     u_int8_t pf,
                      unsigned int *timeouts)
 {
        /* If we've seen traffic both ways, this is a GRE connection.
index aa630c561361e62dcdb87f19d71839fe29795570..80faf04ddf155254768dfed7f15c4bab64514ad7 100644 (file)
@@ -306,7 +306,6 @@ static int sctp_packet(struct nf_conn *ct,
                       const struct sk_buff *skb,
                       unsigned int dataoff,
                       enum ip_conntrack_info ctinfo,
-                      u_int8_t pf,
                       unsigned int *timeouts)
 {
        enum sctp_conntrack new_state, old_state;
index dced574f6006f6d9cc3fa1cfb30c9d2a2d595213..8f283294d70f63db497f00eb1ddbfea6cd037a53 100644 (file)
@@ -493,8 +493,7 @@ static bool tcp_in_window(const struct nf_conn *ct,
                          unsigned int index,
                          const struct sk_buff *skb,
                          unsigned int dataoff,
-                         const struct tcphdr *tcph,
-                         u_int8_t pf)
+                         const struct tcphdr *tcph)
 {
        struct net *net = nf_ct_net(ct);
        struct nf_tcp_net *tn = tcp_pernet(net);
@@ -801,7 +800,6 @@ static int tcp_packet(struct nf_conn *ct,
                      const struct sk_buff *skb,
                      unsigned int dataoff,
                      enum ip_conntrack_info ctinfo,
-                     u_int8_t pf,
                      unsigned int *timeouts)
 {
        struct net *net = nf_ct_net(ct);
@@ -1013,7 +1011,7 @@ static int tcp_packet(struct nf_conn *ct,
        }
 
        if (!tcp_in_window(ct, &ct->proto.tcp, dir, index,
-                          skb, dataoff, th, pf)) {
+                          skb, dataoff, th)) {
                spin_unlock_bh(&ct->lock);
                return -NF_ACCEPT;
        }
index fc20cf43025116cf7f5a6626e1c4d16181f29171..3a5f727103afdbf01703b5ae50d373feed824bf3 100644 (file)
@@ -73,7 +73,6 @@ static int udp_packet(struct nf_conn *ct,
                      const struct sk_buff *skb,
                      unsigned int dataoff,
                      enum ip_conntrack_info ctinfo,
-                     u_int8_t pf,
                      unsigned int *timeouts)
 {
        /* If we've seen traffic both ways, this is some kind of UDP