History log of /seL4-camkes-master/projects/picotcp/modules/pico_nat.c
Revision Date Author Comments
# cf3e732d 01-Feb-2017 Frederik Van Slycken <frederik.van.slycken@gmail.com>

update copyright info


# 97b171d5 01-Feb-2017 Frederik Van Slycken <frederik.van.slycken@gmail.com>

update license to GPLv2 and GPLv3


# c94a27d5 11-Sep-2016 laurensmiers <miers132@gmail.com>

Separate debug defines for every module


# 04da7cfa 01-Sep-2016 Matthias Van Parys <matthias.vanparys@altran.com>

Issue #387: Added some more checking/freeing stuff/todos


# 7ff2d039 24-Aug-2016 Matthias Van Parys <matthias.vanparys@altran.com>

Issue #387: Check return value of pico_timer_add() and pico_timer_add_hashed()


# ed878a33 11-Aug-2016 Matthias Van Parys <matthias.vanparys@altran.com>

Coverity ID 65619: NAT: add missing break statement in switch


# 0baf7570 27-Jan-2016 Toon Stegen <toon.stegen@altran.com>

Make local variables static

detected using -Wmissing-variable-declarations clang option


# 9cb04422 13-Apr-2015 Daniele Lacamera <daniele.lacamera@tass.be>

Updated Copyright information.


# 159b13bf 27-May-2014 Daniele Lacamera <daniele.lacamera@tass.be>

Enforced coding style via uncrustify


# 4d17099a 13-May-2014 Daniele Lacamera <daniele.lacamera@tass.be>

Refactored IP address comparison into one centralized function


# b419c51f 23-Apr-2014 Daniele Lacamera <daniele.lacamera@tass.be>

Fixed regression in nat.c


# acc1bb1c 23-Apr-2014 Daniele Lacamera <daniele.lacamera@tass.be>

Reduced cyclomatic complexity of modules/pico_nat.c


# e653b401 26-Mar-2014 Maxime Vincent <maxime.vincent@tass.be>

Removed more gcc warnings on vinz machine


# e4c0472f 26-Mar-2014 Maxime Vincent <maxime.vincent@tass.be>

Changes for IAR/EWARM


# 01f47e21 27-Feb-2014 Daniele Lacamera <daniele.lacamera@tass.be>

Solved TCP dependancy problem in nat/ipv4 (Fix #116)


# 7a797335 24-Jan-2014 Sam Van Den Berge <sam.van.den.berge@tass.be>

* changed pico_free into PICO_FREE
* changed pico_zalloc into PICO_ZALLOC


# d69bc71a 06-Dec-2013 Daniele Lacamera <daniele.lacamera@tass.be>

Added uncrustify. Enforced some coding rules. Added "make style" target.


# c2ed7ba1 04-Dec-2013 andreixc <andrei.carp@tass.be>

Promoted pico_tick to uint64, created pico_time to diff the time variables


# 52f21a43 27-Sep-2013 iulian <iulian@iulian-VirtualBox.(none)>

Issue #17. Fixed warnings (part three)


# 3ea5598f 24-Sep-2013 iulian <iulian@iulian-VirtualBox.(none)>

Issue #17. Fixed warnings (part one)


# ca8707cd 26-Aug-2013 Andrei Carp <andrei@andrei-Vostro-3560.(none)>

Issue #17. Fixed all -Wunused-parameter, except dhcp,


# f651be8b 14-Aug-2013 Kristof Roelants <kristof.roelants@tass.be>

Task #782 return error when failing to generate nat port


# 428ea9d3 08-Aug-2013 Kristof Roelants <kristof.roelants@tass.be>

Task #791 Refactored NAT implementation

TODO: implement ICMP support


# 02177da3 30-Apr-2013 Kristof Roelants <kristof.roelants@tass.be>

Task #549 Fixed usage of net_len variable + added router alert option to IGMP


# d4eeb3dd 11-Apr-2013 Daniele Lacamera <root@danielinux.net>

Fixed Bind, broadcast, multiple sockets (should close #647, #648)


# b51c20d5 22-Mar-2013 Kristof Roelants <kristof.roelants@tass.be>

Task #577 Rewrite/rename of UDP CRC function pico_udp_checksum_ipv4


# b79b48fd 06-Mar-2013 Philippe Mariman <philippe.mariman@tass.be>

Task #514 - fixed declarations warnings in module files


# d7f5f231 03-Mar-2013 Daniele Lacamera <root@danielinux.net>

[ICMP4] Added TTL field in ping statistics

[topology] -- not adding backward routes for nat boxes


# ca374cec 01-Mar-2013 Andrei Carp <andrei@andrei-Vostro-3560.(none)>

Task #442 Integrated the new rb library + unit tests for it + a few bugfixes


# d3d786de 28-Feb-2013 Daniele Lacamera <root@danielinux.net>

Fixed warnings, reduced verbosity


# 6677b87b 28-Feb-2013 Kristof Roelants <kristof.roelants@tass.be>

NAT: consolidated little-endian and big-endian usage


# 65a5d3b5 18-Feb-2013 Daniele Lacamera <root@danielinux.net>

Reworked static objects in the modules, to allow unit tests to include .c files


# 9e77d644 16-Feb-2013 Daniele Lacamera <root@danielinux.net>

Changed LICENSE to GPL2. Removed the do-not-distribute clause from the source headers


# 7daddbe4 15-Feb-2013 Philippe Mariman <philippe.mariman@tass.be>

Task #387 - Finished review ipv4, dhcp, igmp documentation


# 90209ea5 01-Feb-2013 Kristof Roelants <kristof.roelants@tass.be>

NAT memory leak fix on RB_INSERT


# 5b82439c 01-Feb-2013 Kristof Roelants <kristof.roelants@tass.be>

Task #101 NAT - conversion to pico_ip4 addresses


# b52a087c 31-Jan-2013 Philippe Mariman <philippe.mariman@tass.be>

Task #101 - Added NAT functionality to send ICMP from priv side

Added the functionality to send ICMP packets from a private adress
(before nat_box). The reply is also received back. Tested with
picoapp ping and natbox.

TODO: make nat_port entry more unique somehow
TODO: check if additional checks are necessary for usage of ICMP
with NAT.


# 1d4181ca 31-Jan-2013 Kristof Roelants <kristof.roelants@tass.be>

Task #318 Implement NAT port forwarding


# 39720596 19-Jan-2013 Kristof Roelants <kristof.roelants@tass.be>

Task #292 NAT implement port check.

A port used by an application can not be used by NAT and the other way around.


# c2b722e4 19-Jan-2013 Kristof Roelants <kristof.roelants@tass.be>

FIX NAT port generation bug

Only ports between 0 and 4095 were being generated. This caused an
infinite loop after the creation of a certain amount of ports.


# e21cc955 19-Jan-2013 Kristof Roelants <kristof.roelants@tass.be>

Task #293 FIX NAT RB tree bug. Split the current tree in a forward tree and backward tree.


# 3665f019 19-Jan-2013 Kristof Roelants <kristof.roelants@tass.be>

Cleanup of NAT debug


# 0ea1e3e1 06-Jan-2013 Daniele Lacamera <root@danielinux.net>

Improved makefiles, to use conditionals. Selectable modules. Closes #210, #187.


# f5269ebd 04-Jan-2013 Daniele Lacamera <root@danielinux.net>

Nat debug disabled.


# 919fac2a 04-Jan-2013 Daniele Lacamera <root@danielinux.net>

Fixed NAT table cleanup loop using RB_FOREACH_REVERSE_SAFE.

Removed some warnings + trailing spaces.


# 9ff98da7 04-Jan-2013 BrechtVC <brecht.van.cauwenberghe@tass.be>

Little bug fixed for sniffers on issue #205


# 6ab27e31 04-Jan-2013 Kristof Roelants <kristof.roelants@tass.be>

Fix on layout padding of print NAT table


# 4069e6c5 04-Jan-2013 Kristof Roelants <kristof.roelants@tass.be>

Implemented deletion of entries from NAT table


# 4ca0ebf1 04-Jan-2013 SimonMaes <simonn.maes@gmail.com>

pico_ipv4_nat_disable() functionality added #208


# 1be422f8 04-Jan-2013 Kristof Roelants <kristof.roelants@tass.be>

Implemented 4min timer for NAT table cleanup


# 56402095 04-Jan-2013 BrechtVC <brecht.van.cauwenberghe@tass.be>

Forward&backward sniffing for RB-tree delete #205


# 63455f3f 04-Jan-2013 Kristof Roelants <kristof.roelants@tass.be>

Rewrote print table of NAT


# 6568484a 04-Jan-2013 Kristof Roelants <kristof.roelants@tass.be>

Initializing del_flags when adding NAT entries


# 9512edd6 04-Jan-2013 Daniele Lacamera <root@danielinux.net>

- Reduced verbosity, fixed autotest.sh


# 5beed7f9 03-Jan-2013 SimonMaes <simonn.maes@gmail.com>

new pico_nat_key struct element: del_flags, for managing deleting pico_nat_key's #205


# 9eda1322 03-Jan-2013 BrechtVC <brecht.van.cauwenberghe@tass.be>

Search on src addr from nat tree, bugfix #89


# 00a18d4e 02-Jan-2013 SimonMaes <simonn.maes@gmail.com>

applied changes to RB_TREE-function calls


# f7f95a3a 02-Jan-2013 BrechtVC <brecht.van.cauwenberghe@tass.be>

Clean up the nat code #89


# 605ec668 02-Jan-2013 Kristof Roelants <kristof.roelants@tass.be>

Rewrite of pico_ipv4_nat_find version 2


# 715b4121 01-Jan-2013 BrechtVC <brecht.van.cauwenberghe@tass.be>

bug fixes in forward function of NAT #155


# 8d56aabb 26-Dec-2012 Daniele Lacamera <root@danielinux.net>

Reduced logs for NAT


# 446fed8b 21-Dec-2012 BrechtVC <brecht.van.cauwenberghe@tass.be>

bugfixes nat #202

Forward function is not working properly yet
Not tested completely !


# 2c5c854b 21-Dec-2012 Kristof Roelants <kristof.roelants@tass.be>

Implementation of NAT in the testfile test/nat_box.c

Moved the definition of struct pico_ipv4_link to the header file
as we need a link to enable the NAT on.


# 1beec301 19-Dec-2012 phil <phil@mbp.(none)>

Task #89 - integrated major NAT tasks

Integrated NAT tasks 153, 154 and 196.
Preliminary enable check functions implemented to test.
All functions compile without warnings and errors.
Next step is to implement NAT calls in the stack.


# 70062781 19-Dec-2012 Kristof Roelants <kristof.roelants@tass.be>

Task #153 Create NAT table with active conversations.

Creation of RB tree for NAT entries. Implemented add, delete and
find functions.