diff mbox

[libnftnl] Add support to print netdev family

Message ID 1445741433-20203-1-git-send-email-subramanian.vijay@gmail.com
State Accepted
Delegated to: Pablo Neira
Headers show

Commit Message

Vijay Subramanian Oct. 25, 2015, 2:50 a.m. UTC
When we lookup the family, return "netdev" for NFPROTO_NETDEV instead of
"unknown".

Signed-off-by: Vijay Subramanian <subramanian.vijay@gmail.com>
---
 src/utils.c |    1 +
 1 file changed, 1 insertion(+)

Comments

Pablo Neira Ayuso Nov. 6, 2015, 1:48 p.m. UTC | #1
On Sat, Oct 24, 2015 at 07:50:33PM -0700, Vijay Subramanian wrote:
> When we lookup the family, return "netdev" for NFPROTO_NETDEV instead of
> "unknown".

Applied.

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/src/utils.c b/src/utils.c
index c241e5f..84fbe94 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -26,6 +26,7 @@  static const char *const nftnl_family_str[NFPROTO_NUMPROTO] = {
 	[NFPROTO_INET]		= "inet",
 	[NFPROTO_IPV4]		= "ip",
 	[NFPROTO_ARP]		= "arp",
+	[NFPROTO_NETDEV]	= "netdev",
 	[NFPROTO_BRIDGE]	= "bridge",
 	[NFPROTO_IPV6]		= "ip6",
 };