1
0
mirror of https://code.semirocket.science/wrapsix synced 2024-11-08 15:21:00 +02:00
Commit Graph

55 Commits

Author SHA1 Message Date
Michal Zima
7a7651674c Completed translating of ICMPv4 errors 2013-03-30 13:39:01 +01:00
Michal Zima
c9c167871c Generalised translation of ICMPv4 error packets 2013-03-30 13:12:03 +01:00
Michal Zima
d1a25aee7f Base of enhanced ICMP support
Translated ICMPv4 packets are statically allocated
ICMPv4 sanitizes size of payload
Fix of an overflow
2013-03-27 18:44:08 +01:00
Michal Zima
f7a03e8240 Fixed usage of uninitialized variable in TCP code 2013-02-14 14:28:57 +01:00
Michal Zima
5af1a5ca7c Reacting to exceeded TTL/HL 2013-02-14 14:26:01 +01:00
Michal Zima
e722e80149 Simplified assigning of IP addresses 2013-02-14 14:04:33 +01:00
Michal Zima
378d3200c2 A bit of formal code cleaning
Mostly lines breaking, then also comments
2013-02-13 20:32:42 +01:00
Michal Zima
746712c6de Conditional fix for compilation in older envs 2013-02-13 14:43:07 +01:00
Michal Zima
958a177c3c Checking for support of each CFLAG 2013-02-13 14:40:33 +01:00
Michal Zima
95bfbe93e2 Expiration of connections and fragments 2012-07-21 21:13:15 +02:00
Michal Zima
24b09b4d93 Saving and processing unknown incoming fragments
New data structure -- linked list
Reduced few useless debug outputs
2012-07-14 11:38:13 +02:00
Michal Zima
b9c6d5c46a Separated MTU and size of packet buffer 2012-07-14 09:47:29 +02:00
Michal Zima
faa0ecc060 Relicensing under GPLv3 2012-07-04 19:04:42 +02:00
Michal Zima
5b50001a5c Extended packet buffer 2012-07-04 13:52:11 +02:00
Michal Zima
34025797b1 Specialized logging functions; can control debug 2012-07-04 11:37:42 +02:00
Michal Zima
fbbf20ba0a Typo fixes 2012-07-03 12:52:50 +02:00
Michal Zima
59fdab7ed8 A bit of code cleanup 2012-07-03 11:15:10 +02:00
Michal Zima
707eb6159b Fixed another SIGSEGV 2012-05-13 21:59:21 +02:00
Michal Zima
a7f750a3e0 Added forgotten header file to src/Makefile.am 2012-05-06 13:54:44 +02:00
Michal Zima
754319efc2 Handling of TCPv4 fragments
With support for refragmenting too big fragments
2012-04-27 16:43:31 +02:00
Michal Zima
9ac06588a8 Revised radix tree
Dropped chunker duplication and created one universal
Rewritten function for deleting entries from the tree
  (limiting the tree to 32 levels)
2012-04-27 15:25:29 +02:00
Michal Zima
d7e506abed Fixed comparing of signed and unsigned numbers 2012-04-27 14:44:09 +02:00
Michal Zima
7012d02ab4 Incorrect computing of packet size caused SIGSEGV 2012-04-27 14:43:09 +02:00
Michal Zima
b28566bc64 Fragmenting of too big TCPv4 packets 2012-04-26 13:50:13 +02:00
Michal Zima
32deb4f0ee Corrected headers of UDP and TCP functions 2012-04-26 13:11:40 +02:00
Michal Zima
0f0816953c Little README 2012-04-26 13:09:29 +02:00
Michal Zima
e35adde820 Partial checksum updates for TCP and UDP 2012-04-13 20:04:01 +02:00
Michal Zima
88882ea5ca Processing of TCP packets 2012-04-07 11:49:26 +02:00
Michal Zima
495d68296a Fixed IPv4 checksum computation
Added missing checksum recheck in UDP
2012-04-06 23:23:00 +02:00
Michal Zima
d6f93792cd Full processing of UDP packets 2012-04-06 17:02:40 +02:00
Michal Zima
0157236357 ICMP structures __packed__ 2012-04-02 19:56:49 +02:00
Michal Zima
2cf43864d7 Git ignoring generated documentation 2012-04-02 19:51:28 +02:00
Michal Zima
32e4041883 Added -pedantic gcc flag 2012-04-02 14:10:40 +02:00
Michal Zima
1196c33bee Full processing of ICMP packets (v4 and v6); NDP
IPv4 header and pseudoheader
Basic preprocessing of IPv4 packets
2012-04-02 13:44:14 +02:00
Michal Zima
4b6a373019 Fixed generation of outgoing port in the NAT
Saving MAC address to the NAT too
2012-04-01 19:08:28 +02:00
Michal Zima
19d5a22c18 Checksum computation 2012-04-01 16:22:54 +02:00
Michal Zima
aee57c680a Fixed 4-to-6 and 6-to-4 IP address translators 2012-04-01 08:24:25 +02:00
Michal Zima
378f34ec64 Processing of ARP packets 2012-03-31 18:47:27 +02:00
Michal Zima
845f5c541b Getting MAC address of the interface
Set IPv4 address of WrapSix
2012-03-31 14:10:35 +02:00
Michal Zima
d44253f5ed Basic preprocessing of IPv6 packets; pseudoheader 2012-03-31 11:27:18 +02:00
Michal Zima
94cbbb5c53 Added transmission function for IPv4 packets
This one lets OS to provide the ethernet header
2012-03-29 22:03:57 +02:00
Michal Zima
b9d5b08b0f Missing include in transmitter.c 2012-03-26 12:58:18 +02:00
Michal Zima
476377526f Updated src/Makefile.am 2012-03-26 12:56:17 +02:00
Michal Zima
5928affce6 RAW packet transmission function 2012-03-26 12:53:58 +02:00
Michal Zima
d7a570b857 A lot of changes and fixes in NAT and radix tree
Included MAC address into the NAT data structure
New chunking algorithms
Fixed memory leaks in RT code
(and more)
2012-03-24 08:26:13 +01:00
Michal Zima
214c42728b Ethernet stuff moved to separated header file
Reworked IP addresses translation functions
Centralized initializing of random number generator
2011-11-08 21:15:36 +01:00
Michal Zima
e0015145e2 Some more NAT stuff (init & quit calling)
IPv4 address structure
IP addresses translation functions
Makefile.am update
2010-02-22 15:00:14 +01:00
Michal Zima
f9f2bd501b Quite good implementation of NAT 2010-02-22 14:55:18 +01:00
Michal Zima
3d8d8ace2a Implementation of Radix tree for NAT 2010-02-22 14:46:18 +01:00
Michal Zima
ecefe998eb Basic filtering of IPv6 traffic 2010-02-06 11:31:29 +01:00