66 Commits

Author SHA1 Message Date
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
Daniel Adolfsson
62edaf3c6b Fix several bugs and clean up the code 2011-09-17 01:10:23 +02:00
Daniel Adolfsson
370ba70182 Multiple changes
- Clean up some junk code that was left over.

- Replace ptr<> with strong_ptr<> and weak_ptr<> to easier distinguish
  between weak and strong pointers.

- Fix a couple of bugs.
2011-09-16 22:59:37 +02:00
Daniel Adolfsson
6a1306cdd5 Major changes 2011-09-16 22:59:35 +02:00
Daniel Adolfsson
e37df74b8e Major changes 2011-09-16 22:59:33 +02:00
Daniel Adolfsson
456813fb9e Update copyright headers to include an e-mail address 2011-09-16 22:59:31 +02:00
Daniel Adolfsson
35567ed082 Major changes 2011-09-16 22:59:29 +02:00
Daniel Adolfsson
77b328ad15 Fix ptr<> nested release()
Fix a bug with ptr<> that at some occasions will try to free _ref
multiple times when release() becomes nested.
2011-09-16 22:59:25 +02:00
Daniel Adolfsson
5efe4124d7 Update copyright headers to include an e-mail address 2011-09-16 22:59:22 +02:00
Daniel Adolfsson
7d84dbeb18 Initial commit 2011-09-13 21:26:12 +02:00