1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
Commit Graph

198 Commits

Author SHA1 Message Date
Martine Lenders
281b0ba46e Merge pull request #4343 from kb2ma/misc/fix-checksum
Fix UDP/ICMPv6 checksum for a sliced/accumulated payload.
2015-12-03 13:16:12 +01:00
Ken Bannister
835a2d8a27 Add inet_csum_slice() to fix checksum for a sliced layer 4 payload
Padding for an odd number of bytes was not calculated properly.
2015-12-02 05:53:52 -05:00
Kévin Roussel
be49059c65 Add NETOPT_CCA_THRESHOLD option to the 'netopt_t' list 2015-11-30 13:07:00 +01:00
Joakim Nohlgård
7635d3e94d netopt: Add support for IEEE 802.15.4 channel page option 2015-10-30 09:59:53 +01:00
Martine Lenders
97aa4da198 net_help: remove net_help module
Its functionality is now divided up into several helper modules that are
already used through-out RIOT.
2015-09-17 13:32:39 +02:00
Martine Lenders
08a3f0baf5 posix: net_help: move inet_pton/inet_ntop completely to POSIX 2015-09-17 02:36:08 +02:00
78b4bf6f58 sys: net: gnrc: add basic netdev2 support 2015-09-04 15:39:04 +02:00
daniel-k
6f705a5189 at86rf2xx: implement CSMA settings 2015-09-01 18:45:47 +02:00
Oleg Hahm
4dbd491097 netopt: introduced link type (wired or wireless) 2015-09-01 11:32:16 +02:00
d18cb7a9c3 sys: add netopt to string map function and netopt module 2015-08-21 11:03:56 +02:00
Martine Lenders
58ff31bfe9 gnrc: make all gnrc modules sub-modules of gnrc 2015-08-18 23:00:07 +02:00
Martine Lenders
93031c9b60 sixlowpan: move non-GNRC stuff to its own module 2015-08-18 17:03:47 +02:00
Martine Lenders
87c222d2fa Merge pull request #3595 from authmillenon/gnrc/api/mv
gnrc: rename ng_netbase to gnrc
2015-08-18 16:59:34 +02:00
Martine Lenders
b969eeb217 gnrc: rename ng_netbase to gnrc 2015-08-18 16:11:55 +02:00
Oleg Hahm
86a6b8a552 pktbuf: check NULL pointer before merging snips 2015-08-18 16:08:09 +02:00
Oleg Hahm
85fe445db8 pktbuf: assert for potential null pointer
In practice, this should not happen, since `_first_unused` should be
already set, if `_too_small_hole()` returns true.
2015-08-18 16:06:47 +02:00
Martine Lenders
56817ba015 Merge pull request #3596 from authmillenon/udp/api/disintangle
udp: put UDP header in its own module
2015-08-17 16:00:06 +02:00
Oleg Hahm
bc3aba24a4 Merge pull request #3594 from authmillenon/ipv6/api/disentengle-hdr-ext
ipv6: move non-GNRC types and functions in their own module
2015-08-17 13:11:51 +02:00
Martine Lenders
bce1cf618d Merge pull request #3586 from daniel-k/fix/pktbuf_release_check_contains
ng_pktbuf_static: check if pkt is in buffer before derefencing in ng_pktbuf_release
2015-08-17 10:22:44 +02:00
Martine Lenders
4f650b31f9 ipv6: move non-GNRC types and functions in their own modules 2015-08-14 17:18:35 +02:00
Hauke Petersen
e6a9549d16 Merge pull request #3213 from haukepetersen/add_pktbuf_iovecexport
net/ng_pktbuf: added IOVEC export function
2015-08-12 19:46:01 +02:00
daniel-k
420d5e48ca ng_pktbuf_static: check if pkt is in buffer before derefencing in ng_pktbuf_release 2015-08-11 23:40:04 +02:00
Martine Lenders
203561e741 ipv6_addr: remove ng_ prefix 2015-08-11 13:27:07 +02:00
Hauke Petersen
219fd0641f net/ng_pktbuf: added IOVEC export function 2015-08-10 10:37:55 +02:00
Martine Lenders
a5e039cf4d udp: put UDP header in its own module 2015-08-10 03:18:09 +02:00
Martine Lenders
5c03268516 inet_csum: remove ng_ prefix 2015-08-07 16:59:13 +02:00
Hauke Petersen
38956457a1 sys: adapted to renamed netopt header 2015-08-06 15:37:11 +02:00
Martine Lenders
4d5d65a718 Merge pull request #3534 from cgundogan/pr/ng_pktbuf_static/minor_style_fix
ng_pktbuf_static: remove unnecessary parens
2015-07-31 19:45:07 +02:00
Cenk Gündoğan
aec0a703c6 ng_pktbuf_static: remove unnecessary parens 2015-07-31 19:14:49 +02:00
Cenk Gündoğan
b475bfd8f0 ng_pktbuf_static: enhance _pktbuf_contains 2015-07-31 18:44:39 +02:00
Martine Lenders
3d9945667f Merge pull request #3496 from authmillenon/ng_pktbuf/enh/new_default
ng_pktbuf: new default packet buffer implementation
2015-07-29 02:08:46 +02:00
Martine Lenders
377f5ccbee gnrc: replace ng_pktbuf_add() with ng_pktbuf_mark() where it's needed 2015-07-29 00:47:30 +02:00
Martine Lenders
9e823076f4 ng_pktbuf: new default packet buffer implementation 2015-07-29 00:47:30 +02:00
Hauke Petersen
bce198ebf8 net: removed deprecated non-gnrc netapi 2015-07-28 23:10:21 +02:00
Oleg Hahm
03b7c7349a Merge pull request #3457 from authmillenon/gnrc/api/rename-netconf
gnrc: rename ng_netconf to ng_netopt
2015-07-28 18:21:09 +02:00
Martine Lenders
de7dc143b7 ng_netapi: piggy-back cppcheck catch 2015-07-28 13:33:24 +02:00
Martine Lenders
6f56b983f0 gnrc: replace all instances of ng_netconf with ng_netopt 2015-07-28 13:33:12 +02:00
Martine Lenders
3a47459ca0 ng_pktbuf: provide more detailed information in packet buffer stats 2015-07-22 23:20:23 +02:00
Martine Lenders
16e10b46cf ng_pktbuf: handle size == pkt->size case for ng_pktbuf_add() 2015-07-13 20:18:56 +02:00
Martine Lenders
d1b34aec35 ng_pktbuf: fix possible packet corruption in case of internal error
Fixes #3365
2015-07-11 12:21:40 +02:00
Martine Lenders
a04becb4f8 ng_pktbuf: fix debug output for _pktbuf_add_unsafe 2015-07-09 12:31:58 +02:00
Peter Kietzmann
c3814a7127 Merge pull request #3316 from authmillenon/ng_pktbuf/fix/align
ng_pktbuf: fix alignment overwrite issue
2015-07-08 10:49:26 +02:00
Martine Lenders
3b133811d6 ng_pktbuf: fix alignment overwrite issue
Currently it can happen if there is a spot of size `n` free that a chunk
of size `n + 1` is inserted, if `n` is devisable by the word length of
the platform. This patch fixes this issue.
2015-07-07 17:02:23 +02:00
Joakim Gebart
767d3eb4df sys/net/crosslayer/ng_netif/hdr/ng_netif_hdr_print.c: Add missing inttypes.h include 2015-07-07 09:47:26 +02:00
Martine Lenders
75ff56a21f Merge pull request #3247 from authmillenon/ng_nettest/fix/bugfixes
ng_nettest: some fixes
2015-07-02 14:29:28 +02:00
Martine Lenders
74eac9b144 ng_nettest: change function prototypes to allow for exp_pkts == 0 2015-07-02 13:35:00 +02:00
Martine Lenders
871a6f9cde ng_nettest: some fixes 2015-07-02 13:35:00 +02:00
Martine Lenders
ad6c02b349 ng_inet_csum: fix double-wrap around of carry 2015-07-02 12:06:31 +02:00
Martine Lenders
6687bbaea6 ng_inet_csum: add debug output 2015-07-01 18:25:40 +02:00
Martine Lenders
59f62e5366 ng_netapi: centralize packet dispatchment for RCV and SND 2015-07-01 12:38:59 +02:00
Oleg Hahm
b85f076027 Merge pull request #3098 from authmillenon/ng_nettest/feat/initial
ng_nettest: initial import of a ng_netapi test framework
2015-06-23 17:02:11 +02:00
Martine Lenders
f28c5041eb ng_nettest: initial import of a ng_netapi test framework 2015-06-23 15:22:55 +02:00
6b2774640e sys: net: ng_pktdump: add missing errno.h
file misses "ENOTSUP" otherwise
2015-06-18 13:28:39 +02:00
René Kijewski
98aec32f6b ng_netif: more formats for ng_netif_addr_from_str 2015-06-13 13:38:11 +02:00
René Kijewski
7d3d8dee21 ng_netif: make const what is const 2015-06-12 21:53:59 +02:00
René Kijewski
5eed801072 ng_netif: non-destructive ng_netif_addr_from_str 2015-06-12 21:53:59 +02:00
Martine Lenders
46a0fe6cdd pktdump: add 6LoWPAN dump 2015-06-05 16:14:56 +02:00
Hauke Petersen
3967f48852 net/ng_pktdump: added printing of udp header 2015-06-05 09:47:53 +02:00
Martine Lenders
aa3452063d Merge pull request #3089 from authmillenon/pktbuf/enh/debug-output
ng_pktbuf: add DEBUG output
2015-06-02 21:20:14 +02:00
Martine Lenders
c6af1b2c21 Merge pull request #3092 from authmillenon/ng_pktbuf/fix/some-fixes
ng_pktbuf: Some fixes
2015-06-02 18:32:57 +02:00
Martine Lenders
76f80939f5 ng_pktbuf: add DEBUG output 2015-06-02 17:33:41 +02:00
Cenk Gündoğan
16cdeb8759 ng_netif: clear out buffer before creating output 2015-05-28 20:05:16 +02:00
Martine Lenders
1168544e6b ng_pktbuf: don't use atomic_dec() 2015-05-27 15:37:31 +02:00
Martine Lenders
9cea4b6618 ng_pktbuf: only duplicate header 2015-05-27 15:37:14 +02:00
Oleg Hahm
e857ca7f51 Merge pull request #2933 from gebart/pr/atomic-set-return-deprecated
core: remove atomic_set_return
2015-05-27 12:33:39 +02:00
Joakim Gebart
6821350835 ng_pktbuf: Use atomic_dec instead of atomic_set_return 2015-05-26 21:23:49 +02:00
Lotte Steenbrink
e203eae8c6 ng_netif: don't shift entries upon remove 2015-05-26 10:33:09 -07:00
Martine Lenders
350b040d72 ng_netif: adapt ng_netif_get for holey lists 2015-05-25 22:02:44 +02:00
Lotte Steenbrink
487064e51a ng_netif: don't add duplicates
prevent ng_netif_add() from adding duplicates as described in https://github.com/RIOT-OS/RIOT/issues/2965
2015-05-19 08:56:11 -07:00
Joakim Gebart
13832d8e62 everything: Remove filename from @file Doxygen command 2015-05-22 07:34:41 +02:00
Martine Lenders
ec61db5234 netif_hdr: print 0-length L2 addresses correctly 2015-05-08 19:08:21 +02:00
Oleg Hahm
d1bfa2f2ff Merge pull request #2555 from authmillenon/ng_icmpv6/feat/initial
ng_icmpv6: Initial import
2015-05-01 11:37:42 +02:00
Martine Lenders
591ef1826f ng_icmpv6: Initial import 2015-05-01 08:29:01 +02:00
Martine Lenders
cba4e5b8f1 pktdump: fix printf formatting
%zu would be the correct format string for `size_t`, but with nano-specs
this is not outputted.
2015-04-28 21:16:47 +02:00
Martine Lenders
067a3498c5 netif_hdr: add print function 2015-04-28 21:16:47 +02:00
Martine Lenders
32e27c3ff3 ipv6_hdr: add print function 2015-04-28 21:16:47 +02:00
haukepetersen
e66e1dcfbe net/ng_netreg: added include of ng_udp.h 2015-04-26 21:53:07 +02:00
Martine Lenders
3e9db4371f ipv6_addr: rename ng_ipv6_hdr_is_ipv6_hdr() to something less silly 2015-04-23 02:26:48 +02:00
Sebastian Sontberg
b228e1a936 pktdump: fix formatting of snip dumps 2015-04-19 16:48:25 +02:00
Sebastian Sontberg
a8c55ff844 pktdump: fix mishap in ip version header dump 2015-04-19 15:16:45 +02:00
Martine Lenders
480924afc0 Merge pull request #2741 from authmillenon/pktdump/feat/dump-ipv6
pktdump: add IPv6 header dump
2015-04-16 15:46:40 +02:00
Martine Lenders
798b9c782a Merge pull request #2816 from authmillenon/pktdump/fix/reply-to-getset
pktdump: reply to netapi get/set
2015-04-16 15:44:07 +02:00
Martine Lenders
62c8d6ba8f Merge pull request #2697 from authmillenon/pktdump/feat/snip-dump
pktdump: dump data of packet snips structured
2015-04-16 15:38:34 +02:00
Martine Lenders
cc95939050 pktdump: reply to netapi get/set
Since some layers need to get options from their neighboring layers the
previous behavior is potentially stack breaking when testing with this
module since no reply is given to this requests, reply blocking the
requesting thread in the process.
2015-04-14 17:09:16 +02:00
Martine Lenders
526d9d7ead pktdump: add IPv6 header dump 2015-04-14 14:21:45 +02:00
Martine Lenders
f34df829dc pktdump: dump data of packet snips structured 2015-04-14 14:20:33 +02:00
Martine Lenders
dde61699f0 netreg: ignore payload on default case in header build 2015-04-14 10:43:03 +02:00
Peter Kietzmann
821cf81608 Merge pull request #2773 from kaspar030/make_pktdump_internals_static
sys: net: ng_pktdump: mark internal functions as static
2015-04-10 13:15:25 +02:00
Martine Lenders
687947d3db Merge pull request #2730 from authmillenon/inet_csum/feat/initial
inet_csum: initial import of Internet Checksum module
2015-04-10 07:24:58 +02:00
Lotte Steenbrink
e130b6929c Merge pull request #2553 from authmillenon/net/feat/hdr-csum
ng_net: introduce checksum calculation
2015-04-10 02:01:10 +02:00
f63109486b sys: net: ng_pktdump: mark static functions as static 2015-04-09 18:11:52 +02:00
haukepetersen
27d1f113a2 net/ng_pktdump: added CREATE_STACKTEST flag 2015-04-02 14:45:34 -07:00
Lotte Steenbrink
40acfa732b Merge pull request #2705 from authmillenon/netif/feat/addr-str
netif: add functions to parse and output hardware addresses
2015-04-02 01:04:33 +02:00
Martine Lenders
882bcbe92e netif: add functions to parse and output hardware addresses 2015-04-01 16:24:19 +02:00
Peter Kietzmann
f725282565 Merge pull request #2738 from authmillenon/netreg/fix/warning
netreg: suppress unused parameter warning
2015-03-30 09:12:30 +02:00
Martine Lenders
476dd297bd Merge pull request #2719 from haukepetersen/ng_opt_pktdump
net/ng_pktdump: manage stack internal and use msg queue
2015-03-30 02:43:43 +02:00
Martine Lenders
716a1bb0f5 netreg: suppress unused parameter warning 2015-03-29 23:51:54 +02:00
Martine Lenders
4571fe2f8d netreg: add multiplexer for checksum calculation 2015-03-29 14:55:11 +02:00
Martine Lenders
fa689fe147 Merge pull request #2575 from authmillenon/ng_net/feat/hdr-build
ng_net: header building facilities
2015-03-29 14:28:49 +02:00
Martine Lenders
69c593b80b netreg: add multiplexer for header building 2015-03-28 18:28:04 +01:00