59 Commits

Author SHA1 Message Date
Daniel Adolfsson
4a837c511c Update README with the correct sample conf
It is "ndppd.conf-dist", not "ndppd.conf.example"
2015-10-11 03:11:19 +04:00
Daniel Adolfsson
e6f2e0a52e Update Website/Git URIs 2015-10-11 02:53:00 +04:00
Daniel Adolfsson
baec0bf028 Merge pull request #8 from nirgal/patch-1
Use standard C pre-processor flags from environement
2015-10-11 02:49:41 +04:00
nirgal
87f989026d Use standard C pre-processor flags in environement
This allows build environment to set standard C pre-processor "CPPFLAGS".
2015-10-09 11:36:03 +02:00
Daniel Adolfsson
e2e44ec5ed Merge pull request #5 from szatam/master
In order to get the correct pid, we should daemonize before writing the ...
2015-01-28 16:45:48 +04:00
Tamas Szabo
6b08f63fff In order to get the correct pid, we should daemonize before writing the pidfile 2014-12-19 11:44:10 +02:00
Daniel Adolfsson
00da8bf7ba Fix issue #2 - ndppd dæmonizes too early 2013-02-12 13:26:27 +01:00
Daniel Adolfsson
24aeceb060 Release 0.2.3 0.2.3 2012-09-21 13:13:15 +00:00
Jiri Kosina
fe5fe8e894 ndppd: remove unused variables
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Daniel Adolfsson <daniel@priv.nu>
2012-03-08 00:25:47 +01:00
Jiri Kosina
8ee4758b41 ndppd: fix initialization list ordering in constructors
Members are initialized in the order that they are declared in the class
definition not in the order they are written them in the initialization
list in the constructor. Fix the ordering.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Daniel Adolfsson <daniel@priv.nu>
2012-03-08 00:25:45 +01:00
Jiri Bohac
e827641e40 ndppd: fix setting the ALLMULTI flag
ifa->allmulti() uses ifa->fd before it is initialized.

Signed-off-by: Jiri Bohac <jbohac@suse.cz>
Signed-off-by: Daniel Adolfsson <daniel@priv.nu>
2012-03-08 00:20:25 +01:00
Daniel Adolfsson
b3e45caf20 Fix a problem with iface::cleanup() where 'it' was incremented improperly 0.2.2 2012-02-07 22:28:53 +01:00
Daniel Adolfsson
0dbc3e288a A couple of bugfixes
* Fix a bug where pollfds would be changed while in the poll_all
    loop. This issue didn't exist before 'auto' was implemented.

  * Fix so 'auto' rules won't try to forward Neighbor Solicitation
    Packages through proxy's interface.

  * Some code cleanup.
2012-02-07 21:33:41 +01:00
Daniel Adolfsson
13b81fdd97 Last major commit for version 0.2.2
* Fix so that "route-ttl" in ndppd.conf works

  * Fix a typo in ndppd.conf.5

  * Update "ndppd.conf" to reflect the big changes

  * Fix a bug with config loader

  * Fix so that "auto" will never forward a Neighbor Solicitation
    Message out through the "proxy" interface
2012-02-07 12:44:55 +01:00
Daniel Adolfsson
d51acba693 Fix a uClibc++ compatibility issue using stringstream::rdbuf() 2012-02-04 13:43:39 +01:00
Daniel Adolfsson
3ba2e7797b Some more fixes related to ptr/weak_ptr 2012-02-04 11:02:49 +01:00
Daniel Adolfsson
244341b5cf Fix a couple of issues related to circular referencing (ptr/weak_ptr) 2012-02-04 09:41:41 +01:00
Daniel Adolfsson
804800864a Fix minor memory leak and logging 2012-02-04 00:23:11 +01:00
Daniel Adolfsson
997499ec2b Update documentation for 0.2.2 and fix logging 2012-02-03 23:13:46 +01:00
Daniel Adolfsson
7956724a8e Fix a couple of memory leaks 2012-02-03 22:25:00 +01:00
Daniel Adolfsson
6723f2f4b6 Several large changes for the upcoming 0.2.2 version
- Bugfixes.

- New 'auto' configuration to be used in a 'rule' section.  When using
  this option, the routing table /proc/net/ipv6_route will be used to
  auto-detect which interface to use when forwarding solicitation messages.

- New 'route' class to resolve which interface to query when using
  'auto' configuration.

- Cleaned up the code some more.
2012-02-03 14:29:37 +01:00
Daniel Adolfsson
ab0ebe09ff Go back to using own implementation of smart pointers 2012-02-02 20:35:09 +01:00
Daniel Adolfsson
ffb4e6d398 New configuration implementation
First step in removing the libconfuse dependency.
2012-01-31 23:53:45 +01:00
Daniel Adolfsson
c8cc80925a New logging implementation
-  Switch from the old 'log' class (ERR/DBG/etc) to a better
   'logger' class. Also use LOG_* as defined in syslog.h.

-  Make it possible to read debug messages even for release.

-  Add a new argument (-v|--verbose) to 'ndppd' to change
   verbosity level.
2012-01-31 20:25:39 +01:00
Daniel Adolfsson
bc70f587ef Refactor source
- Change coding style

- Switch from own implementation of smart pointers to std::smart_ptr
  and std::weak_ptr
2012-01-28 20:28:07 +01:00
Daniel Adolfsson
6fda405a59 Add required #include when compiling for OpenWrt 0.2.1 2012-01-26 11:38:54 +01:00
Daniel Adolfsson
d78bee25a7 Updated author's e-mail address 2012-01-26 11:21:07 +01:00
Daniel Adolfsson
d1a4c3eb77 Add ChangeLog 2011-10-11 09:24:47 +02:00
Daniel Adolfsson
f2138db118 Fix Makefile to allow LDFLAGS to be overridden 2011-10-10 21:56:08 +02:00
Daniel Adolfsson
4bebf388a5 Update Makefile and fix compilation errors 2011-10-10 13:05:24 +02:00
Daniel Adolfsson
5208248f25 Release 0.2.1 2011-10-07 10:45:11 +02:00
Daniel Adolfsson
65ae331c00 Update documentation in README and ndppd.1 2011-09-19 15:53:59 +02:00
Daniel Adolfsson
cc3a075b6f Fix Makefile 2011-09-19 10:41:38 +02:00
Daniel Adolfsson
23e1bfa3b8 Change version to 0.2.1~rc1 2011-09-18 19:31:34 +02:00
Daniel Adolfsson
db6598fd4a Update manpage ndppd(1) to include '-p' option 2011-09-18 15:23:47 +02:00
Daniel Adolfsson
d03e890269 Add support for creating pidfile through '-p' option 2011-09-18 15:22:30 +02:00
Daniel Adolfsson
1a5c251046 Add description to manpage ndppd(1). 2011-09-18 12:44:44 +02:00
Daniel Adolfsson
97f72a0a4b Makefile and manpages
- Update Makefile to provide 'install'.

- Add manpages ndppd(1) and ndppd.conf(5).
2011-09-18 12:40:48 +02:00
Daniel Adolfsson
00a2308486 Update README 2011-09-18 10:49:19 +02:00
Daniel Adolfsson
5ddcf7aef5 Update version to 0.2-beta 2011-09-18 05:04:36 +02:00
Daniel Adolfsson
fb1e8ebe81 Update README and add LICENSE 2011-09-18 05:03:34 +02:00
Daniel Adolfsson
27684524ef Add ndppd.conf.example and fix .gitignore 2011-09-18 03:43:27 +02:00
Daniel Adolfsson
17bdd6ebac Add two more configuration options
- 'ttl' to control how long a session will stay in the cache once the
  session becomes valid or invalid. Default is 30 seconds.

- 'timeout' to control how long a session will wait for a Neighbor
  Advertisement before being invalidated. Default is 500 ms.
2011-09-18 03:33:18 +02:00
Daniel Adolfsson
869fdbca2a Add support for static rules 2011-09-18 02:46:51 +02:00
Daniel Adolfsson
9bf5799109 Multiple changes
* Change Makefile so release is the default mode, use DEBUG=1 to turn
  on debugging.

* Clean up 'conf' a bit.

* Add a new option 'router' (valid in 'proxy' section) to turn on/off
  the ND_NA_FLAG_ROUTER flag for adverts.
2011-09-18 02:25:43 +02:00
Daniel Adolfsson
f65d5c0e14 Switch from setsockopt(SO_BINDTODEVICE) to bind() for _pfd 2011-09-18 01:51:47 +02:00
Daniel Adolfsson
c5b542e79c Small changes
* Make iface::read() return a bit more generic address (sockaddr).

* Add is_unicast() and is_multicast() to address.

* Set default config path to "/etc/ndppd.conf".

* Silently ignore solicit messages with bad saddr and/or daddr.
2011-09-18 01:31:27 +02:00
Daniel Adolfsson
d3139b660e Set IPV6_UNICAST_HOPS to 255 on _ifd 2011-09-17 23:38:08 +02:00
Daniel Adolfsson
eefa9cb881 Multiple changes
* Add '-d' to "daemonize". Will also enable syslogging.

* Fix a couple of bugs in 'session'.

* Clean up 'log', and use LOG_* macros instead.

* Add syslog(bool) to 'log' to enable/disable the use of syslog.
2011-09-17 16:37:24 +02:00
Daniel Adolfsson
70933e0830 iface proper destructor
Inside iface::~iface(), make sure to close any open sockets
and restore ALLMULTI to it's original value.
2011-09-17 02:22:33 +02:00