summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKlaas Freitag <freitag@suse.de>1998-11-15 20:07:31 +0000
committerKlaas Freitag <freitag@suse.de>1998-11-15 20:07:31 +0000
commit49d6a0009c6ab09ed184028a082a098d455a34f2 (patch)
treef3e03429bb25dd641148c70cd8af596732c162f0 /include
parent72c29c95a6a2a292514c99364a64e7191848c61e (diff)
downloadnet-tools-49d6a0009c6ab09ed184028a082a098d455a34f2.tar.gz
net-tools-49d6a0009c6ab09ed184028a082a098d455a34f2.tar.bz2
net-tools-49d6a0009c6ab09ed184028a082a098d455a34f2.zip
Yow. This is net-tools completely reindented.
Some other cleanups: - lib/net-string.c removed because it was not used and had a copyright notice that conflicted with the GPL. - Minor cleanups. - Fix an potential buffer overflow in ax25. - Switch to CVS $Id$ for versioning consistently
Diffstat (limited to 'include')
-rw-r--r--include/ipx.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/include/ipx.h b/include/ipx.h
index 0b63141..1f1e94b 100644
--- a/include/ipx.h
+++ b/include/ipx.h
@@ -1,24 +1,24 @@
+
/* Sanitised ipx.h for net-tools. */
-#ifndef _IPX_H_
+#ifndef _IPX_H_
#define _IPX_H_
#define IPX_NODE_LEN 6
#define IPX_MTU 576
-struct sockaddr_ipx
- {
-#if LINUX_VERSION_CODE > 131328 /* 2.1.0 or later */
- sa_family_t sipx_family;
+struct sockaddr_ipx {
+#if LINUX_VERSION_CODE > 131328 /* 2.1.0 or later */
+ sa_family_t sipx_family;
#else
short sipx_family;
#endif
- unsigned short sipx_port;
- unsigned long sipx_network;
- unsigned char sipx_node[IPX_NODE_LEN];
- unsigned char sipx_type;
- unsigned char sipx_zero; /* 16 byte fill */
- };
+ unsigned short sipx_port;
+ unsigned long sipx_network;
+ unsigned char sipx_node[IPX_NODE_LEN];
+ unsigned char sipx_type;
+ unsigned char sipx_zero; /* 16 byte fill */
+};
#define IPX_FRAME_NONE 0
#define IPX_FRAME_SNAP 1