nltest:  Whitespace cleanup

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
nltest: Detailed error reporting of received messages

recv() can return a variety of errors, so we should be decoding
them all individually.

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

Not every hardware allows for setting of LLDP parameter, so add
an option 'ro' to not check for this.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
nltest: Error checking for get_bcn()

get_bcn() might fail, so it's pointless to print out the parameter
in that case.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
nltest: replace HEXDUMP define with static variable

We might want to enable hexdump without recompiling everything ...

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
nltest: Implement option '-v' to print hexdump

Implement option '-v' to print out the packages in hex.

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