From: Sven Eckelmann <sven.eckelmann@gmx.de>
To: The list for a Better Approach To Mobile Ad-hoc Networking
<b.a.t.m.a.n@open-mesh.net>
Subject: Re: [B.A.T.M.A.N.] Compile vis under FreeBSD and OSX
Date: Wed, 14 Jan 2009 02:36:54 +0100 [thread overview]
Message-ID: <200901140236.58441.sven.eckelmann@gmx.de> (raw)
In-Reply-To: <200901140145.34127.sven.eckelmann@gmx.de>
[-- Attachment #1: Type: text/plain, Size: 1337 bytes --]
On Wednesday 14 January 2009 01:45:26 Sven Eckelmann wrote:
> On Tuesday 13 January 2009 22:29:25 Antoine van Gelder wrote:
> > On 13 Jan 2009, at 20:46 , Sven Eckelmann wrote:
> > > PS: Interested in porting batmand again to *bsd plattforms?
> >
> > Possibly - it would be nice to have the option to mesh with a beastie :)
> >
> > Do you have a rough idea of what broke since it last worked ?
>
> Don't know when it worked the last time but it doesnt compile at the
> moment.
>
> There are also some parts marked as "not implemented" in bsd/route.c
> You must check if all functions in bsd/*.c are in sync with linux/*.c
The biggest problem seems to be posix/tunnel.c - it uses struct iphdr from
netinet/ip.h. FreeBSD will give you struct ip which has completely different
names. So you have to find a good way to get both versions for linux and for
bsd without creating a big mess.
You have also to include netinet/in_systm.h before including netinet/ip.h
Maybe the best way would be to add a function to get the protocol of the
tunneled packet (from buffer) and a function to get the destination. After
copying the implementation for linux you have to implement it for freebsd.
I hope that the rest compiles and links fine and the time to test it begins
afterwards :D
Best regards,
Sven
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2009-01-14 1:36 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-13 10:52 [B.A.T.M.A.N.] [PATCH] Compile vis under FreeBSD and OSX Antoine van Gelder
2009-01-13 18:46 ` [B.A.T.M.A.N.] " Sven Eckelmann
2009-01-13 21:29 ` Antoine van Gelder
2009-01-14 0:45 ` Sven Eckelmann
2009-01-14 0:59 ` [B.A.T.M.A.N.] [PATCH] Sync definitions in bsd/* with definitions in os.h Sven Eckelmann
2009-01-14 1:36 ` Sven Eckelmann [this message]
2009-02-06 18:00 ` [B.A.T.M.A.N.] [PATCH] Introduce get_tunneled_(protocol|udpdest) for better portability Sven Eckelmann
2009-02-06 18:00 ` [B.A.T.M.A.N.] [PATCH] Add bsd-stubs for nat functionality Sven Eckelmann
2009-01-14 10:56 ` [B.A.T.M.A.N.] Compile vis under FreeBSD and OSX Sven Eckelmann
2009-01-14 14:55 ` Antoine van Gelder
2009-01-14 10:58 ` [B.A.T.M.A.N.] [PATCH] Suppress warning about unused parameter in bsd/*.c Sven Eckelmann
2009-01-18 20:17 ` [B.A.T.M.A.N.] Compile batmand under FreeBSD and OSX (Was: Compile vis) Antoine van Gelder
2009-01-13 18:46 ` [B.A.T.M.A.N.] [PATCH] Fix compilation on freebsd Sven Eckelmann
2009-01-13 19:00 ` Outback Dingo
2009-01-13 20:45 ` [B.A.T.M.A.N.] [PATCH] Compile vis under FreeBSD and OSX 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=200901140236.58441.sven.eckelmann@gmx.de \
--to=sven.eckelmann@gmx.de \
--cc=b.a.t.m.a.n@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.