snmp: avoid deferencing a pointer when it may be NULL
priv: avoid a socket leak when interface is already in promisc
lldpcli: reformat a bit bash completion to be more readable
lldpcli: change how privileged commands are declared

Even when not privileged, we declare privileged commands but tag them
accordingly. We need to be careful when executing the commands to check
the new bit.

This is a preliminary change to allow a completion command to complete
privileged commands even when not privileged.
lldpcli: provide a hidden complete command for shell completion
lldpcli: make complete command work on privleged commands as well

This avoids the use of sudo.
lldpcli: Add support for JSON-C

OpenWRT is shipped with the JSON-C library, which is used for
several other packages. Having a separate JSON library (Jansson)
doing the exact same thing is wasting flash space.
cdp: Add power requirement to CDPv2 frames

LLDP already supports sending power requirements, for
IEEE 802.3at. Older Cisco PoE switches do not support
LLDP and need a custom CDPv2 frame. This patch enables
support if the LLDP MED PoE frame is also sent.
lldpcli: Add json description to lldpcli usage
cdp: Make it possible to enable CDPv2 without enabling CDPv1
cdp: complete manual page with CDP-related options
configure: if --with-json, default to jansson implementation
lldpcli: fix jansson implementation of the JSON output
NEWS: add a word about json-c library support
release: new version 0.7.10
bash: move bash completion outside Debian packaging
zsh: add ZSH completion
NEWS: add a word about bash/zsh completion
bash/zsh: ensure completions are present in dist tarball
lldpcli: fix style convention to match other files

There are still other files around with this convention that would need
to be fixed.