Commit Graph

3089 Commits (2ca22f57914c5ef1713ad0d15c764d8e70ed938e)
 

Author SHA1 Message Date
René Kijewski 2ca22f5791 Merge pull request #1328 from haukepetersen/fix_test_ipcpingpong
tests: fixed Makefile for test_ipc_pingpong
9 years ago
Hauke Petersen ece3f867b2 tests: fixed Makefile for test_ipc_pingpong 9 years ago
Ludwig Ortmann 564f980cf4 Merge pull request #1306 from Kijewski/issue-19
core: remove unnecessary tests in sched.c
9 years ago
Oleg Hahm dd5ac24091 Merge pull request #1327 from haukepetersen/fix_cortexm3_crash
cpu - cortex-m3: moved crash.c to cortex-m3_common
9 years ago
Hauke Petersen 407e36ec5f cpu - cortex-m3: moved crash.c to cortex-m3_common 9 years ago
Christian Mehlis 80ecdaca17 Merge pull request #1322 from Kijewski/native-pipe-and-close
native: use `real_pipe()` and `read_close()`
9 years ago
Thomas Eichinger 8637fe107e Merge pull request #975 from Kijewski/issue-974
core: change in bitarithm implementation
9 years ago
Oleg Hahm 810b8d4479 Merge pull request #1210 from benpicco/fix_oonf_msba2
pkg/oonf_api: fix conflicting types on msba2
9 years ago
Ludwig Ortmann 0512d2fb5c Merge pull request #1181 from LudwigOrtmann/licenses
license checker
9 years ago
Ludwig Ortmann 289b63c06f dist/tools: add license checker
Creates file structure that maps files to licenses by grepping for
license patterns (patterns for licenses found in RIOT included).
Sets exit code to 1 if an unknown license header is detected.
9 years ago
Christian Mehlis 997dcd7e88 Merge pull request #1302 from cgundogan/fix_tcp_header_data_offset
destiny: using a bit field for tcp_header->data_offset is more convenient
9 years ago
René Kijewski 2e9a1773e9 native: use `real_pipe()` and `read_close()` 9 years ago
René Kijewski a2872cd8da Merge pull request #1303 from Kijewski/mbed_lpc1768-fix-result-paths
make: remove local definitions for ELFFILE and HEXFILE (was: "mbed_lpc1768: fix ELF and HEX paths")
9 years ago
René Kijewski 1608fd1570 make: remove local definitions of (ELF|HEX)FILE
We have sane defaults for `ELFFILE` and `HEXFILE` in the root
`Makefile.include`. The local definition for `ELFFILE` of mbed_lpc1768's
`Makefile.include` was wrong, which caused e.g. `make buildsize` to
fail.
9 years ago
Christian Mehlis 50a07d9874 Merge pull request #1280 from cgundogan/fix_send_tcp_error_check
destiny: fixed condition for error handling of send_tcp in destiny_socket_send
9 years ago
Thomas Eichinger b4fceaca89 Merge pull request #1313 from thomaseichinger/cortexm_crash
cpu:cortex_common: add core_panic function
9 years ago
Thomas Eichinger 3639ae9b25 cpu:cortex_common: add core_panic function 9 years ago
Oleg Hahm bef04d9f75 Merge pull request #1312 from mehlis/pnet-unused-param
pnet: silence unused argument warnings
9 years ago
Hauke Petersen 186bf386a8 Merge pull request #1295 from haukepetersen/mv_cpu_cortexm-common
cpu: renamed cortexm_common->cortex-m3_common and cleanup
9 years ago
Christian Mehlis 2350809536 pnet: silence unused argument warnings 9 years ago
Hauke Petersen ebb496cc26 cpu: renamed cortexm_common->cortex-m3_common and cleanup 9 years ago
René Kijewski 3c5f8b0f9e Merge pull request #1308 from N8Fear/fix-typo-and-whitespaces
core/include/arch/irq_arch.h: fix typo and trailing whitespaces
9 years ago
Hinnerk van Bruinehsen 6da0c31265 core/include/arch/irq_arch.h: fix typo and trailing whitespaces 9 years ago
René Kijewski a21c3f45bc core: remove unnecessary tests in sched.c
The scheduling gets activated by `kernel_init()` calling
`cpu_switch_context_exit()`. Before this `sched_run()` won't be called.
When it gets called, at least the main thread and the idle thread are
spawned. The idle thread won't die / get killed. So there always is at
least one thread in `runqueue_bitcache`.

Closes #19.
9 years ago
René Kijewski ce428a8937 Merge pull request #1292 from Kijewski/issue-1288
core/cortex-m: add missing NORETURNs to thread_arch
9 years ago
Oleg Hahm f6cd96b023 Merge pull request #1300 from cgundogan/fix_wrong_byte_order_ipv6_length
destiny: change byte order of ipv6_header->length
9 years ago
Oleg Hahm 9652c24b71 Merge pull request #1275 from cgundogan/fix_tcp_flags_for_wireshark
destiny: wireshark compliant tcp flags
9 years ago
Cenk Gündoğan ecf47b1f48 destiny: using a bit field for tcp_header->data_offset is more convenient
In the current implementation the data offset is coded into an uint8_t.
Of this uint8_t only 3 bits apply for the data offset.
The remaining bits represent reserved flags for future use.
However, a proper bit masking is forgotten in order
to obtain the data offset part of this uint8_t.

Therefore, defining this uint8_t as a bit field allows a more convenient
method of access.
9 years ago
Cenk Gündoğan 97da23051a destiny: change byte order of ipv6_header->length
When accessing the length field of an ipv6_header a byte order switch (host -> network) is necessary.
Otherwise, it breaks calculations or the checksum and other tcp related computations.
Furthermore, when writing to ipv6_header->length it is important to switch this
from host byte order to network byte order.
9 years ago
Ludwig Ortmann 4cdd9a246b Merge pull request #1192 from LudwigOrtmann/native_override_pid
native: add id option
9 years ago
Ludwig Ortmann dbc36fc2c5 native: add id option 9 years ago
Ludwig Ortmann 33f1e11d41 Merge pull request #1274 from sgso/wireshark_dissector
wireshark: fix dissector plugin and expand documentation
9 years ago
René Kijewski b6dc5c9b76 core/cortex-m: add missing NORETURNs to thread_arch 9 years ago
René Kijewski ed7e233876 core: faster bitarithm_msb 9 years ago
René Kijewski be1e6d1616 Add bitarithm measuring 9 years ago
René Kijewski 9775a3d199 Add test_ipc_pingpong 9 years ago
René Kijewski f3bbec633b unittests: core: add test_bitarithm_[ml]sb_all 9 years ago
Cenk Gündoğan 7584ffe887 destiny: fixed condition for error handling
send_tcp returns either the length of the sent data,
or -1, if an error was detected.

The current implementation checks for != 1.
This results in executing the error case, although
there was semantically no error returned from send_tcp.
9 years ago
Cenk Gündoğan 43b7a393b1 destiny: wireshark compliant tcp flags
This enum is also used to set the tcp flags within a tcp header.
With the current values in this enum, wireshark is not able to
recognize the tcp segments as their actual tcp type,
and thus odd messages in wireshark appear.

destiny: reusing tcp flags for combinations
9 years ago
Sebastian Sontberg 06433426cf wireshark: fix dissector plugin and expand documentation
The wireshark dissector plugin currently fails with a "Lua Error" when
trying to parse nativenet packets. This patch restores working behaviour
by commenting the offending line introduced in 1258675, which intention
was to account for padding in small packets. It further adds a comment
on how to edit the plugin for the case padding information is required.

The README.md now contains a usage note for configuration on fedora
which might also be helpful for users of other distributions.
9 years ago
Thomas Eichinger 87f0977c21 Merge pull request #1272 from OlegHahm/sched_pidlist_fix
core: fix variable name for sched_pidlist
9 years ago
Oleg Hahm c679a051d9 core: fix variable name for sched_pidlist 9 years ago
Oleg Hahm 47e5c9055c Merge pull request #1269 from cgundogan/fix_get_waiting_connection_socket_null_check
destiny: segfault due to dereferencing nullpointer
9 years ago
Cenk Gündoğan f41fe7bb04 destiny: segfault due to dereferencing nullpointer
get_socket(i) returns NULL, when no specific socket is found.
Without an appropriate check for NULL, the current state
of the code leads to a segfault.

destiny: added parens

destiny: continuing the loop makes more sense than returning at first sight of NULL
9 years ago
René Kijewski aab2311205 Merge pull request #1248 from thomaseichinger/debug_h_doc_fix
core:debug: documentation for `DEBUG_PRINT` was confusing and wrong
9 years ago
René Kijewski d0d935f996 Merge pull request #1250 from Kijewski/x86-osx-fix-download
x86: fix download script for OSX
9 years ago
René Kijewski ee02a0f654 x86: fix download script for OSX
Mac OSX does not have `wget`, but `curl`.
It does not understand `tar xJ`, but `tar xj`.
9 years ago
Martine Lenders e84cdd67b7 Merge pull request #1238 from authmillenon/makefile-unittests
unittests: Force execution of $(UNITTEST_LIBS) build target
9 years ago
Ludwig Ortmann cf555c4ebd Merge pull request #1214 from LudwigOrtmann/issue-1045
native: unix socket path enhancement
9 years ago
Ludwig Ortmann 1e5e19bc23 native: set optional path with unix socket option
fixes #1045
9 years ago