git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AcessNative - Now can use the `dir` CLIShell builtin
[tpg/acess2.git]
/
Modules
/
IPStack
/
ipv4.h
diff --git
a/Modules/IPStack/ipv4.h
b/Modules/IPStack/ipv4.h
index
b092bec
..
2c3e1ca
100644
(file)
--- a/
Modules/IPStack/ipv4.h
+++ b/
Modules/IPStack/ipv4.h
@@
-28,7
+28,7
@@
struct sIPv4Header
} __attribute__((packed));
Uint8 FragOffHi; // Number of 8-byte blocks from the original start
} __attribute__((packed));
Uint8 FragOffHi; // Number of 8-byte blocks from the original start
- Uint8 TTL; // Max number of hops effectively
+ Uint8 TTL; // Max number of hops
,
effectively
Uint8 Protocol;
Uint16 HeaderChecksum; // One's Complement Sum of the entire header must equal zero
Uint8 Protocol;
Uint16 HeaderChecksum; // One's Complement Sum of the entire header must equal zero
@@
-39,12
+39,14
@@
struct sIPv4Header
} __attribute__((packed));
#define IP4PROT_ICMP 1
} __attribute__((packed));
#define IP4PROT_ICMP 1
-#define IP4PROT_TCP 6
-#define IP4PROT_UDP 17
+#define IP4PROT_TCP 6
+#define IP4PROT_UDP 17
#define IPV4_ETHERNET_ID 0x0800
// === FUNCTIONS ===
extern int IPv4_RegisterCallback(int ID, tIPCallback Callback);
#define IPV4_ETHERNET_ID 0x0800
// === FUNCTIONS ===
extern int IPv4_RegisterCallback(int ID, tIPCallback Callback);
+extern Uint16 IPv4_Checksum(const void *Buf, size_t Length);
+extern int IPv4_SendPacket(tInterface *Iface, tIPv4 Address, int Protocol, int ID, int Length, const void *Data);
#endif
#endif
UCC
git Repository :: git.ucc.asn.au