All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.net>
Subject: Re: [B.A.T.M.A.N.] batman-adv and TCP problem
Date: Tue, 6 Oct 2009 11:49:08 +0200	[thread overview]
Message-ID: <20091006094908.GA6646@lunn.ch> (raw)
In-Reply-To: <d9bba8670910060226i3068db6awc4f126c9b6c51b1a@mail.gmail.com>

On Tue, Oct 06, 2009 at 11:26:01AM +0200, a wrote:
> It is correct. I'm using openwrt and, at the moment, without -M option.
> 1500byte packets work, with fragmentation.
> However, my TCP packets are small (about 60bytes). I have verified TCPDump
> file and packets arrive. It seems that the Linux IP stack does not forward
> them to the application.

Going back to your first email:

- B1 - bat0: 192.168.10.1/24 - default gateway: 192.168.10.2
- GW: bat0: 192.168.10.2/24,   eth1: 192.168.20.2/24
- EX: eth0: 192.168.20.3/24 - default gateway: 192.168.20.3

You default GW on EX does not make sense. You cannot use yourself as a
default gateway. It needs to be a remote device. In this case, EXs
default gateway should point to 192.168.20.2.

However, you say ping works, so that does not explain your problem.

Check your firewall rules. 

iptable -L

maybe one of the rules is causing the kernel to drop the packets.

      Andrew

  parent reply	other threads:[~2009-10-06  9:49 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-05  9:21 [B.A.T.M.A.N.] batman-adv and TCP problem Andrea Ghittino
2009-10-05 10:49 ` Marek Lindner
2009-10-05 12:12   ` a
2009-10-05 14:01     ` Marek Lindner
2009-10-05 20:54       ` a
2009-10-05 21:24         ` Sven Eckelmann
2009-10-06  9:26           ` a
2009-10-06  9:43             ` Sven Eckelmann
2009-10-06 10:33               ` a
2009-10-06 10:54                 ` Andrew Lunn
2009-10-06 11:11                   ` a
2009-10-06 11:19                     ` Andrew Lunn
2009-10-06 11:55                       ` a
2009-10-06 12:55                 ` Marek Lindner
2009-10-06 13:14                   ` a
2009-10-06 16:31                     ` a
2009-10-06 10:49               ` a
2009-10-06  9:49             ` Andrew Lunn [this message]
2009-10-06 10:27               ` a

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=20091006094908.GA6646@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=b.a.t.m.a.n@lists.open-mesh.net \
    /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.