[klibc] [patch 08/12] use linux/if_ether.h

Erik van Konijnenburg ekonijn at xs4all.nl
Sun May 22 07:51:53 PDT 2005

In klibc, there is <net/if_ether.h>,
in glibc, we have <netinet/if_ether.h>,
in both we have <linux/if_ether.h>.
Let's use the common one.

Perhaps klibc should provide <netinet/if_ether.h>
instead of <net/if_ether.h>?

In glibc, <net/if_packet.h> does not provide
PACKET_BROADCAST; <linux/if_packet.h> does.

Signed-off-by: Erik van Konijnenburg <ekonijn at xs4all.nl>

Index: exec/ipconfig/packet.c
--- exec.orig/ipconfig/packet.c	2005-05-21 13:33:21.000000000 +0200
+++ exec/ipconfig/packet.c	2005-05-21 14:07:03.000000000 +0200
@@ -10,8 +10,8 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#include <net/if_ether.h>
-#include <net/if_packet.h>
+#include <linux/if_ether.h>
+#include <linux/if_packet.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
 #include <netinet/ip.h>


More information about the klibc mailing list