Vitezslav Samel <vitezslav(a)samel.cz> writes:
Tun interface uses ARPHRD_NONE, so parse it in adjustpacket().
Some old glibcs (e.g. in Slackware 10.1) doesn't have ARPHRD_NONE
ARPHRD_NONE doesn't come from glibc, but its from kernel. I grepped
linux git tree and what I found?
commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2
Author: Linus Torvalds <torvalds(a)ppc970.osdl.org>
Date: Sat Apr 16 15:20:36 2005 -0700
Linux-2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
diff --git a/include/linux/if_arp.h b/include/linux/if_arp.h
new file mode 100644
index 0000000..bbf49bc
--- /dev/null
+++ b/include/linux/if_arp.h
@@ -0,0 +1,150 @@
...
...
...
+
+#define ARPHRD_VOID 0xFFFF /* Void type, nothing is known */
+#define ARPHRD_NONE 0xFFFE /* zero header length */
+
...
...
...
What the hell is used in Slackware 10.1? :D
--
Nikola