15 Commits

Author SHA1 Message Date
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
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
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
d78bee25a7 Updated author's e-mail address 2012-01-26 11:21:07 +01: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
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
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
7d84dbeb18 Initial commit 2011-09-13 21:26:12 +02:00