Use netpacket/packet.h instead of linux/if_packet.h to get sockaddr_ll.
authorVincent Bernat <bernat@luffy.cx>
Mon, 23 Aug 2010 17:42:34 +0000 (17:42 +0000)
committerAlexandre Cassen <acassen@lnxos-dev.(none)>
Wed, 8 Dec 2010 10:43:10 +0000 (11:43 +0100)
linux/if_packet.h pulls linux/types.h that should not be used by a
userland program since types defined here can conflict with stdint.h.
We use netpacket/packet.h which is a GNU LibC header.

keepalived/vrrp/vrrp_arp.c

index e31abe0..e608b66 100644 (file)
@@ -21,7 +21,7 @@
  */
 
 /* system includes */
-#include <linux/if_packet.h>
+#include <netpacket/packet.h>
 
 /* local includes */
 #include "logger.h"