All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: "David S. Miller" <davem@davemloft.net>
Cc: Netfilter Development Mailinglist <netfilter-devel@lists.netfilter.org>
Subject: [NETFILTER 8/7]: Drop conntrack reference in ip_call_ra_chain()/ip_mr_input()
Date: Tue, 21 Jun 2005 17:45:09 +0200	[thread overview]
Message-ID: <42B83605.5020902@trash.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 84 bytes --]

Drop reference before handing packets to raw_rcv to avoid module
unload problems.



[-- Attachment #2: 08.diff --]
[-- Type: text/x-patch, Size: 1157 bytes --]

[NETFILTER]: Drop conntrack reference in ip_call_ra_chain()/ip_mr_input()

Drop reference before handing the packets to raw_rcv()

Signed-off-by: Patrick McHardy <kaber@trash.net>

---
commit 043f4df110b0be9f82a5ddaeede9be7f7ae4c894
tree 52e36aa9adea79ec2201a881abc327aeb870f837
parent d7edb3501fc521edf0d856d30fd6bad8019ed369
author Patrick McHardy <kaber@trash.net> Tue, 21 Jun 2005 17:43:58
committer Patrick McHardy <kaber@trash.net> Tue, 21 Jun 2005 17:43:58

 net/ipv4/ip_input.c |    1 +
 net/ipv4/ipmr.c     |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/ipv4/ip_input.c b/net/ipv4/ip_input.c
--- a/net/ipv4/ip_input.c
+++ b/net/ipv4/ip_input.c
@@ -184,6 +184,7 @@ int ip_call_ra_chain(struct sk_buff *skb
 					raw_rcv(last, skb2);
 			}
 			last = sk;
+			nf_reset(skb);
 		}
 	}
 
diff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -1350,6 +1350,7 @@ int ip_mr_input(struct sk_buff *skb)
 			     */
 			    read_lock(&mrt_lock);
 			    if (mroute_socket) {
+				    nf_reset(skb);
 				    raw_rcv(mroute_socket, skb);
 				    read_unlock(&mrt_lock);
 				    return 0;

             reply	other threads:[~2005-06-21 15:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-21 15:45 Patrick McHardy [this message]
2005-06-21 21:06 ` [NETFILTER 8/7]: Drop conntrack reference in ip_call_ra_chain()/ip_mr_input() David S. Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42B83605.5020902@trash.net \
    --to=kaber@trash.net \
    --cc=davem@davemloft.net \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.