b.a.t.m.a.n.lists.open-mesh.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: gregkh@suse.de
Cc: devel@driverdev.osuosl.org, b.a.t.m.a.n@lists.open-mesh.net
Subject: [B.A.T.M.A.N.] [PATCH 06/10] staging:batman-adv:if discarding a packet, we need to read it under any condition.
Date: Wed,  9 Dec 2009 21:09:29 +0100	[thread overview]
Message-ID: <1260389373-1071-7-git-send-email-andrew@lunn.ch> (raw)
In-Reply-To: <1260389373-1071-6-git-send-email-andrew@lunn.ch>

From: simon <simon@45894c77-fb22-0410-b583-ff6e7d5dbf6c>

Signed-off-by: Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
git-svn-id: http://downloads.open-mesh.net/svn/batman/trunk/batman-adv-kernelland@1489 45894c77-fb22-0410-b583-ff6e7d5dbf6c
---
 routing.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/routing.c b/routing.c
index e7eb766..f4be6be 100644
--- a/routing.c
+++ b/routing.c
@@ -968,8 +968,7 @@ static int discard_one_packet(struct batman_if *batman_if,
 {
 	int result = -EAGAIN;
 
-	if ((batman_if->if_active == IF_TO_BE_ACTIVATED) 
-		&& (batman_if->raw_sock)) {
+	if (batman_if->raw_sock) {
 			result = receive_raw_packet(batman_if->raw_sock,
 						    packet_buff,
 						    PACKBUFF_SIZE);
-- 
1.6.5.4


  reply	other threads:[~2009-12-09 20:09 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-09 20:09 [B.A.T.M.A.N.] [PATCH 00/10] staging:batman-adv: Andrew Lunn
2009-12-09 20:09 ` [B.A.T.M.A.N.] [PATCH 01/10] staging:batman-adv:replace internal logging mechanism with standard kernel logging Andrew Lunn
2009-12-09 20:09   ` [B.A.T.M.A.N.] [PATCH 02/10] staging:batman-adv: batctl adapt batctl to the new logging mechanisms Andrew Lunn
2009-12-09 20:09     ` [B.A.T.M.A.N.] [PATCH 03/10] staging:batman-adv:Andrews refactored routing.c file patch: "I broke a lot of the big functions up into many smaller ones. This helps with readability and there is now a lot less code squashed against the right margin." Andrew Lunn
2009-12-09 20:09       ` [B.A.T.M.A.N.] [PATCH 04/10] staging:batman-adv:stop permanent warnings if a device is added but deactivated Andrew Lunn
2009-12-09 20:09         ` [B.A.T.M.A.N.] [PATCH 05/10] staging:batman-adv:split originator handling parts off routing.c Andrew Lunn
2009-12-09 20:09           ` Andrew Lunn [this message]
2009-12-09 20:09             ` [B.A.T.M.A.N.] [PATCH 07/10] staging:batman-adv:Updating orig_str for debug Andrew Lunn
2009-12-09 20:09               ` [B.A.T.M.A.N.] [PATCH 08/10] staging:batman-adv:Fix the naming of the debug option in Kconfig Andrew Lunn
2009-12-09 20:09                 ` [B.A.T.M.A.N.] [PATCH 09/10] staging:batman-adv:correctly name the configuration option for debugging Andrew Lunn
2009-12-09 20:09                   ` [B.A.T.M.A.N.] [PATCH 10/10] staging:batman-adv:Add Kconfig dependancies on PROC_FS and PACKET Andrew Lunn
2009-12-09 20:23                 ` [B.A.T.M.A.N.] [PATCH 08/10] staging:batman-adv:Fix the naming of the debug option in Kconfig Greg KH

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=1260389373-1071-7-git-send-email-andrew@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=b.a.t.m.a.n@lists.open-mesh.net \
    --cc=devel@driverdev.osuosl.org \
    --cc=gregkh@suse.de \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).