public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Berat <berat@autistici.org>
To: b.a.t.m.a.n@lists.open-mesh.org
Subject: Re: [B.A.T.M.A.N.] encapsulated ethernet frame format
Date: Thu, 23 Jul 2015 17:47:23 +0200	[thread overview]
Message-ID: <55B10C8B.2030902@autistici.org> (raw)
In-Reply-To: <7098754.rficnZ0CR1@prime>


[-- Attachment #1.1: Type: text/plain, Size: 1402 bytes --]

Thanks a lot for the answer. (Sorry, i didn't realized that i was
replying to you instead of mailing list.) There is an ultimate point
that i would like to understand. If you can help me it would be great.

So, to see if i've got it right, i made this little simulation of the
traffic:



C1 	    C3	 	 C4
 \ 	     |		/
  N1 - N2 - N3 - N4 - N5
 / 			\
C2 			C5




Client C1 communicates with client C5, and i'm intercepting packets that
are passing through node N3 and i see a unicast packet at the moment;

the first ethernet II section has:
source mac -> mac of N2
dest. mac -> mac of N3
----------------------------
batman section has:
dest. mac -> mac of N5
//here i see source mac only for batadv_unicast_4addr packets,
//which are ARP requests. for all other packet types, including
//dns request which is a unicast packet, there is only destination
//(or originator if a broadcast packet)
----------------------------
the second ethernet II section has:
source mac -> mac of C1
dest. mac -> mac of C5


So if i got it right, i would like to deduce, if a computer that i see
by the packet that i intercept is local(connected to the antenna that
i'm intercepting) or packet is just switched/forwarded by this antenna.
But without that source mac information in batman section, it doesn't
seem possible to me. Can i deduce it without that information?


[-- Attachment #1.2: 0x9763E522.asc --]
[-- Type: application/pgp-keys, Size: 13764 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2015-07-23 15:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-22 14:59 [B.A.T.M.A.N.] encapsulated ethernet frame format Berat
2015-07-22 15:58 ` Simon Wunderlich
2015-07-23 15:47   ` Berat [this message]
2015-07-25 16:15     ` Simon Wunderlich

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=55B10C8B.2030902@autistici.org \
    --to=berat@autistici.org \
    --cc=b.a.t.m.a.n@lists.open-mesh.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox