public inbox for b.a.t.m.a.n@lists.open-mesh.org
 help / color / mirror / Atom feed
From: Antonio Quartulli <antonio@meshcoding.com>
To: The list for a Better Approach To Mobile Ad-hoc Networking
	<b.a.t.m.a.n@lists.open-mesh.org>,
	Simon Wunderlich <sw@simonwunderlich.de>
Subject: Re: [B.A.T.M.A.N.] How to send message/execute script on clients from server?
Date: Thu, 06 Feb 2014 13:42:07 +0100	[thread overview]
Message-ID: <52F3831F.3080203@meshcoding.com> (raw)
In-Reply-To: <CAOyZXpT8mRYrWfMfkKOr+7ks3H=3PzhRAPeyJ1oLvSoYx1uz_A@mail.gmail.com>

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

On 06/02/14 13:06, Le Tran Dat wrote:
> Hi Simon,
> 
> Thanks for your response. I've read about Alfred, tomorrow I will try
> installing Alfred.
> 
> I am browsing the source code of batman adv and if I am not wrong I
> can create and send a user-defined message.
> I think I can broadcast something like a "struct sk_buff *skb;" to all
> clients. However I don't think this one is a good way since it may
> impact to the current design of batman adv. How do you think?
> 
> One more question, why browsing source code, I can not find the
> definition of struct sk_buff; where could I find it?
> 
> P/S: I forgot to give the detail of my issue is that I do not know the IP
> addresses of all clients but I want to be able to send the
> configuration to them.
> Is it possible for Alfred to send those configuration without knowing
> cients' IP address by using mac-address only?

Instead of touching the batman-adv code or using Alfred you could just
open a socket on the bat0 interface and send raw Ethernet frames having
the broadcast address as destination.

This is something you can do with any Ethernet compatible interface (so
also with your normal eth0) and therefore also with batman-adv.

Regards,

-- 
Antonio Quartulli


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

  parent reply	other threads:[~2014-02-06 12:42 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-06  9:34 [B.A.T.M.A.N.] How to send message/execute script on clients from server? Le Tran Dat
2014-02-06  9:55 ` Simon Wunderlich
2014-02-06 12:06   ` Le Tran Dat
2014-02-06 12:40     ` Simon Wunderlich
2014-02-06 12:42     ` Antonio Quartulli [this message]
2014-02-06 12:54       ` Le Tran Dat
2014-02-06 12:59         ` Antonio Quartulli
2014-02-10  1:27           ` Le Tran Dat

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=52F3831F.3080203@meshcoding.com \
    --to=antonio@meshcoding.com \
    --cc=b.a.t.m.a.n@lists.open-mesh.org \
    --cc=sw@simonwunderlich.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