#ifndef _IPSTACK_H_
#define _IPSTACK_H_
-#include <common.h>
+#include <acess.h>
#include <vfs.h>
typedef union uIPv4 tIPv4;
union uIPv4 {
Uint32 L;
Uint8 B[4];
-};
+} __attribute__((packed));
union uIPv6 {
Uint32 L[4];
Uint8 B[16];
-};
+} __attribute__((packed));
struct sMacAddr {
Uint8 B[6];
-};
+} __attribute__((packed));
struct sInterface {
struct sInterface *Next;
tVFS_Node Node;
tAdapter *Adapter;
- int Type; // 4 for IPv4 and 6 for IPv6
+ int TimeoutDelay; // Time in miliseconds before a connection times out
+ int Type; // 0 for disabled, 4 for IPv4 and 6 for IPv6
union {
struct {
tIPv6 Address;
- int SubnetBits;
+ int SubnetBits; //Should this be outside the union?
} IP6;
struct {
#define htonl(in) BigEndian32(in)
#define ntonb(v) (v)
#define ntohs(in) BigEndian16(in)
-#define ntohl(in) BigEndian16(in)
+#define ntohl(in) BigEndian32(in)
#endif