Re: [Babel-users] babeld and systemd [was: babeld wishlist]

2016-02-12 Thread Baptiste Jonglez
On Wed, Dec 09, 2015 at 10:24:41AM +0100, Toke Høiland-Jørgensen wrote: > There's a package for Arch in the AUR: > https://aur.archlinux.org/packages/babeld/ > > That also includes a systemd unit file: > https://aur.archlinux.org/cgit/aur.git/tree/babeld.service?h=babeld On Wed, Dec 09, 2015 at 0

Re: [Babel-users] babeld and systemd [was: babeld wishlist]

2016-02-12 Thread Juliusz Chroboczek
> Is it possible to tell babeld *not* to write a PID file at all? babeld -I '' Hmm, looks like it's not documented. ___ Babel-users mailing list Babel-users@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/babel-users

Re: [Babel-users] babeld and systemd [was: babeld wishlist]

2016-02-12 Thread Baptiste Jonglez
On Fri, Feb 12, 2016 at 01:21:49PM +0100, Juliusz Chroboczek wrote: > > Is it possible to tell babeld *not* to write a PID file at all? > > babeld -I '' Thanks, that did the trick! I have updated the service file to restart babeld automatically in case of failure, if somebody is interested:

Re: [Babel-users] babeld and systemd [was: babeld wishlist]

2016-02-12 Thread Toke Høiland-Jørgensen
Baptiste Jonglez writes: > Thanks, that did the trick! I have updated the service file to restart > babeld automatically in case of failure, if somebody is interested: Awesome! Any chance of also including a 'babeld@.service' file to easily run babeld on a single interface without editing the

Re: [Babel-users] Adding and removing interfaces dynamically in babeld

2016-02-12 Thread Gabriel Kerneis
Hi Juliusz, > $ telnet ::1 33123 > […] > dump > add interface eth0 > add interface wlan0 > add xroute 172.23.36.54/32-::/0 prefix 172.23.36.54/32 from ::/0 > metric 0 > add xroute 2001:660:3301:9202::ac17:2436/128-::/0 prefix > 2001:660:3301:9202::ac17:2436/128

Re: [Babel-users] Adding and removing interfaces dynamically in babeld

2016-02-12 Thread Julien Cristau
On Thu, Feb 11, 2016 at 13:41:06 +0100, Juliusz Chroboczek wrote: > > -g for read-only, -G for read-write, > > Uh-huh. > > > and support for unix domain sockets seems like a good combination... > > So if the parameter to -g/-G is not numeric, I make a Unix domain socket? > Do you prefer pull r

Re: [Babel-users] Adding and removing interfaces dynamically in babeld

2016-02-12 Thread Juliusz Chroboczek
>> So if the parameter to -g/-G is not numeric, I make a Unix domain socket? >> > Do you prefer pull requests on github or patches on the list? Slight preference for patches to the list, but either is fine. Depends on where you want the discussion to happen. -- Juliusz _

Re: [Babel-users] Adding and removing interfaces dynamically in babeld

2016-02-12 Thread Juliusz Chroboczek
> I noticed that "add interface" is new. Is there any other new token that > can now appear after "add"? I need a complete list to make babelweb > happy. Yeah, I've noticed. There's nothing more right now, but I reserve the right to add new stuff without bumping the version number (in particular,

[Babel-users] [PATCH] Add support for unix-domain local socket

2016-02-12 Thread Julien Cristau
The absolute path to the socket can be passed to the -g/-G command line options, or to the new local-path/local-path-readwrite config file directives. Signed-off-by: Julien Cristau --- babeld.c| 38 -- babeld.h| 1 + babeld.man | 31 +

Re: [Babel-users] [PATCH] Add support for unix-domain local socket

2016-02-12 Thread Juliusz Chroboczek
Thanks, Julien. > I guess you'll tell me you don't put spaces between "if" and "(", and I > should use consistent style. I can easily edit that myself. > case 'g': This case is very similar to 'G' below. Please refactor to share the two cases (with an if inside). > +strncpy(lo