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

197 Commits

Author SHA1 Message Date
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
Martine Lenders
903a9d54ce inet_csum: initial import of Internet Checksum module 2015-03-28 14:02:59 +01:00
Hauke Petersen
4ccc3634b3 net/ng_pktdump: manage stack internally 2015-03-28 13:47:03 +01:00
Hauke Petersen
96efe23027 net/ng_pktdump: added message queue 2015-03-28 13:36:43 +01:00
Hauke Petersen
227ff36e82 net/ng_pktdump: fixed memory leak 2015-03-24 22:14:16 +01:00
Hauke Petersen
5f77bbe1c8 Merge pull request #2563 from authmillenon/ng_pktbuf/fix/semantics
ng_pktbuf: change semantics for received packets
2015-03-24 16:49:49 +01:00
Martine Lenders
db8cbc7afa Merge pull request #2662 from authmillenon/ng_nomac/fix/receive
ng_nomac: fix receive
2015-03-24 01:15:15 +01:00
Martine Lenders
326a402148 ng_netapi: introduce ng_netapi_receive() 2015-03-23 16:53:15 +01:00
Hauke Petersen
497a3da9e3 net: added ng_pktdump module 2015-03-23 15:25:30 +01:00
Martine Lenders
21204dc3eb ng_pktbuf: change semantics for received packets 2015-03-23 15:08:46 +01:00
kushalsingh007
b180e80ee3 CppCheck: Removing memleak warning
- Changing the name of variable 'new' solved the problem.
2015-03-21 02:34:10 +05:30
Martine Lenders
6a31fa80a7 Merge pull request #2568 from authmillenon/ng_netreg/feat/allow_nettype_undef
ng_netreg: Allow registration of NG_NETTYPE_UNDEF
2015-03-20 17:06:37 +01:00
Martine Lenders
09b1abcb4e ng_netreg: Allow registration of NG_NETTYPE_UNDEF 2015-03-20 11:00:32 +01:00
Martine Lenders
7027519f28 ng_ipv6: provide support for ng_netif 2015-03-19 15:13:17 +01:00
Hauke Petersen
ed65ced885 net: re-ordered includes in ng_netreg + ng_pktbuf 2015-03-18 15:27:23 +01:00
Martine Lenders
49e5938eb5 ng_netif: cleanup array after remove 2015-03-16 16:25:25 +01:00
Lotte Steenbrink
1793eb7ec8 Merge pull request #2450 from authmillenon/netreg/api/pointer-based
RFC: netreg: move to pointer-based API
2015-03-04 15:33:15 +01:00
Martine Lenders
ec5f686cd0 netreg: move to pointer-based API
Moving to a pointer-based API simplifies a lot, since there is no need
for an internal pool of entries anymore. Therefore, a lot of
organizational overhead and some restrictions (e.g. an upper limit on
entries) are dropped.

The entries can be stored in the stack of the respective thread.
2015-03-04 13:17:00 +01:00
haukepetersen
b6ca321270 net/ng_pktbuf: added missing #inlcude <stdio.h> 2015-03-03 22:12:16 +01:00
Hauke Petersen
45ce082ad6 net/ng_netapi: fixed implementation
- renamed opt variable in _get_set
- fixed msg type MACRO names
2015-03-02 18:44:33 +01:00
Martine Lenders
41f60aca4c pktbuf: port to use ng_ version 2015-02-19 13:51:27 +01:00
Martine Lenders
c601b72ba7 ng_netapi: fix documentation 2015-02-13 12:42:24 +01:00
Martine Lenders
c80c04d6ed netreg: Initial import 2015-02-12 16:13:38 +01:00
Martine Lenders
b208371163 Merge pull request #2417 from authmillenon/netif/feat/initial
netif: Initial import of ng_* version
2015-02-11 12:41:54 +01:00
Martine Lenders
7317097db2 pkt: simplify API 2015-02-11 11:01:33 +01:00
Martine Lenders
894cd964f9 netif: Initial import of ng_* version 2015-02-11 10:52:51 +01:00
Hauke Petersen
87e2b6db50 ng_net: added new version of NETAPI 2015-02-10 11:34:56 +01:00
Martine Lenders
0eb2d78dda doc: use my real name 2015-02-08 18:52:16 +01:00
Martine Lenders
99e2feca48 pkt: Initial import
This data type is bound to replace the `(netdev_hlist_t *ulh, void
*data)` tuples in netapi and netdev.
2015-01-14 07:04:56 +01:00
Oleg Hahm
c92effaead debug: removed superfluous additional debug flag 2014-12-03 22:59:14 +01:00
Martine Lenders
b7a079471a sys: net: Initial import of a general interface to a network protocol 2014-11-20 14:51:29 +01:00
Martine Lenders
c9219b87d6 net_help: prefix csum properly and add documentation 2014-11-18 14:59:37 +01:00
Martine Lenders
53eaa4feb8 net_help: remove printArrayRange()
The od module does the same, much less specialized, much more
sophisticated.
2014-11-17 09:39:45 +01:00
Martine Lenders
b7929ae03d pktbuf: optimize size overhead in packet buffer 2014-11-07 12:01:22 +01:00
Martine Lenders
a569f2b92c net: Initial import of a global packet buffer 2014-10-16 11:52:30 +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
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
Ludwig Ortmann
d55da67fb6 Merge pull request #1329 from LudwigOrtmann/riot_license
RIOT default license header change
2014-07-31 23:12:47 +02:00
Ludwig Ortmann
3ca4f18479 doc: use lgplv2.1-short license header instead of lgpl-short-riot 2014-07-31 22:57:20 +02:00
Cenk Gündoğan
ca5b45e264 converting tabs to spaces in sys (#1439)
This PR converts tabs to white spaces.
The statement I used for the conversion:
```find . -name "*.[ch]" -exec zsh -c 'expand -t 4 "$0" > /tmp/e && mv /tmp/e "$0"' {} \;```
Afterwards, I had a quick overview of the converted files to prevent odd indentation.
2014-07-31 20:51:50 +02:00
René Kijewski
840c0f0a57 make: detect their module name automatically
For many modules the `Makefile` contains a line like
```
MODULE:=$(shell basename $(CURDIR))
```
This conclusively shows that we do not have to set the module name
manually.

This PR removes the need to set the module name manually, if it is the
same as the basename. E.g. for `…/sys/vtimer/Makefile` the variable
make `MODULE` will still be `vtimer`, because it is the basename of the
Makefile.
2014-06-17 15:49:32 +02:00
René Kijewski
de29e4184c Add include paths automatocally for USEMODULES
Application developers use `$(USEMODULES)` in their Makefiles to have
the relevant functionally automagically added to their apps. This even
does basic dependency tracking by means of `Makefile.dep`.

But an important thing is missing: the automatic adding of include
paths. This is inconvenient, error prone, and will hinder the RIOT core
developers in future to change folder structures.
2014-03-29 16:27:55 +01:00
Benjamin Valentin
5f57db794b remove unnecessary INCLUDES from net_help 2014-03-24 11:19:55 +01:00
Martin Lenders
3225683d2f Include kernel.h for inet_pton for MSP-430 2014-02-28 00:14:54 +01:00
Martin Lenders
e5df49dc5e Remove destiny header dependency from net_help 2014-02-08 00:31:02 +01:00
Martin Lenders
df598772d3 Fix net_help include path 2014-02-01 20:00:56 +01:00
Martin Lenders
333a19db03 Add Oliver Gesch as author of his files and license header 2014-01-31 17:01:51 +01:00
Oleg Hahm
593ee623b6 simplify and unify include pathes
additional:
* exporting include path in sys is mandatory for subfolders
* removed duplicate object file in linker call
2014-01-05 16:11:07 +01:00
Oleg Hahm
7642dd0f1d moved net_help into crosslayer subfolder 2013-12-19 19:13:26 +01:00