Author: Vignesh R <vignesh.r@timesys.com>
Date: Tue, 7 Dec 2021 11:35:30 +0530

pcap-linux.c:1460:36: error: 'NETLINK_GENERIC' undeclared (first use in this function)
  fd = socket(AF_NETLINK, SOCK_RAW, NETLINK_GENERIC);

---
 pcap-linux.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/pcap-linux.c b/pcap-linux.c
index 878f27f..3f09a98 100644
--- a/pcap-linux.c
+++ b/pcap-linux.c
@@ -103,6 +103,10 @@
 
 #include "diag-control.h"
 
+#ifndef NETLINK_GENERIC
+#define NETLINK_GENERIC 16
+#endif
+
 /*
  * We require TPACKET_V2 support.
  */
-- 
2.7.4

