malo
06f0d4ea17
sys: net: crosslayer: fixed inet csum for 16bit platforms
...
Signed-off-by: malo <malo@25cmsquare.io>
2016-03-29 23:31:10 +02:00
Oleg Hahm
021e94ee6a
netdev2: introduce linklayer netstats
2016-03-29 22:34:09 +02:00
Martine Lenders
6504671a33
Merge pull request #5179 from OlegHahm/ipv6_recv_assert_instead_check
...
gnrc ipv6: replace check by assert
2016-03-29 19:42:00 +02:00
Oleg Hahm
376874284b
Merge pull request #3721 from cgundogan/pr/rpl/gnrc_rpl_p2p
...
rpl: introducing P2P-RPL
2016-03-29 19:04:27 +02:00
Yonezawa-T2
1ce140d910
debug: fix compilation error for %p formatter
2016-03-29 11:46:29 +09:00
Oleg Hahm
028c9d8029
Merge pull request #5139 from authmillenon/gnrc_ndp/fix/unset-isrouter-on-rtr-sol
...
gnrc_ndp: unset isRouter flag for neighbor sending RS
2016-03-28 19:29:33 +02:00
Martine Lenders
802136dd9a
gnrc_ndp: unset isRouter flag for neighbor sending RS
2016-03-28 19:16:51 +02:00
Martine Lenders
6aacfa8a42
Merge pull request #5176 from OlegHahm/netstats_only
...
net: introduce netstats
2016-03-26 11:29:52 +01:00
Oleg Hahm
d6498162f2
netdev2: introduce netstats
2016-03-25 21:43:16 +01:00
Oleg Hahm
856e1ee0d2
gnrc ipv6: replace check by assert
...
The existence of netif is mandatory here.
2016-03-25 17:30:50 +01:00
kYc0o
f92b025b85
vtimer: get rid of
2016-03-24 17:10:54 +01:00
Cenk Gündoğan
c7a29918ca
Merge pull request #5169 from cgundogan/pr/gnrc_netif/DELETE_ALL_INTERFACES
...
gnrc_ipv6_netif: remove existing interfaces on INIT
2016-03-24 16:34:54 +01:00
Cenk Gündoğan
8bc65a9626
gnrc_ipv6_netif: remove existing interfaces on INIT
2016-03-24 16:10:51 +01:00
Cenk Gündoğan
b5c09bfc41
rpl: introducing p2p-rpl
2016-03-24 12:12:07 +01:00
Martine Lenders
1724ab50fc
Merge pull request #4654 from Yonezawa-T2/fix_ipv6_ext
...
ipv6_ext: fixed extension header handling
2016-03-24 10:53:00 +01:00
Yonezawa-T2
6443a2bb5c
gnrc_pktbuf: Adds a function to duplicate packet chain
2016-03-24 18:20:28 +09:00
Oleg Hahm
a65e6aad59
Merge pull request #5118 from OlegHahm/udp_build_hdr_simplification
...
gnrc: simplify hdr_build functions
2016-03-23 15:31:58 +01:00
Martine Lenders
9a60fb30b7
Merge pull request #5136 from cgundogan/pr/gnrc_rpl/netif_addr
...
gnrc_rpl: add netif_addr to DODAG
2016-03-23 15:27:42 +01:00
Oleg Hahm
cba3ba71ab
gnrc netreg: remove generic hdr build function
2016-03-23 15:20:12 +01:00
Oleg Hahm
32af3f962e
gnrc ipv6: make address parameters const
2016-03-23 15:20:12 +01:00
Oleg Hahm
991c71cf27
gnrc ipv6: use ipv6_addr_t ptr for hdr_build
2016-03-23 15:20:12 +01:00
Oleg Hahm
fc919ea28e
netreg: assert correct param length for hdr_build
2016-03-23 15:20:12 +01:00
Oleg Hahm
360413a033
gnrc ipv6 hdr: remove len params from hdr_build
2016-03-23 15:20:11 +01:00
Oleg Hahm
487f6e480f
gnrc udp: simplify gnrc_udp_hdr_build
...
Directly using 16 bit port numbers instead of casting uint8_t pointers.
2016-03-23 15:20:11 +01:00
Cenk Gündoğan
c0a8ce39ac
Merge pull request #5141 from cgundogan/pr/gnrc_rpl/remove_parent_create_new_fib_entry
...
gnrc_rpl: new default route when old one was deleted
2016-03-23 15:13:53 +01:00
Oleg Hahm
ec78d1308e
Merge pull request #5146 from cgundogan/pr/gnrc_rpl/remove_superfluous_trickle_reset
...
gnrc_rpl: remove superfluous trickle reset
2016-03-23 11:41:39 +01:00
Cenk Gündoğan
eae0e4c724
gnrc_rpl: new default route when old one was deleted
2016-03-23 11:37:33 +01:00
Cenk Gündoğan
b280984862
gnrc_rpl: add netif_addr to DODAG
2016-03-23 10:37:38 +01:00
Cenk Gündoğan
095e4558df
Merge pull request #5135 from cgundogan/pr/gnrc_rpl/proper_iface_handling
...
gnrc_rpl: proper interface handling
2016-03-23 10:34:47 +01:00
Cenk Gündoğan
3b9fda6d03
gnrc_rpl: proper interface handling
2016-03-23 10:12:01 +01:00
Cenk Gündoğan
b1249a5db1
gnrc_rpl: remove superfluous trickle reset
2016-03-23 10:06:04 +01:00
Yonezawa-T2
f0acefd0af
gnrc_ipv6_nc: fix compilation error at debug output
2016-03-23 13:32:38 +09:00
Oleg Hahm
d1ccfea80a
Merge pull request #5129 from cgundogan/pr/gnrc_rpl/minor_cleanup
...
gnrc_rpl: minor enhancements
2016-03-22 17:26:21 +01:00
Oleg Hahm
1787cb6ed2
Merge pull request #5019 from cgundogan/pr/fib/flush
...
fib: flush entries
2016-03-22 17:16:48 +01:00
Cenk Gündoğan
fc75ff9b29
gnrc_rpl: minor fixes and enhancements
2016-03-22 16:50:16 +01:00
Yonezawa-T2
bc5b0c3140
ipv6_ext: fixed extension header handling
2016-03-22 12:45:08 +09:00
Cenk Gündoğan
771757c84f
Merge pull request #5082 from cgundogan/pr/gnrc_rpl/dodag_conf_optional_on_join
...
gnrc_rpl: make DODAG_CONF optional when joining DODAG
2016-03-21 18:22:44 +01:00
Martine Lenders
f42738ed22
gnrc_netdev2: do not override res for for ieee802154
...
`res` is used to set the frame header iovec's length afterwards so overriding
it with a negative number is kind of a bad idea ;-).
2016-03-17 00:20:39 +01:00
Cenk Gündoğan
39255ee8f8
gnrc_rpl: make DODAG_CONF optional when joining DODAG
2016-03-16 14:31:49 +01:00
Cenk Gündoğan
46e983afc7
Merge pull request #5081 from cgundogan/pr/gnrc_rpl/rename_req_opts_to_dio_opts
...
gnrc_rpl: shell: rename req_opts to dio_opts
2016-03-16 14:20:46 +01:00
Cenk Gündoğan
b15c1a2bd1
gnrc_rpl: rename req_opts to dio_opts
2016-03-16 14:16:15 +01:00
Cenk Gündoğan
6f6ec3c8a5
gnrc_ipv6_nc: refactor nc_remove function
2016-03-16 13:51:21 +01:00
Martine Lenders
0a3b56e0b4
Merge pull request #5006 from immesys/fix-rtr-adv
...
ndp: change rtr adv src to link local
2016-03-16 12:42:12 +01:00
Martine Lenders
312047fa84
Merge pull request #5029 from gebart/pr/6lo-decoded-hdr-snip-ordering
...
gnrc_sixlowpan: Preserve order when replacing 6lowpan header by decoded IPv6 header
2016-03-16 11:53:53 +01:00
Joakim Nohlgård
ad40c208c1
Merge pull request #5070 from cgundogan/pr/gnrc_ipv6_nc/remove_timers
...
gnrc_ipv6_nc: remove nc_entry timers
2016-03-16 11:28:52 +01:00
Martine Lenders
cb4df81bd3
Merge pull request #5087 from gebart/pr/br-preferred-lifetime
...
gnrc_ipv6: Set preferred lifetime infinite on addresses in border router scenario.
2016-03-16 11:16:35 +01:00
Joakim Nohlgård
f2883792e0
gnrc_ipv6: Set preferred lifetime infinite on addresses in border router scenario.
2016-03-16 10:59:19 +01:00
Martine Lenders
1caf0bcc8a
Merge pull request #4645 from authmillenon/netdev2/enh/ieee802154
...
netdev2: add basic IEEE 802.15.4 support
2016-03-15 18:28:29 +01:00
Martine Lenders
b0b76ba3a6
gnrc: initial import of GNRC<->netdev2 glue code for 802.15.4
2016-03-15 17:11:22 +01:00
Hauke Petersen
e855d63d84
net/slip: adapted to uart cb type change
2016-03-15 11:59:20 +01:00
Cenk Gündoğan
f91e4bde9d
gnrc_ipv6_nc: remove nc_entry timers
2016-03-14 23:45:17 +01:00
Martine Lenders
1659b9cc07
Merge pull request #5050 from gebart/pr/ipv6-rm-netif
...
gnrc_ipv6: Strip netif header and nothing else
2016-03-14 13:14:43 +01:00
Joakim Nohlgård
d770d6ab31
gnrc_sixlowpan: Preserve order when replacing 6lowpan header by decoded IPv6 header
2016-03-12 11:36:24 +01:00
Joakim Nohlgård
61e2626779
gnrc_ipv6: Strip netif header and nothing else
2016-03-12 11:13:53 +01:00
Martine Lenders
178c3169d7
gnrc_sixlowpan_frag: use IPv6 type for reassembled packet
2016-03-12 10:45:03 +01:00
Martine Lenders
ae8e0ce787
Merge pull request #5039 from kYc0o/nhdp_without_vtimer
...
sys/net/routing/nhdp: get rid of vtimer
2016-03-11 22:50:36 +01:00
Ludwig Knüpfer
e58786385e
Merge pull request #5022 from cgundogan/pr/rpl/do_not_use_PRIu8
...
gnrc_rpl: do not use PRIu8/PRIi8
2016-03-11 19:08:02 +01:00
kYc0o
6e8d574534
sys/net/routing/nhdp: get rid of vtimer
...
sys/net/routing/nhdp/nhdp.c: fix identation
sys/net/routing/nhdp/nhdp.h: fix typo
2016-03-11 17:47:03 +01:00
Cenk Gündoğan
ba7d6230c0
Merge pull request #4935 from authmillenon/gnrc_sixlowpan_iphc_nhc/fix/frag
...
gnrc_sixlowpan_iphc_nhc: fix NHC UDP decoding for fragmented packets
2016-03-11 16:41:27 +01:00
Cenk Gündoğan
f5df674a4f
gnrc_pktdump: make pid global
2016-03-11 14:22:20 +01:00
Cenk Gündoğan
57210f6e17
gnrc_rpl: use global ipv6_addr_unspecified
2016-03-11 01:01:52 +01:00
Cenk Gündoğan
1226941be6
gnrc_rpl: do not use PRIu8/PRIi8
2016-03-10 22:51:12 +01:00
Martine Lenders
71b6221b57
Merge pull request #4991 from OlegHahm/gnrc_netdev_cleanup
...
gnrc_netdev: cleanup
2016-03-09 19:30:41 +01:00
Cenk Gündoğan
2991addea8
fib: add flush function
2016-03-09 17:30:56 +01:00
Joakim Nohlgård
ea8b0325eb
gnrc: Set address valid lifetime to UINT32_MAX for border router scenario
2016-03-09 14:26:17 +01:00
Michael Andersen
60f6aeaf70
ndp: change rtr adv src to link local
2016-03-08 21:33:35 -08:00
Oleg Hahm
7552867858
make: removed non-existing gnrc_netdev_eth
2016-03-08 16:33:57 +01:00
Martine Lenders
d8c3301492
gnrc_netdev_eth: handle error on iovec initialization.
2016-03-07 21:36:35 +01:00
Martine Lenders
32e0c7ae66
Merge pull request #4636 from authmillenon/ieee802154/enh/general-hdr
...
ieee802154: provide general header build and read functions
2016-03-07 21:02:52 +01:00
Martine Lenders
399b8026d3
ieee802154: provide general header build and read functions
2016-03-07 16:40:30 +01:00
Martine Lenders
cba05cc028
Merge pull request #4873 from Yonezawa-T2/zero_udp_checksum
...
udp: fixed a corner case for checksum computation.
2016-03-07 09:21:24 +01:00
Yonezawa-T2
b1dd2818fe
udp: discard UDP packets with zero checksum.
...
RFC 2460 Section 8.1
> IPv6 receivers must discard UDP packets containing a zero checksum,
> and should log the error.
2016-03-07 15:46:29 +09:00
Michael Andersen
1082a93a42
ndp: fix neighbor advertisement byte ordering
2016-03-05 13:39:50 -08:00
Martine Lenders
ae52bf9a12
gnrc_sixlowpan_iphc_nhc: fix NHC UDP decoding for fragmented packets
2016-03-04 16:40:45 +01:00
Martine Lenders
4504e40fe0
Merge pull request #4771 from Yonezawa-T2/rbuf_gc_improvement
...
rbuf: does not remove oldest entry if we have entry for current fragment
2016-03-04 05:40:00 +01:00
Yonezawa-T2
31fa3404ca
rbuf: does not remove oldest entry if we have entry for current fragment
...
If all rbuf slots are in use, `_rbuf_gc` removes the oldest entry even if the
entry for the current fragment exists. This effectively decreases usable slots
by one. This patch makes `_rbuf_gc` removes the oldest entry only if there is
no entry for the current fragment.
2016-03-03 11:19:48 +09:00
Cenk Gündoğan
10cb4d66bf
Merge pull request #4870 from authmillenon/ipv6_addr/enh/opt
...
ipv6_addr: optimize for size
2016-03-02 22:04:32 +01:00
Martine Lenders
ac07862363
Merge pull request #4796 from gebart/pr/udp-nhc-typo
...
6lo: Fix typo in UDP NHC checksum elision bit define
2016-03-01 21:54:32 +01:00
Martine Lenders
0e32745b8a
gnrc: replace static initializers with constants where sensible
2016-03-01 18:29:15 +01:00
Martine Lenders
2082296d5b
ipv6_addr: optimize for size
2016-03-01 18:29:15 +01:00
Martine Lenders
327f7c442c
Merge pull request #4816 from kaspar030/rename_genrand
...
sys: random: rename genrand_* to random_*
2016-03-01 13:58:39 +01:00
Joakim Nohlgård
647c87c9a5
6lo: Fix typo in UDP NHC checksum elision bit define
2016-03-01 12:35:14 +01:00
Joakim Nohlgård
3af809bdfc
Merge pull request #4910 from kaspar030/core_header_cleanup
...
core: header cleanup
2016-02-29 22:48:35 +01:00
ded39b461e
sys: random: rename genrand_* to random_*
2016-02-29 21:33:17 +01:00
Yonezawa-T2
984e02a7ff
rbuf: made RBUF_INT_SIZE
configurable
2016-02-29 13:02:32 +09:00
9082273746
core: header cleanup
2016-02-28 22:46:28 +01:00
Cenk Gündoğan
0ac4ee705c
ipv6: rpl: add source routing header for RPL
2016-02-27 20:39:12 +01:00
Martine Lenders
8db42427cb
native/drivers/sys: adapt ethernet netdev2 for info struct
2016-02-22 12:37:26 +01:00
Yonezawa-T2
e92c355aba
udp: fixed a corner case for checksum computation.
...
Fixes #4842 .
RFC 2460 section 8.1 (https://tools.ietf.org/html/rfc2460#section-8.1 )
states:
> if that computation yields a result of zero, it must be changed to hex
> FFFF for placement in the UDP header.
2016-02-22 20:30:31 +09:00
Cenk Gündoğan
847c4868a3
Merge pull request #4851 from cgundogan/pr/icmpv6/debug_fix
...
gnrc_icmpv6: fix debug outputs
2016-02-19 08:13:58 +01:00
Cenk Gündoğan
ee4553e176
gnrc_icmpv6: fix debug outputs
2016-02-19 07:51:10 +01:00
Oleg Hahm
fc398d857d
ndp: fix NCE creation on RA reception
...
RFC4861 says: "If a Neighbor Cache entry is created for the router
[while processing route advertisements], its reachability state MUST be
set to STALE as specified in Section 7.3.3."
2016-02-18 19:53:39 +01:00
Oleg Hahm
0a65d8c558
Merge pull request #4770 from Yonezawa-T2/rbuf_usec
...
rbuf: change arrival time unit from seconds to microseconds
2016-02-16 11:38:06 +01:00
Yonezawa-T2
d5a02b6de1
rbuf: change arrival time unit from seconds to microseconds
2016-02-16 17:22:25 +09:00
Martine Lenders
a66ce9c3eb
Merge pull request #4784 from authmillenon/gnrc_pkt/api/search-type-function
...
gnrc_pkt: provide type search function
2016-02-15 13:33:45 +01:00
Joakim Nohlgård
d414f30b22
Merge pull request #4791 from gebart/pr/small-cleanups
...
misc: small cleanups
2016-02-12 09:14:06 +01:00
Cenk Gündoğan
8da37a4aae
Merge pull request #4793 from cgundogan/pr/gnrc_ipv6/debug
...
gnrc_ipv6: make the DEBUG output useful
2016-02-12 08:55:04 +01:00
Oleg Hahm
4824a45c8a
Merge pull request #4732 from cgundogan/pr/rpl/pio_control
...
rpl: make PIOs in DIOs configurable and send them out always or never
2016-02-11 23:53:51 +01:00
Cenk Gündoğan
27a4770601
gnrc_ipv6: make the DEBUG output useful
2016-02-11 16:46:16 +01:00
Joakim Nohlgård
0e316c3159
sys/net/gnrc/zep: Remove unused (static) getter function
2016-02-11 15:13:41 +01:00
Martine Lenders
379703ae3a
gnrc: use gnrc_pkt_search_type instead of LL_SEARCH_SCALAR
2016-02-11 01:05:02 +01:00
Martine Lenders
e8a1fab07d
gnrc_pkt: provide type search function
2016-02-11 01:05:02 +01:00
Cenk Gündoğan
03f34927cd
pktbuf: do not inline gnrc_pktbuf_remove_snip
2016-02-10 16:38:40 +01:00
Kévin Roussel
eaecf17891
Adding an helper 'csma_sender' module, to be able to send packets in CSMA/CA
...
mode, without having to guess if network device does it automatically or not
and being forced to handle it in your (higher level) code
(Corrected, compilation-errors free version)
2016-02-10 11:43:47 +01:00
Yonezawa-T2
f638d68ebb
rbuf: drop overlapped fragment only if offset or size differs from previous one.
...
https://tools.ietf.org/html/rfc4944#section-5.3 says:
> If a link fragment that overlaps another fragment is received, as
> identified above, and differs in either the size or datagram_offset
> of the overlapped fragment, the fragment(s) already accumulated in
> the reassembly buffer SHALL be discarded. A fresh reassembly may be
> commenced with the most recently received link fragment.
2016-02-09 11:15:22 +09:00
Hauke Petersen
f3ac84d43a
drivers: s/CPUID_ID_LEN/CPUID_LEN/
2016-02-08 11:10:59 +01:00
0fc19f723d
sys: net: gnrc_netdev2_eth: fix ethernet multicast MAC address creation
2016-02-05 23:20:33 +01:00
44e985bf8c
sys: net: ipv6: add print_ipv6_addr()
2016-02-05 14:06:36 +01:00
b9c97d86c2
sys: net: add ipv6 split prefix/interface from address functions
2016-02-05 13:24:45 +01:00
Cenk Gündoğan
73fac82b58
rpl: shell: don't compile PIO code dependent on CFLAGS
2016-02-03 08:59:51 +01:00
Cenk Gündoğan
2242970cad
rpl: don't change status of PIO transmissions
2016-02-03 07:29:36 +01:00
Cenk Gündoğan
50aff7fca0
rpl: unify requested option flags into one byte
2016-02-03 07:13:24 +01:00
Oleg Hahm
ae086aeed1
IPv6: cosmetic improvement
...
New condition -> new line
2016-01-29 18:56:03 +01:00
Oleg Hahm
250c288929
6lowpan nd: prefer NCEs over FIB entries
...
If an address can be found in the neighbor cache, it should be used - whatever the FIB may return.
2016-01-29 18:56:03 +01:00
BytesGalore
10ea1226bc
gnrc/ipv6: add blacklisting of IPv6 addresses
2016-01-28 21:50:43 +01:00
Oleg Hahm
ae8e0957cb
Merge pull request #4705 from cgundogan/pr/ndp/pio_fix
...
ndp/internal: fix pio flags for rtr adv
2016-01-28 16:27:44 +01:00
Cenk Gündoğan
11e7160b90
Merge pull request #4707 from BytesGalore/change_whitelist_use_memcpy
...
gnrc_ipv6/whitelist: switch assignment operation to `memcpy()`
2016-01-28 14:23:21 +01:00
Cenk Gündoğan
d58e1385b2
ndp/internal: fix pio flags for rtr adv
2016-01-28 14:03:19 +01:00
BytesGalore
2d1671473b
gnrc_ipv6/whitelist: switch assignment operation to memcpy()
2016-01-28 06:23:31 +01:00
Oleg Hahm
dae4253618
Merge pull request #4519 from OlegHahm/fib_remove_superfluous_things
...
FIB: remove superfluous things
2016-01-27 16:12:08 +01:00
Oleg Hahm
a1ece30c55
fib: remove superfluous parameter
2016-01-26 23:52:18 +01:00
Martine Lenders
5ddcf09627
gnrc_ipv6_netif: don't advertise routers without GUAs
2016-01-26 23:25:07 +01:00
Martine Lenders
131cae626c
Merge pull request #3362 from authmillenon/ng_neterr/feat/initial
...
[RFC] gnrc: initial import of an asynchronous error reporting API
2016-01-26 21:35:30 +01:00
Cenk Gündoğan
617796241e
Merge pull request #4295 from authmillenon/gnrc_ipv6_nc/enh/l2addr-lookup
...
gnrc_ipv6_nc: introduce L2 address lookup function
2016-01-26 19:30:01 +01:00
Peter Kietzmann
4d7c068e0d
Merge pull request #4267 from authmillenon/gnrc_pktbuf_static/enh/max_byte_counter
...
gnrc_pktbuf_static: add stat variable for maximum packet buffer byte
2016-01-26 18:45:49 +01:00
Oleg Hahm
3d494c8bf9
Merge pull request #3184 from authmillenon/ng_icmpv6_error/feat/init
...
gnrc_icmpv6_error: initial import
2016-01-26 18:23:54 +01:00
Martine Lenders
a23b9c3310
Merge pull request #4652 from Lotterleben/conn_documentation
...
conn: add more detailed documentation (WIP)
2016-01-26 18:09:36 +01:00
Lotte Steenbrink
be72f2c1cf
conn: add more detailed documentation
2016-01-26 16:54:29 -08:00
test
8d1f91f128
ndp: check for A flag in received PIO
2016-01-26 14:34:48 +01:00
Martine Lenders
da5abe1bcd
gnrc_sixlowpan_nd: use gnrc_ipv6_nc_get_l2_addr()
2016-01-26 10:19:16 +01:00
Martine Lenders
0b787b9e02
gnrc_ndp_node: use gnrc_ipv6_nc_get_l2_addr()
2016-01-26 10:19:16 +01:00
Martine Lenders
0e0eef1273
gnrc_ipv6: use gnrc_ipv6_nc_get_l2_addr()
2016-01-26 10:19:15 +01:00
Martine Lenders
7b21f95df5
gnrc_ipv6_nc: introduce L2 address lookup function
2016-01-26 10:19:15 +01:00
Martine Lenders
da23ffe096
gnrc: initial import of an asynchroneous error reporting API
2016-01-23 16:42:19 +01:00
Martine Lenders
4d877c7bf7
gnrc_pktbuf_static: add stat variable for maximum packet buffer byte
2016-01-23 16:41:01 +01:00
Martine Lenders
70c3d29036
gnrc_icmpv6_error: initial import
2016-01-23 16:04:05 +01:00
Yonezawa-T2
eaf2153681
gnrc_rpl_control_messages: propagete prefix route via DAO message
2016-01-21 11:11:38 +09:00
Cenk Gündoğan
7269cdbf03
rpl: fix netapi commands handling
2016-01-11 18:30:29 +01:00
Johann Fischer
2f94d669d7
gnrc_pktbuf_static.c: fix overflow in gnrc_pktbuf_realloc_data
...
This patch fixes overflow, which is caused by
(pkt->size - aligned_size). This happens if pkt->size and
new size are unaligned and the difference
between pkt->size and new size is less than four.
2016-01-07 15:17:52 +01:00
Martine Lenders
94e4a08f45
Merge pull request #4447 from Yonezawa-T2/fix_gnrc_bugs
...
fixes several bugs on GNRC network stack
2016-01-07 03:38:11 +01:00
Yonezawa-T2
cf35763584
fib: add debug outputs
2016-01-07 10:12:46 +09:00
Yonezawa-T2
c9c83c7dc7
nc: cancel timer set by gnrc_ndp_rtr_sol_handle
in gnrc_ipv6_nc_remove
.
2016-01-07 10:12:46 +09:00
Yonezawa-T2
542e045bba
gnrc_ipv6_netif: fixed crash when ENABLE_DEBUG is 1.
...
When ENABLE_DEBUG is 1, `out` is dereferenced unconditionally, but
`_parse_options` in `gnrc_rpl_control_messages.c` calls it with NULL.
Clarified `out` must not NULL and fixed `_parse_options`.
2016-01-07 10:08:37 +09:00
Yonezawa-T2
5cb904b57e
gnrc_sixlowpan_nd: fixed crash on gnrc_sixlowpan_nd_next_hop_l2addr.
...
When `gnrc_ndp_node_next_hop_l2addr` cannot resolve L2 address, it creates a
temporary neighbor cache entry with interface `KERNEL_PID_UNDEF` (unless the
interface is already known) to send a neighbor solicitation. When another packet
directed to the same address is going to sent before receiving a neighbor
advertisement, `gnrc_sixlowpan_nd_next_hop_l2addr` gets the temporary neighbor
cache entry and calls `gnrc_ipv6_netif_get` with `KERNEL_PID_UNDEF`, resulting
get a `NULL`. We must check `NULL` before dereference it.
FYI, both `gnrc_ndp_node_next_hop_l2addr` and
`gnrc_sixlowpan_nd_next_hop_l2addr` are enabled when
`gnrc_sixlowpan_border_router_default` module is enabled with `GNRC_NETIF_NUMOF`
is greater than 1:
gnrc_sixlowpan_border_router_default
→ gnrc_ipv6_router_default
→ gnrc_ndp_router (if GNRC_NETIF_NUMOF > 1)
→ gnrc_ndp_node
→ gnrc_ndp_node_next_hop_l2addr is called from _next_hop_l2addr
gnrc_sixlowpan_border_router_default
→ gnrc_sixlowpan_nd_border_router
→ gnrc_sixlowpan_nd_router
→ gnrc_sixlowpan_nd
→ gnrc_sixlowpan_nd_next_hop_l2addr is called from _next_hop_l2addr
2016-01-07 10:02:49 +09:00
Martine Lenders
a4a8e83ac7
Merge pull request #4446 from Yonezawa-T2/neighbor_discovery_option_for_6lowpan
...
gnrc_ndp: fixed ND Option handling for 6LoWPAN
2016-01-06 14:03:43 +01:00
Yonezawa-T2
639f7dc020
gnrc_ndp: fixed ND Option handling for 6LoWPAN
...
The forms of the Source/Target Link-layer Address option for 6LoWPAN are defined
in RFC 4944 Section 8:
https://tools.ietf.org/html/rfc4944#section-8
The address is 16 bit if length is 1, 64 bit if length is 2.
2016-01-06 09:38:47 +09:00
DipSwitch
6c521916cd
Merge pull request #4559 from thomaseichinger/pr/fix_tftp_formating
...
tftp: fix formatting warnings/errors
2016-01-05 20:26:40 +01:00
Thomas Eichinger
a43cbd17ff
tfpt: fix formating warnings/errors
2016-01-05 14:59:34 +01:00
Cenk Gündoğan
e79a471931
Merge pull request #4533 from Yonezawa-T2/gnrc_add_missing_unlock
...
gnrc_ndp_internal: add missing unlock when the pktbuf is full
2016-01-04 16:05:17 +01:00
Yonezawa-T2
38d3dc725b
gnrc_ndp_internal: add missing unlock when the pktbuf is full
...
Squashed a commit by Cenk Gündoğan <cnkgndgn@gmail.com>.
2015-12-25 11:08:28 +09:00
Cenk Gündoğan
7d628514ab
sixlowpan: iphc: fix dependencies for udp and nhc
2015-12-23 13:57:55 +01:00
Cenk Gündoğan
237706dd9e
sixlowpan: iphc: remove dispatch and assign result to pkt
2015-12-22 20:54:39 +01:00
Martine Lenders
21beaa7529
gnrc_udp: fix false assumed packet order
2015-12-22 17:14:33 +01:00
Martine Lenders
d342d35dd8
gnrc_sixlowpan: Fix IPHC/NHC packet order problem
2015-12-22 17:14:33 +01:00
Oleg Hahm
b7a7578e21
Merge pull request #4507 from authmillenon/gnrc_ipv6/fix/no-order-assumptions
...
gnrc_ipv6: make no pre-assumption about any marked headers
2015-12-22 11:18:47 +01:00
Oleg Hahm
83649ddb59
Merge pull request #4531 from Yonezawa-T2/gnrc_avoid_infinite_loop
...
sixlowpan: fixed infinite loop
2015-12-22 11:11:55 +01:00
Martine Lenders
34974abac2
Merge pull request #4534 from Yonezawa-T2/gnrc_off_by_1_overrun
...
gnrc_ipv6_netif: fixed buffer overrun
2015-12-22 10:29:57 +01:00
Martine Lenders
5b4ef433a8
Merge pull request #4532 from Yonezawa-T2/gnrc_safe_no_routers
...
gnrc_sixlowpan_nd: fixed crash when there are no routers
2015-12-22 09:15:49 +01:00
Yonezawa-T2
08ba1f8640
gnrc_ipv6_netif: fixed buffer overrun
2015-12-22 11:30:05 +09:00
Yonezawa-T2
fe0e58dce1
gnrc_sixlowpan_nd: fixed crash when there are no routers
2015-12-22 11:29:57 +09:00
Yonezawa-T2
9108d2779d
sixlowpan: fixed infinite loop
...
When prefix entry is resued, it may form a looped list, results in infinite loop
in gnrc_ndp_internal_send_rtr_adv.
This patch avoids looped lists.
2015-12-22 11:29:04 +09:00
Johann F
adfcef4f7b
gnrc_ndp.c: parsing of SLLAO in gnrc_ndp_rtr_sol_handle
...
Do not set the link-layer address if no SLLAO was included
into the router solicitation.
2015-12-19 01:16:24 +01:00
Martine Lenders
68309045ed
gnrc_ipv6: make no pre-assumption about any marked headers
2015-12-18 18:31:24 +01:00
Cenk Gündoğan
0ddfffc0c2
posix_sockets: fix overflowing fd in close()
2015-12-12 04:24:23 +01:00
Yonezawa-T2
c36766a31f
OSX: fix warnings/errors thrown by clang on OS X
...
gnrc_ipv6_nc, gnrc_sixlowpan, gnrc_netdev2_eth, gnrc_ipv6, xbee, sixlowpan,
sc_gnrc_6ctx
2015-12-10 11:23:56 +09:00
Johann Fischer
c6ab57f468
gnrc_udp.c adapt for nhc udp encoding and decoding
2015-12-08 14:50:25 +01:00
Johann Fischer
a85d50b9d1
gnrc_sixlowpan_iphc.c: add nhc udp decoding and encoding
...
This patch adds UDP Header Compression and Decompression as
specified in https://tools.ietf.org/html/rfc6282#section-4.3
UDP NHC module will be included only if UDP is used.
2015-12-08 14:50:25 +01:00
Johann Fischer
199789ffbc
gnrc_sixlowpan.c: fix warning if GNRC_SIXLOWPAN_FRAG module not used
2015-12-08 13:59:15 +01:00
Martine Lenders
15220b26ad
Merge pull request #4381 from PeterKietzmann/sixlo_frag_unblocking
...
gnrc_sixlowpan_frag: Make fragmentation non-blocking
2015-12-08 13:13:48 +01:00
Hauke Petersen
41979b64cd
sys: adapted to renamed THREAD FLAGS
2015-12-07 22:09:47 +01:00
PeterKietzmann
331fa34502
gnrc_sixlowpan_frag: msg based fragmentation
2015-12-07 17:49:02 +01:00
Cenk Gündoğan
de8ea8b206
Merge pull request #4400 from OlegHahm/netif_exist
...
gnrc netif: add a check for interface existence
2015-12-04 14:26:35 +01:00
DipSwitch
ede923bc5c
tftp: implement TFTP server and client
...
Fix: packet size and typo in transfer mode main -> mail
2015-12-03 21:45:48 +01:00
Oleg Hahm
9f7be0a2e5
gnrc netif: add a check for interface existence
2015-12-03 18:35:23 +01:00
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
Hauke Petersen
0b15943cc1
Merge pull request #4373 from haukepetersen/opt_ipv6_addr
...
net/gnrc/ipv6: de-inlined ipv6_addr_equal
2015-12-03 12:11:14 +01:00
Oleg Hahm
b366e59c87
conn: add function to find the best source address
...
...and use it in POSIX sendto() function.
2015-12-02 18:11:55 +01:00
Ken Bannister
1abffc84e1
Update layer 4 files to fix checksum with inet_csum_slice().
2015-12-02 05:53:58 -05: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
Hauke Petersen
da39b3e939
net/gnrc/ipv6: de-inlined ipv6_addr_equal
2015-12-01 18:54:35 +01:00
Kévin Roussel
be49059c65
Add NETOPT_CCA_THRESHOLD option to the 'netopt_t' list
2015-11-30 13:07:00 +01:00
BytesGalore
c1a3ccdef6
Merge pull request #4322 from cgundogan/pr/fib/print_fix
...
fib: fix output of fibroute
2015-11-28 11:38:55 +01:00
Martine Lenders
2b6bea0196
Merge pull request #4299 from authmillenon/gnrc_netif_hdr/opt/un-inline
...
gnrc_netif_hdr: un-inline build function
2015-11-27 15:07:29 +01:00
Martine Lenders
507b4381d2
Merge pull request #4335 from authmillenon/gnrc_netdev2/enh/namescheme
...
gnrc_netdev2: harmonize naming scheme to rest of GNRC
2015-11-27 14:16:42 +01:00
Martine Lenders
74722888f6
gnrc_netif_hdr: un-inline build function
2015-11-27 13:19:50 +01:00
Martine Lenders
3c00cec299
gnrc_netdev2: harmonize naming scheme to rest of GNRC
2015-11-27 13:03:37 +01:00
test
432f6c34ab
ndp: use on-link flag instead of auto flag
2015-11-26 23:37:39 +01:00
Cenk Gündoğan
7fb889fa1a
nhdp: remove unused variable
2015-11-24 20:56:27 +01:00
Cenk Gündoğan
2aabc8ccea
nhdp: use conn_udp_close
2015-11-24 20:56:27 +01:00
Cenk Gündoğan
c516e4e759
nhdp: fix call to conn_udp_recvfrom
2015-11-24 20:56:27 +01:00
Cenk Gündoğan
e53c4a00a8
nhdp: include fixes
2015-11-24 20:56:27 +01:00
Oleg Hahm
4fd7cfea9f
Merge pull request #4324 from OlegHahm/posix_socket_recvfrom_byte_order
...
conn: fix UDP port byteorder in recvfrom
2015-11-23 20:24:46 +01:00
Cenk Gündoğan
58de2cf1a7
Merge pull request #4280 from thomaseichinger/pr/fix_osx_again
...
net/fib: shell: fix warnings/errors thrown by clang on OS X
2015-11-23 15:50:46 +01:00
test
db7e8a7b37
sixlowpan: iphc: minor optimizations
2015-11-23 13:17:23 +01:00
BytesGalore
3e7753bff4
Merge pull request #4298 from cgundogan/pr/rpl/dao_timer_reuse
...
rpl: reuse timer for periodic daos
2015-11-23 07:49:19 +01:00
BytesGalore
ad7b0f0685
Merge pull request #4296 from cgundogan/pr/rpl/dao_refactoring
...
rpl: directly iterate fib entries for DAO and mark external routes
2015-11-23 07:20:51 +01:00
Oleg Hahm
9d1dd39f36
conn: fix UDP port byteorder in recvfrom
...
Additionally cleans up some superfluous functions.
2015-11-20 22:43:57 +01:00
test
244bfb3fd4
fib: fix output of fibroute
2015-11-20 10:50:03 +01:00
test
1f2c674026
rpl: reuse timer for periodic daos
2015-11-20 10:06:07 +01:00
test
bbe1b6f125
rpl: reuse xtimer for cleanup
2015-11-17 19:00:18 +01:00
test
37709d27e5
rpl: directly iterate through fib entries for DAO
2015-11-17 18:48:30 +01:00
Martine Lenders
5f04675403
Merge pull request #4284 from authmillenon/gnrc_ipv6/enh/addr-res-without-nd
...
gnrc_ipv6: get l2addr from NC if no ND present
2015-11-17 17:59:58 +01:00
Martine Lenders
c7ebcbbda2
gnrc_ipv6: get l2addr from NC if no ND present
2015-11-17 16:20:58 +01:00
Martine Lenders
6595e8c57f
Merge pull request #4174 from authmillenon/gnrc_ndp_internal/fix/send-ras-without-pio
...
gnrc_ndp_internal: send RAs even when there are no PIOs
2015-11-17 14:01:55 +01:00
Oleg Hahm
46dc908fcb
gnrc 6lowpan: exclude CTX if not part of the app
...
This removes dependencies to 6LoWPAN context module if an application is built without support for it.
Also, includes a missing header.
2015-11-17 12:04:11 +01:00
Thomas Eichinger
6e3d2b6c53
net/fib: fix clang extra parantheses warning/error
2015-11-16 16:05:37 +01:00
Cenk Gündoğan
a88f72d0da
Merge pull request #4245 from cgundogan/pr/gnrc_nettest/vtimer_xtimer
...
gnrc_nettest: use xtimer instead of vtimer
2015-11-10 12:21:48 +01:00
Cenk Gündoğan
01225ca9d5
gnrc_nettest: use xtimer instead of vtimer
2015-11-10 08:34:36 +01:00
Cenk Gündoğan
677c1304b9
zep: remove superfluous vtimer include
2015-11-10 08:13:11 +01:00
BytesGalore
3153389e49
Merge pull request #4241 from cgundogan/pr/rpl/parent_lifetime_32
...
rpl: use uint32_t for the parent lifetime
2015-11-09 21:17:16 +01:00
Cenk Gündoğan
bf5e9b4351
rpl: use uint32_t for the parent lifetime
2015-11-09 20:28:31 +01:00
Cenk Gündoğan
b1f2f22898
rpl: uint32_t is sufficient for the DAO timer
2015-11-09 17:25:05 +01:00
Cenk Gündoğan
bf3a504691
nc: ndp: sixlowpan: remove timex.h include
2015-11-09 14:55:04 +01:00
Cenk Gündoğan
401e1b3814
sixlowpan: timex_t -> uint32_t
2015-11-09 14:55:04 +01:00
Cenk Gündoğan
34c3267bfe
ndp: timex_t -> uint32_t
2015-11-09 14:55:04 +01:00
Cenk Gündoğan
5aaea3879f
netif: ndp: gnrc_ipv6_netif_t::retrans_timer -> uint32_t
2015-11-09 14:55:04 +01:00
Cenk Gündoğan
b59fc825a3
netif: nc: ndp: gnrc_ipv6_netif_t::reach_time -> uint32_t
2015-11-09 14:55:01 +01:00
Cenk Gündoğan
47fe901187
ndp: timex -> uint32_t for probe delay time
2015-11-09 14:54:42 +01:00
Cenk Gündoğan
be7a34b1b8
Merge pull request #3157 from BytesGalore/fib_host_prefix_flags
...
net/fib: Added network prefix flag to indicate a network destination
2015-11-02 16:38:55 +01:00
Martine Lenders
7b059647c5
Merge pull request #4207 from jfischer-phytec-iot/fix@gnrc_conn_recvfrom
...
sys/net/gnrc/conn/gnrc_conn.c: release pkt in gnrc_conn_recvfrom
2015-11-02 16:22:50 +01:00
BytesGalore
523d1f87ca
net/fib: Added network prefix flag to indicate a network destination
2015-11-02 15:57:39 +01:00
Cenk Gündoğan
42c5666357
Merge pull request #4186 from cgundogan/pr/ipv6/last_vtimers
...
network_layer: remove last occurences of vtimer
2015-11-02 15:42:50 +01:00
Johann Fischer
8b456c9f4f
sys/net/gnrc/conn/gnrc_conn.c: release pkt in gnrc_conn_recvfrom
2015-11-02 15:19:27 +01:00
Cenk Gündoğan
47a02d9d07
ipv6: ndp: sixlowpan: remove vtimer includes
2015-11-02 15:02:08 +01:00
Cenk Gündoğan
263c8feb20
rpl: release pkt in send_dao
2015-11-01 20:51:09 +01:00
Cenk Gündoğan
a2716fa1b1
rpl: refactor send_dio to use pktbuf properly
2015-11-01 20:50:00 +01:00
a6498cb165
sys: net: gnrc_netreg: check for msg queue of registered thread, not registering
2015-10-31 11:18: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
Cenk Gündoğan
78d5c1c6e5
rpl: check if dodag id is global or unique local
2015-10-29 13:11:26 +01:00
Cenk Gündoğan
206e027725
Merge pull request #3647 from BytesGalore/fib_source_routing
...
fib: initial source route support
2015-10-29 12:08:47 +01:00
Cenk Gündoğan
83e0c45259
Merge pull request #4176 from authmillenon/gnrc_ndp/fix/stop-rs-retransmissions-on-ra
...
gnrc_ndp: stop multicast RS retransmissions on RA reception
2015-10-28 21:40:28 +01:00
Cenk Gündoğan
3b825c2523
sixlowpan: use xtimer_now() instead of vtimer_now()
2015-10-28 21:15:11 +01:00
Cenk Gündoğan
023c0984b3
sixlowpan: switch ltimer to be an xtimer
2015-10-28 21:03:09 +01:00
Martine Lenders
23f8fecc04
Merge pull request #4157 from cgundogan/pr/nc/xtimer_nbr_sol_timer
...
nc: use xtimer for gnrc_ipv6_nc_t::nbr_sol_timer
2015-10-28 17:51:48 +01:00
Martine Lenders
4d6d48ca82
Merge pull request #4171 from authmillenon/gnrc_slip/fix/wired
...
gnrc_slip: set NETOPT_IS_WIRED
2015-10-28 15:53:17 +01:00
Cenk Gündoğan
4297972054
nc: use xtimer for gnrc_ipv6_nc_t::nbr_sol_timer
2015-10-28 15:24:45 +01:00
Martine Lenders
a4533920a7
Merge pull request #4177 from authmillenon/gnrc_ipv6_netif/fix/no-l2-addr
...
gnrc_ipv6_netif: don't skip rest of config for address less l2
2015-10-28 15:16:34 +01:00
Martine Lenders
f453d6461e
gnrc_slip: set NETOPT_IS_WIRED
...
Fixes #4168
2015-10-28 13:41:51 +01:00
Martine Lenders
083c9442ab
gnrc_ipv6_netif: don't skip rest of config for address less l2
2015-10-28 13:40:21 +01:00
Cenk Gündoğan
c78fd9f4ed
Merge pull request #4159 from cgundogan/pr/netif/xtimer_rtr_adv_timer
...
netif: use xtimer for gnrc_ipv6_netif_t::rtr_adv_timer
2015-10-28 11:09:13 +01:00
Hauke Petersen
85e05d411e
Merge pull request #4114 from haukepetersen/opt_periph_uart
...
drivers/periph/uart: remodeled UART interface
2015-10-28 10:50:03 +01:00
Peter Kietzmann
eaf1e29b31
Merge pull request #4179 from OlegHahm/ndp_l2_length_calculation
...
gnrc: ndp: fix calculation of L2 address length
2015-10-28 10:25:32 +01:00
Cenk Gündoğan
a979d0c72c
netif: use xtimer for gnrc_ipv6_netif_t::rtr_adv_timer
2015-10-27 20:51:34 +01:00
Cenk Gündoğan
7490dc21a0
Merge pull request #4172 from cgundogan/pr/ndp/use_correct_timer
...
nc: ndp: add/use gnrc_ipv6_nc_t::rtr_adv_timer in gnrc_ndp_rtr_sol_handle
2015-10-27 20:43:30 +01:00
BytesGalore
6c57582107
fib: initial source route support
2015-10-27 20:20:18 +01:00
Oleg Hahm
64a653496a
gnrc: ndp: fix calculation of L2 address length
...
If no source address was provided by layer 2 or someone removed it, the calculation of its length is done using the length field from the Source/Target Link-layer Address option (https://tools.ietf.org/html/rfc4861#section-4.6.1 ). The length is specified as units of 8 octets. Hence, it should be multiplied by 8, not divided.
2015-10-27 20:13:50 +01:00
Martine Lenders
493597ec1d
Merge pull request #3845 from cgundogan/pr/gnrc_sixlowpan_iphc/assert
...
gnrc_sixlowpan_iphc: move assert to a valid position
2015-10-27 20:11:47 +01:00
Martine Lenders
7b6de128f7
Merge pull request #4149 from cgundogan/pr/ipv6/init_suffix
...
ipv6: initialize iid
2015-10-27 20:01:05 +01:00
Martine Lenders
8722699fb2
gnrc_ndp: stop multicast RS retransmissions on RA reception
...
6LoWPAN interfaces already do that, other interface happily continue
multicasting RSs even if a router was found.
2015-10-27 19:37:12 +01:00
Martine Lenders
ae567efc9a
gnrc_ndp_internal: send RAs even when there are no PIOs
2015-10-27 19:33:52 +01:00