]> the.earth.li Git - mqtt-arp.git/log
mqtt-arp.git
6 years agoFix setting of default options
Jonathan McDowell [Thu, 13 Sep 2018 17:38:18 +0000 (18:38 +0100)]
Fix setting of default options

mqtt_topic / location were never being set with their defaults.

6 years agoSilently drop RTM_DELNEIGH/RTM_GETNEIGH messages
Jonathan McDowell [Mon, 11 Jun 2018 20:36:15 +0000 (21:36 +0100)]
Silently drop RTM_DELNEIGH/RTM_GETNEIGH messages

Rather than printing that we don't understand these messages, silently
drop them.

6 years agoFix alignment when parsing Netlink messages
Jonathan McDowell [Wed, 6 Jun 2018 17:30:56 +0000 (18:30 +0100)]
Fix alignment when parsing Netlink messages

The Netlink header should be treated as NLA_HDRLEN in length, and
NLA_ALIGN() used to deal with padding after attributes.

6 years agoAdd support for clean shutdown via SIGTERM
Jonathan McDowell [Wed, 30 May 2018 19:53:02 +0000 (20:53 +0100)]
Add support for clean shutdown via SIGTERM

Catch SIGTERM to allow ourselves to do an orderly shutdown. This isn't
useful in general operation (as a TERM will do all this cleanup anyway)
but allows for testing under valgrind to ensure no leaks or invalid
accesses.

6 years agoAdd command line parameters for MQTT username + password
Jonathan McDowell [Wed, 30 May 2018 19:41:33 +0000 (20:41 +0100)]
Add command line parameters for MQTT username + password

6 years agoFix MAC address command line parsing
Jonathan McDowell [Wed, 30 May 2018 17:28:38 +0000 (18:28 +0100)]
Fix MAC address command line parsing

We weren't setting valid to true + incrementing our count when we saw
a MAC address on the command line.

6 years agoAdd command line parsing of options
Jonathan McDowell [Wed, 23 May 2018 21:46:54 +0000 (22:46 +0100)]
Add command line parsing of options

Rather than hard coding all of the relevant details allow them to be
specified on the command line. Refactor config into a single config
structure to help with this.

6 years agoAdd a basic Makefile
Jonathan McDowell [Wed, 23 May 2018 18:29:39 +0000 (19:29 +0100)]
Add a basic Makefile

6 years agoInitial commit
Jonathan McDowell [Wed, 23 May 2018 07:10:09 +0000 (08:10 +0100)]
Initial commit