Commit Graph

35 Commits

Author SHA1 Message Date
Simon Duquennoy 821590c4b5 Logging: added feature for compact address logging (last 16 bits). Cleanup more logs in MAC layers, IPv6 and RPL 2017-06-29 16:46:13 +02:00
Simon Duquennoy a78b4e32e9 Logging system: print the module name only on newlines 2017-06-29 16:46:12 +02:00
Simon Duquennoy 250707c2d7 Use full include path for rpl and rpl-lite .h files, in core 2017-06-29 16:46:11 +02:00
Simon Duquennoy 7e9d68a2ef Fix tcpip.c next hop selection 2017-06-29 16:46:10 +02:00
Simon Duquennoy a6643a9835 Added RPL-lite, a lightweight implementation of RPL. This is the new default. 2017-06-29 16:46:07 +02:00
Simon Duquennoy fcc1778dc0 Remove all references to Rime 2017-06-22 18:31:13 +02:00
Simon Duquennoy 830ac8a2da Logging fixes 2017-06-21 17:11:20 +02:00
Simon Duquennoy 9231d9f82d Logging module naming: LOG_MODULE_STR becomes LOG_MODULE 2017-06-21 17:09:39 +02:00
Simon Duquennoy b9bd08c4a9 Added new logging module, used in tcpip and sicslowpan 2017-06-21 17:09:36 +02:00
Simon Duquennoy 265af96a55 Added new nbr-table reason for ND6 AUTOFILL 2017-06-21 16:53:53 +02:00
Simon Duquennoy 0d0e065456 uIP ND6: added option to automatically fill the neighbor cache assuming autoconfigured IPv6 addresses 2017-06-21 16:53:29 +02:00
Billy Kozak 0b66f4e274 Refactor tcpip.c to reduce code size
- memset listenports to clear at tcpip_process init
- add setup_appstate function to initilize app state structs
2017-06-21 16:02:45 +02:00
Billy Kozak 6b40fcc125 refactored tcpip_ipv6_output
- brought out several sections of code into seperate helper functions
- reduced conditional nesting by adding new function exit points
- use gotos to eliminate some code duplication (the main goal here
  is to reduce code size so as to avoid compilation problems on some
  platforms).

Conflicts:
	core/net/ip/tcpip.c
2017-06-21 16:02:44 +02:00
Simon Duquennoy 1a0f8ab737 Removing IPv4 stack 2017-06-16 17:32:22 +02:00
Laurent Deru 12c930893c Fix semantic of UIP_ND6_SEND_NA and add UIP_ND6_SEND_NS 2017-01-16 15:48:14 +01:00
Simon Duquennoy d73b229624 Fix and cleanup RPL ext header handling 2016-06-29 17:26:01 +02:00
Simon Duquennoy e584a54608 Insert RPL ext header in tcpip_ipv6_output for consistency 2016-06-29 17:25:10 +02:00
Simon Duquennoy b3e31e1456 Implement RPL non-storing mode 2016-06-08 14:02:45 +02:00
Simon Duquennoy 0296e6aba0 Indent tcpip.c 2016-04-25 11:50:14 +02:00
Antonio Lignan c9baf0cb57 Merge pull request #1192 from bkozak-scanimetrics/tcpip_put_temporaries_on_stack
changed tcpip static temporaries to stack vars
2016-04-13 09:30:33 +02:00
Joakim Eriksson 4246a8fbe6 updated more nbr_add calls 2016-03-26 09:45:37 +01:00
Simon Duquennoy 2daa3d7377 Merge pull request #1269 from tadodotcom/tmp-uip-fallback-iface
More flexibility for the fallback interface
2015-10-20 11:33:14 +02:00
Simon Duquennoy 1a6681a09d Merge pull request #987 from ioannisg/send-ns-in-tcpip_ipv6_output
Send the first NS attempt inside tcpip_ipv6_output()
2015-09-28 13:29:04 +02:00
lebrush b3f6019924 More flexibility for the fallback interface.
When there's a failure to send a packet in the fallback interface the
destination is unreachable and therefore the source should be notified.
2015-09-22 12:53:04 +02:00
Valentin Sawadski 43770a934d Refactor tcpip.c packet input
The UIP_CONF_FORWARD is now handled in a better way that the general structure
of packet_input can be clearer seen.
2015-09-15 09:31:43 +02:00
Simon Duquennoy 63ddba93a9 Merge pull request #1169 from feshie/pr-warnings-fix
Fix multiple warnings (TCPIP, coap-observe, msp430, z1/tmp102, ContikiMAC)
2015-09-08 09:05:44 +02:00
Arthur Fabre e8cbf2e5fb Fix warning in TCPIP
When disabling TCP support, the following warning is triggered:
../..//core/net/ip/tcpip.c:159:1: warning: ‘start_periodic_tcp_timer’
defined but not used [-Wunused-function]
An added ifdef guard now only defines this function when TCP support is
enabled.
2015-09-07 17:52:22 +01:00
Billy Kozak 9cd439d8c0 changed tcpip static temporaries to stack vars
A number of local variables in tcpip.c were declared with static
storage for no good reason (they do not ever preserve state between
function calls).

This patch removes static declaration from these variables.
2015-08-12 09:51:26 -06:00
Laurent Deru 1784338b2e Add uip_clear_buf() macro and replace all instances of uip_len = 0; with it 2015-06-15 11:10:51 +02:00
Adam Dunkels e9f180e756 Made the first argument to uip_connect() const, to ensure it isn't altered 2015-05-10 10:51:13 +02:00
Ioannis Glaropoulos 8552fb1ead Send the first NS attempt inside tcpip_ipv6_output() 2015-03-09 19:41:25 +01:00
Simon Duquennoy c2ca3e9fdb Cleanup UIP_CONF_IPV6_RPL configuration 2014-12-02 12:38:55 +01:00
Simon Duquennoy a9cc909794 Network layer configuration: replace UIP_CONF_* with NETSTACK_CONF_WITH_* 2014-12-01 21:02:57 +01:00
Adam Dunkels 5f3fe7f7c7 Updated include paths for the moved files under net/ 2014-01-26 23:20:23 +01:00
Adam Dunkels 65eba46be2 Moved all generic IP files into the net/ip module 2014-01-26 23:20:21 +01:00