Oleg Hahm
be1fde1557
Merge pull request #837 from authmillenon/auto-init-addresses
...
auto_init: Initialize link-layer addresses from CPU ID
2014-09-30 15:29:50 +02:00
Martine Lenders
a5a7008f3f
auto_init: Put net_if auto-initialization into its own function
2014-09-30 14:32:29 +02:00
Martin Lenders
30c92efa43
Initialize addresses from CPU ID
2014-09-30 14:32:29 +02:00
René Kijewski
5f262be568
Merge pull request #1653 from medicalwei/shell_backspace
...
Add backspace functionality in shell
2014-09-29 21:21:41 +02:00
Oleg Hahm
762e9492a6
Merge pull request #1528 from OlegHahm/silent_rpl
...
rpl: mute RPL
2014-09-29 10:56:10 +02:00
René Kijewski
d4f144eb47
Add license statement to {msp430_types,net_help}.h
2014-09-25 10:14:58 +02:00
Yao Wei
b5d3c65672
Add 0x7f as backspace key in shell
2014-09-24 15:40:21 +08:00
Hinnerk van Bruinehsen
567ebf987f
lint: limit maximum length of input via scanf
2014-09-19 23:31:26 +02:00
Christian Mehlis
88ae531ef9
Merge pull request #1679 from cgundogan/bloom_t_as_typedef
...
sys: use typedef for `struct bloom_t`
2014-09-19 13:18:39 +02:00
Ludwig Ortmann
289c4c0ee4
doc: add license headers to some .h files
2014-09-18 17:45:11 +02:00
Cenk Gündoğan
0a4ea07daa
sys: use typedef for struct bloom_t
...
`bloom_t` is defined as a struct.
`_t` can mislead the user to think of bloom_t
as a typedef (see our coding conventions) instead of a struct.
Thus, I modified `struct bloom_t` to be a *typedefed* struct.
Another solution would be to rename bloom_t to sth. like bloom_s
everywhere and use `struct bloom_s` instead of `bloom_t`.
2014-09-17 19:54:40 +02:00
Hinnerk van Bruinehsen
2faf813793
board/sys: move bounds check before array access
2014-09-14 01:56:11 +02:00
Hinnerk van Bruinehsen
eb9ab083bc
sys: remove break after return
2014-09-13 23:47:41 +02:00
Hinnerk van Bruinehsen
57b998e4a1
cpu/examples/sys/drivers: reduce scope of variables
2014-09-13 19:03:40 +02:00
René Kijewski
0cc699c0ce
lint: reduce scope
...
Fix some lint warnings of kind
```
style (variableScope): The scope of the variable '…' can be reduced
```
2014-09-12 11:50:12 +02:00
Oleg Hahm
218635027c
Merge pull request #1508 from cgundogan/transport_layer_refactoring
...
transport_layer: Splitting UDP and TCP
2014-09-11 20:49:34 +02:00
Cenk Gündoğan
710c7e6cf6
transport_layer: Splitting UDP and TCP
...
Currently, the tcp and udp implementations are bound to each other in a
module called *destiny*. Thus, when using only one of them then the
other one gets also compiled into the binary and initialized,
which results in unnecessary RAM usage and workload for the CPU.
The approach in this PR defines a common module named *socket_base*,
which contains functions used by the posix layer. Compiled by it's own,
those functions return negative error codes, to symbolize upper layers
that they are not supported. When also including the modules *udp* or
*tcp* respectively, functions from *socket_base* get overwritten with the
correct functionality.
Defining *udp* or *tcp* in a Makefile also includes *socket_base*.
Defining *pnet* in a Makefile also includes *socket_base*.
2014-09-11 20:07:46 +02:00
Oleg Hahm
70ec73b038
Merge pull request #1561 from BytesGalore/fix_fd_parameter_warnings
...
sys/posix: changed parameters for `fd` from `kernel_pid_t` to `int`
2014-09-11 15:37:04 +02:00
Yao Wei
208f889a4a
add backspace functionality in shell
2014-09-11 21:27:20 +08:00
Oleg Hahm
46d5947044
rpl: mute RPL
...
Removes all but one occurrence of printf and puts within routing (the
remaining puts is called from a debug function.
2014-09-10 18:04:17 +02:00
Oleg Hahm
c924075722
sixlowpan: documented internal is_our_address()
2014-09-10 14:37:43 +02:00
Oleg Hahm
11254577eb
sixlowpan: ignore incoming packets if unconfigured
...
If there's no IPv6 address configured so far to any interface, 6lowpan
should not try to handle incoming packets. This can easily lead to
looping packets.
2014-09-10 14:37:43 +02:00
René Kijewski
76212cf594
vtimer: no needless type casting
...
Compare https://github.com/RIOT-OS/RIOT/pull/1639#issuecomment-54713048
and following discussion.
2014-09-07 22:06:05 +02:00
54d7e5f748
sys: vtimer: add license header
2014-09-03 14:18:11 +02:00
Martine Lenders
752fe547ca
Merge pull request #1624 from LudwigOrtmann/headacheheaders
...
doc: fix more license headers
2014-08-28 12:34:55 +02:00
Ludwig Ortmann
457be31b6f
Merge pull request #1616 from krf/fix-warnings
...
Fix comment
2014-08-27 19:38:27 +02:00
Ludwig Ortmann
2439bd839c
doc: fix more license headers
...
Remove some cruft, set correct lgpl versions, update to lgpl where
this had been overlooked in the past, fix odd comment style...
2014-08-27 19:20:49 +02:00
Hinnerk van Bruinehsen
c4a26a6acf
sys: inet_pton: conditional include for atmega2560
...
include sys/types.h conditionally for atmega2560
Without this change test/unittests fails to build due to a missing
declaration of ssize_t
2014-08-27 17:48:39 +02:00
Hinnerk van Bruinehsen
4ca3a49a5d
tests: blacklist failing test on arduino-mega2560
2014-08-27 17:47:24 +02:00
Kevin Funk
554e431746
Fix comments
2014-08-27 11:36:36 +02:00
Ludwig Ortmann
58a41d2ff2
sys/cbor: set isdst to undefined after strptime
...
CBOR does not specify the daylight saving time adjustment.
2014-08-27 10:25:22 +02:00
Ludwig Ortmann
b7992922ce
fix license headers in non-.c files
2014-08-23 16:16:26 +02:00
Oleg Hahm
73965f984e
transceiver: fix check for existence
...
The transceiver check if it is already running when initializing.
However, this check was done by comparing its pid for >= 0, which is not
sensible anymore since valid PIDs only start at 1.
2014-08-22 18:34:42 +02:00
Oleg Hahm
32b88ee2fa
Merge pull request #1521 from OlegHahm/ccnl_fixes
...
ccn: minor fixes
2014-08-22 02:13:19 +02:00
Oleg Hahm
cf536c8f5c
mc1322x: some fixes in transceiver and ccnl
2014-08-22 02:12:48 +02:00
Oleg Hahm
19377261ac
ccnl: disable debug and fix warnings
2014-08-22 02:12:48 +02:00
Oleg Hahm
28df5691d3
Merge pull request #1554 from OlegHahm/rpl_udp_cleanup
...
examples: rpl_udp cleanup
2014-08-22 01:32:21 +02:00
003dd1969c
Merge pull request #1566 from Kijewski/undef_is_null
...
core: let PIDs begin with 1
2014-08-22 00:43:04 +02:00
Oleg Hahm
6973ee2f81
ccnl: use correct packet type
2014-08-22 00:41:23 +02:00
Oleg Hahm
400fb29a6b
licenses: updated some missing licenses in headers
2014-08-21 23:52:42 +02:00
Oleg Hahm
e879e2aba2
fix low-level sending destination address
2014-08-21 21:34:45 +02:00
Oleg Hahm
8b34d323e2
rpl: moved headers to sys/net/include
2014-08-21 21:34:45 +02:00
c1ce7b7ba5
Merge pull request #1572 from Kijewski/issue-1564
...
sys: remove lib/hashtable.c
2014-08-21 20:32:31 +02:00
René Kijewski
2cb4166c3e
all over the place: use sched_active_pid
...
In many places we needlessly use `sched_active_thread->pid` whilst we
already have `sched_active_pid` with the same value, and one less
indirection.
`thread_getpid()` is made `static inline` so that there is no penalty in
using this function over accessing `sched_active_pid` directly.
2014-08-17 21:04:25 +02:00
René Kijewski
b31e5a8675
core: introduce KERNEL_PID_FIRST and KERNEL_PID_LAST
2014-08-17 19:50:34 +02:00
René Kijewski
89a26b7331
Merge pull request #1562 from Kijewski/the-first-two-commits-of-the-branch-issue-198
...
posix: minor pthread_barrier clean up
2014-08-15 14:44:54 +02:00
René Kijewski
d1d8fb2b68
sys: remove lib/hashtable.c
...
Quoting myself:
> The code of sys/lib/hashtable.c is very badly adapted for embedded
> systems. The used primes are huge, and the limit is entirely
> unrealistic. Why do we ship this file?
In #1564 we came to the conclusion that we don't need this code.
Closes #1564 .
2014-08-13 21:21:39 +02:00
Martine Lenders
4a2450b464
Merge pull request #1522 from OlegHahm/crypto_cleanup
...
crypto: get rid of compiler warnings
2014-08-12 02:18:25 +02:00
René Kijewski
f3fcc1d5dd
pthread: pthread_barrier should call yield
2014-08-11 16:22:38 +02:00
Martin Landsmann
28f4e510ad
changed parameters form kernel_pid_t
to int
2014-08-11 13:10:12 +02:00