nltest: use correct format for pfc messages

pfc messages use u64, no s64.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
lldpad: systemd integration

The control socket for lldap should be managed by systemd to
allow socket activation. This allows us to have proper service
files for both the daemon and the socket.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
lldpad: remove check_cfg_file()

Already done by init_cfg_file().

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
lldpad: Fixup pid file handling

Using 'flock' on the PID file is completely pointless, as the
fd will be closed afterwards. And we're binding to an abstract
socket for CLI commands prior to that, which already takes care
of having the daemon only run once.

So remove the 'flock' code and ensure that the PID file is
correctly removed upon exit.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
lldp: Do not print 'l2_packet_receive - recvfrom' when network is down

If the network interface is down it's perfectly valid to get a
ENETDOWN error during recvfrom. So that's nothing to worry about
and the error message should be suppressed here.
Plus it doesn't actually carry enough information to figure out
_which_ interface is down.

Those who care can always increase the logging level to get to
the desired information.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
lldpad: Option '-t' to omit timestamps in messages

When running under systemd all messages are already prefixed
with a timestamp. So there is no need to do it from lldpad.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Fixup definition of dcbx_get_arg_handlers

Gcc complains about an invalid function prototype here.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>