Oliver Schmidt
a29502ed0d
Changed 'data' casting for 'ctk_signal_keypress'.
...
In these cases data was set as `process_post_synch(window->owner, ctk_signal_keypress, (process_data_t)(size_t)c);` so it seems reasonable to cast "back" to `size_t`. Additionally the comparison can be limited to `char`. See i.e. calcc for reference:
```
if(ev == ctk_signal_keypress) {
if((char)(size_t)data >= '0' &&
(char)(size_t)data <= '9') {
```
2015-10-20 10:11:51 +02:00
Simon Duquennoy
48ae0d2ba0
anti-replay.c: fix undefined behavior on big-endian platforms
2015-10-20 10:11:44 +02:00
Adam Dunkels
01996eb62a
Fix compiler warnings
2015-10-20 10:11:32 +02:00
Adam Dunkels
2d203cc713
Fix compiler warnings
2015-10-20 10:11:31 +02:00
Adam Dunkels
c262eafe97
Fix compiler warnings
2015-10-20 10:11:30 +02:00
Simon Duquennoy
5dd6261fef
Nullrdc: added missing include for cooja nodes
2015-10-20 10:11:15 +02:00
Simon Duquennoy
d6f63e1746
uip6.c: declare uip_add32 symbol if UIP_ARCH_ADD32 is set
2015-10-20 09:37:11 +02:00
Simon Duquennoy
9c15d1c42f
Merge pull request #1063 from simonduq/configure-na
...
Default NDP configuration
2015-10-18 20:26:55 +02:00
Simon Duquennoy
c1797e0ffe
Merge pull request #912 from cetic/pr-dag-lifetime
...
Add DODAG lifetime, update of parent rank when switching dag and multi dodag non-regression test
2015-10-18 20:26:37 +02:00
kkrentz
9500be8916
llsec: Declared aead static
2015-10-14 08:22:44 -07:00
Konrad Krentz
1a12ef3334
llsec: Unsecuring within parse
2015-10-14 08:22:44 -07:00
Konrad Krentz
0a6b1cb646
llsec: Added AEAD mode to CCM*
2015-10-14 08:22:44 -07:00
Konrad Krentz
c656a4d1c5
llsec: Fixed style issues in CCM*
2015-10-14 08:22:44 -07:00
Konrad Krentz
b522c042ec
llsec: Replaced bootstrap function with a simple init function
2015-10-14 08:21:40 -07:00
Konrad Krentz
2059b6559e
llsec: Let llsec_drivers define their own framer
2015-10-14 08:21:40 -07:00
Oliver Schmidt
6b29e4b30d
Merge pull request #1303 from oliverschmidt/master
...
Initialize acknowledgment no. on establishment of outgoing TCP connection.
2015-10-10 19:55:28 +02:00
Oliver Schmidt
7d38c48a8b
Initialize acknowledgment number on establishment of outgoing TCP connection.
...
Ported change 2432a8ee7d
(set expected reception sequence no to zero - to get initial connection to avoid having ack-number other than zero) from uIPv6 to uIPv4.
2015-10-10 17:41:56 +02:00
Valentin Sawadski
44b3cd4e09
Fixes a possible unsafe memcpy in uip_udp_packet_send
...
If the buffers overlap, memcpy must not be used as it might have arbitrary
results. memmove() on the other hand is safe to use.
2015-10-09 08:30:49 +02:00
Simon Duquennoy
7ce817ab4c
Better documentation of the UIP_CONF_ND6_SEND_NA flag.
2015-10-06 16:40:53 +02:00
Florian von Zabiensky
feba89a3f7
fixed memory bug
2015-10-06 11:25:12 +02:00
Laurent Deru
15bc0c6daa
Update rank of parent when it has changed DODAG
2015-09-30 15:48:36 +02:00
Laurent Deru
34126173b4
Add DAG lifetime
2015-09-30 15:48:36 +02:00
Laurent Deru
c5b563f8e1
Estimated fragments should take into account 802.15.4 header size
2015-09-30 09:02:42 +02:00
Nicolas Tsiftes
0a648df3c3
Merge pull request #1207 from simonduq/fix-nd6-alignement
...
ND6 alignment bugfix
2015-09-29 22:01:37 +02:00
Nicolas Tsiftes
881cd25484
Merge pull request #1288 from joakimeriksson/rpl-early-ocp-check
...
RPL: check if objective function is supported before creating dag.
2015-09-29 21:56:55 +02:00
Joakim Eriksson
24a38a3aa8
check if objective function is supported before adding as parent and creating a dag
2015-09-29 21:10:03 +02:00
Simon Duquennoy
d65b3e1ab6
Merge pull request #1090 from rajithr/patch-1
...
Protection against possible buffer overflow
2015-09-28 13:29:45 +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
Simon Duquennoy
ee37b4b293
Merge pull request #884 from cmorty/pull/ringbuf-order
...
Ensure that the data in ringbuff is accessed in the right order
2015-09-28 13:24:44 +02:00
Simon Duquennoy
ef176bad33
Merge pull request #716 from hexluthor/isr-safe-pt-sem
...
Make protothread semaphores interrupt-safe.
2015-09-28 13:20:24 +02:00
Simon Duquennoy
3d7d5d3a45
uip-nd6.c: added function extract_lladdr_aligned for clarity
2015-09-25 19:03:39 +02:00
Nicolas Tsiftes
222a75426a
Merge pull request #1256 from tadodotcom/tmp-refactor-tcpip-packet-input
...
Refactor tcpip.c packet input
2015-09-25 16:18:42 +02:00
Nicolas Tsiftes
a536801e24
Merge pull request #657 from atiselsts/networking_patches
...
Phase RDC memory allocation bugfix
2015-09-24 16:50:00 +02:00
Nicolas Tsiftes
3fcff231ec
Merge pull request #1132 from tpetry/master
...
LRU deletion strategy for rime routes
2015-09-24 14:27:14 +02:00
Simon Duquennoy
db60906e99
Merge pull request #1121 from uknoblic/ip64
...
ip64: Streamlined configuration parameters
2015-09-24 11:24:18 +02:00
Ulf Knoblich
c6db6b171a
ip64: Streamlined configuration parameters
2015-09-24 09:27:11 +02:00
Valentin Sawadski
5b818d5a39
Fixed formatting of documentation
2015-09-23 09:25:31 +02:00
Valentin Sawadski
056f58ae1e
Updates IP64 Fallback Interfaces to return ints
2015-09-23 09:20:31 +02:00
Billy Kozak
8e5f0bc36a
Defining gcc specific macros in seperate header
2015-09-22 14:17:10 -06: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
Moritz 'Morty' Strübe
d68cbb2980
Ensure that the data in ringbuff is accessed in the right order
2015-09-21 09:38:45 +02:00
Billy Kozak
467f28286c
The CSMA driver no longer throttles queued packets
...
Fix for #1166
Updated the CSMA driver so it no longer applies a time delay for
sending queued packets which were sent without error.
2015-09-18 09:35:29 -06:00
Billy Kozak
32e668ae2a
Fix for #1165
...
It is possible that packetbuf is modified by the call to
mac_call_sent_callback. If this occurs ContikiMAC will not be able to
recognize that a packet is pending.
This fixes this problem by storing pending status in a local variable before
calling mac_call_sent_callback.
2015-09-18 09:33:10 -06:00
Valentin Sawadski
cad1c37fb3
Better prints of ::FFFF: prefixed IPv4-mapped addresses
...
IPv4-mapped Address [1] are now printed accoriding to the text representation
mixed IPv4 and IPv6 networks as specified in [2]
[1] https://tools.ietf.org/html/rfc6890#page-14
[2] https://tools.ietf.org/html/rfc3513#page-5
2015-09-18 14:57:01 +02:00
Simon Duquennoy
66ec94fd74
Minor improvements to RPL probing
2015-09-17 22:54:38 +02:00
Simon Duquennoy
a7ce312ee3
Enhanced RPL loop repair: send unicast DIO to source when detecting a loop from ext header, update rank along the path (when rank error is signaled)
2015-09-17 22:53:12 +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
Nicolas Tsiftes
70b3585f76
Merge pull request #1249 from simonduq/fix-rpl-icmp-warnings
...
Fix compiler warnings in rpl-icmp6.c
2015-09-10 14:44:04 +02:00
Simon Duquennoy
5329c42034
Remove unused variables
2015-09-08 23:38: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
Atis Elsts
eac1973073
Introduce ENERGEST_SWITCH macro. It allows to switch between energest modes without running into the risk of losing a tick in the process
2015-09-04 11:49:02 +02:00
Adam Dunkels
92c1a68b94
Merge pull request #1215 from joakimeriksson/rpl-child-locking
...
Move locking of neighbors / children from RPL to uip-ds6-route module
2015-09-02 19:42:45 +02:00
Billy Kozak
7b27ad64ca
Replaced function pointer cast in contikimac
...
Replaced a cast of the funciton pointer to powercycle with a
wrapper calling powercycle which has the correct signature.
The previous implementation was an instance of undefined behaviour
according to the C standard.
2015-09-01 10:16:43 -06:00
Nicolas Tsiftes
b8cccb6d3c
Merge pull request #1183 from simonduq/galois_mul2
...
galois_mul2 conditional-free implementation
2015-08-31 14:41:17 +02:00
rajithr
2a2acf62ed
Fix for out of bounds access
...
Fix for out of bounds access by limiting the printing to the size limit of the buffer
2015-08-31 16:10:00 +05:30
Valentin Sawadski
2cd74d043d
CTIMER API extension to explictly state the process a ctimer belongs to
2015-08-31 10:31:36 +02:00
Simon Duquennoy
ddf970d3db
Merge pull request #695 from sdefauw/contiki
...
IPv6 prefix bug
2015-08-29 20:27:50 +02:00
Joakim Eriksson
9e16d93278
removed pointer to next parent since it is not used anymore
2015-08-28 19:15:23 +02:00
Antonio Lignan
37470bbc1b
Merge pull request #1055 from sumanpanchal/msp430x-elfloader
...
Added MSP430x ELFLOADER support to load image with large memory model.
2015-08-27 21:19:27 +02:00
Joakim Eriksson
4d5c749cf7
removed locking of rpl-parent since it was never unlocked - moved to routing module
2015-08-27 18:45:06 +02:00
Joakim Eriksson
5dee80a253
added locking of nexthop for routes to avoid the risk of nexthop removal
2015-08-27 18:45:06 +02:00
Joakim Eriksson
7c2bff0462
added debug print for nbr-table-module
2015-08-27 18:45:06 +02:00
Fredrik Österlind
c3f61e2c79
Merge pull request #563 from cmorty/etimer_reset_set
...
Add function etimer_reset_set.
2015-08-27 13:08:37 +02:00
Adam Dunkels
2b549f3789
Bugfix: need to explictly drop RPL packets by setting uip_len = 0, otherwise those packets are forwarded, with the wrong link layer address as a sender, causing the mesh to create false routes
2015-08-27 10:28:54 +02:00
Adam Dunkels
9cd84563cb
Send a no-path DAO when becoming feather mode, so that the network can drop routes to us, which are no longer needed
2015-08-27 10:27:56 +02:00
Adam Dunkels
bfb29d2f11
Merge pull request #1116 from cetic/pr-uip-clear-buffer
...
Add uip_clear_buf() macro and replace all instances of uip_len = 0
2015-08-27 10:27:08 +02:00
Moritz 'Morty' Strübe
9b77aac542
Add function etimer_reset_set.
...
This new function is similar to reset, but allows to also set a new
timeout. Thus long-term accuracy with changing timeouts is now possible.
2015-08-25 17:03:44 +02:00
Oliver Schmidt
12fd559244
Fixed DHCP client.
...
RFC2131 states on page 36 regarding DHCPREQUEST: " 'xid' from server DHCPOFFER message "
As the DHCPOFFER message uses the 'xid' from the DHCPDISCOVER message this means that the DHCP client is supposed to re-use the 'xid' from its DHCPDISCOVER for the DHCPREQUEST.
2015-08-25 16:24:37 +02:00
Simon Duquennoy
04106a0d53
ND6: make sure the second parameter of uip_ds6_nbr_add is word-aligned, which is required as the parameter is directly accessed as uip_lladdr_t* (not as a byte array)
2015-08-20 17:06:03 +02:00
Atis Elsts
b75f673801
RDC phase optimization: correct the behavior in case of memory allocation failure
...
phase_wait did not check whether queuebuf_new_from_packetbuf() returns NULL. This potentially causes send_packet to behave incorrectly; the proper packet would not be sent out (because queuebuf_to_packetbuf(NULL) is a no-op). Instead, whatever has been left in the packet buffer by its previous user will be sent out.
2015-08-14 16:37:00 +02:00
Atis Elsts
765ce0c22f
Fix Rime attribute serialization in chameleon-bitopts.c for big endian systems
2015-08-14 16:16:46 +02:00
Nicolas Tsiftes
a410f0cd23
Merge pull request #1179 from pablocorbalan/rpl-nbr-state
...
Changed RPL IPv6 NBR Callback Print Statement
2015-08-06 09:54:20 +02:00
Pablo Corbalán
aa04f8afbf
Changed RPL IPv6 NBR Callback print statement
2015-08-04 19:54:32 +01:00
Simon Duquennoy
dc4de9d001
Merge pull request #1161 from g-oikonomou/contrib/contikimac-sw-ack
...
Implement TX of S/W ACKs with ContikiMAC
2015-08-04 13:15:03 +02:00
Simon Duquennoy
bfba83ed16
galois_mul2 conditional-free implementation
2015-08-03 15:13:00 +02:00
George Oikonomou
cf4e191593
Merge pull request #1172 from tim-ist/tm_fix
...
[multicast] Do not forward every incoming TM ICMP
2015-08-03 10:26:39 +01:00
Timofei Istomin
b9aa88b504
[multicast] Do not forward every incoming TM ICMP
...
The Trickle Multicast ICMP packet handler was not resetting uip_len to zero,
so all incoming TM ICMP packets were forwarded overloading the network.
2015-07-17 20:04:15 +02:00
Arthur Fabre
8739113308
Fix warnings in ContikiMAC
...
../..//core/net/mac/contikimac/contikimac.c:503:11: warning: variable
‘seqno’ set but not used [-Wunused-but-set-variable]
../..//core/net/mac/contikimac/contikimac.c:496:7: warning: variable
‘len’ set but not used [-Wunused-but-set-variable]
Both of these variables are only used if RDC_CONF_HARDWARE_ACK is not
true.
Their definitions and use have been moved into #ifdef guards so they do
not appear if RDC_CONF_HARDWARE_ACK is set.
2015-07-16 13:49:31 +01:00
George Oikonomou
315f6fe535
Implement TX of S/W ACKs with ContikiMAC
2015-07-12 00:07:33 +01:00
George Oikonomou
503a992887
Make ContikiMAC more configurable
...
Allow the project / platform to provide values for CCA_SLEEP_TIME and LISTEN_TIME_AFTER_PACKET_DETECTED.
This is useful for sub-ghz operation.
This has been shamelessly stolen from the [Mountain Sensing project](https://github.com/feshie/contiki )
@heliosfa @kmartinez
2015-07-11 23:55:44 +01:00
Amit Geron
bf3a5de75e
Fix stunicast timer restart
...
Instead of hard coded setting the resend timer to CLOCK_SECOND,
restart it, so that the time between ANY following transmissions will
be as passed to stunicast_send_stubborn.
2015-07-09 12:03:55 +03:00
Amit Geron
b1ef3fdf41
Fix indentation
2015-07-09 12:03:55 +03:00
Simon Duquennoy
3315d3069d
Merge pull request #1108 from phoenix-frozen/generify-ccm-star
...
generalised CCM module into lib
2015-07-01 10:44:41 +02:00
Justin King-Lacroix
30704e5afc
CCM* module now accepts fixed-size 13-byte nonces
...
also adjusted variable naming conventions in CCM* module
to use 'nonce' and 'iv' in line with RFC 3610 terminology
2015-06-29 22:51:00 +02:00
Antonio Lignan
8cc0a12a9f
Merge pull request #1097 from bthebaudeau/cc2538-examples-fix-warnings
...
cc2538: examples: Fix build warnings
2015-06-24 11:39:24 +02:00
tpetry
b3046f1537
remove rime routes in LRU mode if trying to add a new route to full route table
2015-06-19 16:32:19 +02:00
Laurent Deru
c73cd66a92
Change all printf into PRINTA in uip-debug.c; remove compilation warning and move addr check after local variables definition in uip_debug_ipaddr_print
2015-06-18 15:14:46 +02:00
Nicolas Tsiftes
d36e8adbdd
Merge pull request #1123 from cetic/pr-fix-uip-debug-lladdr-print
...
Check pointer in uip_debug_lladdr_print
2015-06-18 14:19:37 +02:00
Laurent Deru
60784b40bd
Check pointer in uip_debug_lladdr_print
2015-06-18 10:56:45 +02:00
Laurent Deru
49700c6a79
Merge pull request #1118 from phoenix-frozen/aes128-const-key
...
made AES-128.set_key's argument const
2015-06-16 10:30:35 +02:00
Justin King-Lacroix
db15647c2b
made AES-128.set_key's argument const
2015-06-15 20:20:07 +01:00
Sumankumar Panchal
db4df30366
Added MSP430X ELFLOADER support to load image with large memory model.
2015-06-15 17:53:18 +05:30
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
Oliver Schmidt
35becbbcb5
Merge remote-tracking branch 'upstream/master'
...
Conflicts:
core/net/ip/uip-nameserver.c
2015-06-14 16:33:23 +02:00
Oliver Schmidt
a0d9f028d6
Made first uip_nameserver_update() parameter const.
...
Both apps/dhcp/dhcp.c:dhcpc_configured() and cpu/6502/ipconfig/ipconfig.c:dhcpc_configured() presume the first parameter of uip_nameserver_update() to be const. As there's no reason for it to be not const just make it const.
2015-06-14 16:27:39 +02:00
Oliver Schmidt
adc744ef30
Avoid compiler warning because of unused variable. (reverted from commit a9c6d59da3
)
2015-06-14 15:24:38 +02:00
Justin King-Lacroix
3ce8f26eea
generalised CCM module into lib
...
introduced convenience functions for LLSEC modules
2015-06-10 18:07:41 +01:00
Benoît Thébaudeau
66acf74612
cc2538: examples: Fix build warnings
...
Toolchain used:
arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.9.3 20150303
(release) [ARM/embedded-4_9-branch revision 221220]
Signed-off-by: Benoît Thébaudeau <benoit.thebaudeau.dev@gmail.com>
2015-06-02 01:38:11 +02:00
rajithr
08503a20be
Protection against possible buffer overflow
2015-05-27 19:06:19 +05:30