adamdunkels
c6a43333d2
Call the timeout function only if it is non-NULL
2008-01-08 07:58:49 +00:00
adamdunkels
40d6216ec9
Added API for reading the routing table
2008-01-08 07:58:23 +00:00
adamdunkels
601560b1eb
Added hopcount to callbacks
2008-01-08 07:55:56 +00:00
adamdunkels
0c748d7dd2
Debug formatting fixes
2008-01-08 07:55:15 +00:00
adamdunkels
f737127cca
Minor type change
2008-01-08 07:55:00 +00:00
adamdunkels
16142f12c7
Removed unused code
2008-01-08 07:54:40 +00:00
adamdunkels
88a010acdc
Added a simple sniffer callback, which currently is a hack - a better solution would be a list of sniffers for both outgoing and incoming packets, but this will do for now.
2008-01-08 07:53:02 +00:00
adamdunkels
25a5434fb5
Sending with interval 0 made explicit
2008-01-07 14:53:04 +00:00
adamdunkels
d33871facc
Bugfix: hops should be at least one for all packets that are sent over the radio
2008-01-07 14:52:23 +00:00
oliverschmidt
00d75c8d16
Made use of uip_ipaddr_to_quad().
2008-01-04 23:28:33 +00:00
adamdunkels
3033b86753
Made the number of routing table entries configurable
2007-12-17 09:20:16 +00:00
adamdunkels
758411d06d
Cleaned up #includes to avoid cyclic dependencies - the Rime includes no longer depend on rime.h
2007-12-17 09:14:08 +00:00
adamdunkels
8287215c82
Removed obsolete, unused files
2007-12-17 09:12:16 +00:00
adamdunkels
07e2ca9287
Documentation updates
2007-12-16 14:33:32 +00:00
adamdunkels
43d394f758
Maximum rtmetric now defined by the collect module - a bit of a hack since this probably should be configured elsewhere (and be referenced by both the collect and the neighbor module) but it will do for now
2007-12-09 15:44:21 +00:00
adamdunkels
5a89c19b5e
Changed to store neighbors' rtmetrics as 16 bit valued
2007-12-09 15:43:51 +00:00
adamdunkels
01da62aa25
Changed local rtmetric name from 'local_rtmetric' to 'rtmetric' and updated the neighbor discovery module from nbh to neighbor-discovery
2007-12-09 15:43:09 +00:00
adamdunkels
4e1d2906b7
Changed name on the neighbor discovery module from (cryptic) 'nbh' to 'neighbor-discovery'
2007-12-09 15:40:43 +00:00
adamdunkels
761ad7dd57
Updated debug output
2007-12-05 13:40:34 +00:00
adamdunkels
fff49f6671
Correct route lookup
2007-12-05 13:40:26 +00:00
adamdunkels
36b7c7e782
Added missing forwarding function
2007-12-05 13:26:13 +00:00
adamdunkels
bfd5db667a
Don't call the forward function if it is not defined
2007-12-05 13:25:07 +00:00
adamdunkels
442516356a
Expose the Rime MAC driver so that applications can use it - a bit of a hack, but it works for now
2007-12-05 13:21:58 +00:00
adamdunkels
6720b41707
Removed debug output
2007-11-28 20:03:50 +00:00
adamdunkels
1fd6e1bef9
Increased default route lifetime to 60 seconds. Routes are now refreshed every time they are looked up.
2007-11-28 20:00:57 +00:00
adamdunkels
996a8af0dd
Fixed include of ruc instead of abc
2007-11-28 20:00:07 +00:00
adamdunkels
6e739853f7
Updated the multihop forwarding interface to match the intended operation of the module: to let the user produce the route, and the mh module only does the forwarding
2007-11-28 19:55:27 +00:00
adamdunkels
dca1e0e446
Changed module name to 'collect' from 'tree' to better reflect the purpose of the module, rather than the particular data structure used to implement it
2007-11-28 16:04:41 +00:00
adamdunkels
b07b46dd79
Removed unused return value from ruc recv callback
2007-11-27 23:32:34 +00:00
adamdunkels
f6cf045413
Always add neighbors to the list regardless if their rtmetric is higher than ours or not. If our rtmetric rises, we may need ot have those neighbors in our list.
2007-11-26 23:31:44 +00:00
adamdunkels
98854f80e0
Made Rime address size configurable through contiki-conf.h
2007-11-26 23:30:35 +00:00
adamdunkels
75be20bea6
Added function for accessing a specific neighbor
2007-11-26 23:30:13 +00:00
adamdunkels
58d6310979
Added #ifdef around MAX definition to avoid compiler warnings
2007-11-26 23:22:41 +00:00
adamdunkels
1e1e44a3f8
Fixed compiler warnings to make code compile with gcc's -pedantic switch
2007-11-17 18:01:00 +00:00
adamdunkels
7fd1eca954
Added debug output
2007-11-17 10:34:17 +00:00
adamdunkels
9bd3c0c07c
Re-added hop count to header, fixes related to ETX computation: adv packets do not add a good etx, timedout packets do not restore the neighbor age, removed unused code
2007-11-17 10:32:54 +00:00
adamdunkels
5e7cbff22a
Fixed compiler warnings
2007-11-17 10:12:19 +00:00
adamdunkels
a7102829e3
Updated ruc callback types to fix compiler warnings
2007-11-17 09:59:48 +00:00
adamdunkels
0a8b1cbd76
Updated ruc callback types to fix compiler warnings
2007-11-17 09:47:55 +00:00
fros4943
532d9814c2
configurable rudolph datasize
2007-11-16 09:17:22 +00:00
nifi
c989d425dc
fixed compiler warning
2007-11-15 13:33:09 +00:00
nifi
a6d827fa1f
moved initialization of ctimer to allow MAC layer to use ctimers
2007-11-15 13:07:42 +00:00
fros4943
c645cad175
fixed conflicting types: nbh.c vs nbh.h
2007-11-15 08:10:42 +00:00
adamdunkels
0a7f35d62c
Added neighborhood discovery module
2007-11-13 21:01:54 +00:00
adamdunkels
1386b8ae8f
Added API to retrieve address of current receiver
2007-11-13 21:00:10 +00:00
adamdunkels
c40dde1209
Updated ruc to send ACKs before notifying applications, and API support for the etx-based tree code
2007-11-13 20:58:46 +00:00
adamdunkels
6845d2a1aa
Updated tree to use expected transmissions (etx) as routing metric
2007-11-13 20:39:29 +00:00
nifi
44480fc7b7
added fix to enable start of ctimers before etimer process has started
2007-11-13 15:13:03 +00:00
nvt-se
6b7173809d
anonymous -> identified.
2007-11-12 12:34:29 +00:00
adamdunkels
feed6cf679
const parameter to rimbuef_copyfrom()
2007-10-25 12:48:46 +00:00
nifi
9a11bc1543
only update rimestats rexmit for retransmissions + added debug output when retransmitting
2007-10-23 14:00:36 +00:00
nifi
0bf47de9ba
fixed compiler warning
2007-10-19 13:50:01 +00:00
nifi
d5580ae7ee
corrected debug print
2007-10-02 13:41:12 +00:00
nifi
1abf2c4c16
fixed compiler warning
2007-09-26 11:34:49 +00:00
nvt-se
33687d8e6f
A function declared in lib/random.h is used, so this file should be included
...
instead of lib/rand.h.
2007-09-14 20:26:52 +00:00
matsutsuka
9d4fc0a1a8
Support for z80(sdcc) port.
...
In order to support, some core modules are modified as follows:
core/sys/dsc.h
- If CTK_CONF_ICONS is diabled, the whole icon-related code is disabled.
- DSC_HEADER is changed to remove extra semicolon.
core/sys/process.h
- process_data_t is expressed by void* in signatures (known bug on sdcc).
core/sys/autostart.h
- autostart_processes is changed to remove extra semicolon.
core/sys/cc.h
- CC_CONF_ASSIGN_AGGREGATE is introduced.
- CC_CONF_INC_CAST_POINTER is introduced, a workaround of a kind
of sdcc bug for an increment.
core/net/hc.c
core/net/uip_arp.c
core/net/uaodv.c
- Aggregation assignments are changed to uip_ipaddr_copy.
core/net/psock.c
core/net/uipbuf.c
core/net/dhcpc.c
apps/shell/shell.c
core/ctk/vnc-server.c
core/ctk/vnc-out.c
- "register" keyword in a signature cannot be used in sdcc,
CC_REGISTER_ARG is used instead.
core/net/uip-over-mesh.c
- An extra semicolon is removed.
apps/dhcp/dhcp-dsc.c
apps/shell/shell-dsc.
apps/ftp/ftp-dsc.c
apps/process-list/process-list-dsc.c
apps/email/email-dsc.c
apps/webserver/webserver-dsc.c
apps/vnc/vnc-dsc.c
apps/vnc/vnc-viewer.h
apps/webbrowser/www-dsc.c
apps/about/about-dsc.c
apps/irc/irc-dsc.c
apps/telnet/telnet-dsc.c
apps/telnetd/telnetd-dsc.c
apps/netconf/netconf-dsc.c
apps/directory/directory-dsc.c
pps/calc/calc-dsc.c
- Modify an extern type to a real declaration, which is static
to prevent a compile error.
core/net/mac/xmac.c
- Variables cannot be defined in a head of block on sdcc.
core/ctk/ctk.h
core/ctk/ctk.c
apps/program-handler/program-handler.c
- If CTK_CONF_ICONS is diabled, the whole icon-related code is disabled.
Makefile.include
- Add a set of configuration for an assembler.
- $(CLEAN) variable is introduced for customized cleanup.
apps/process-list/process-list.c
- PROCESSLIST_CONF_HEIGHT is introduced to address smaller screen size.
core/lib/ctk-filedialog.c
- FILES_CONF_HEIGHT is introduced to address smaller screen size.
- "register" keyword in a signature cannot be used in sdcc,
CC_REGISTER_ARG is used instead.
apps/vnc/vnc-viewer.c
- A cast is added to prevent a compile error.
- "register" keyword in a signature cannot be used in sdcc,
CC_REGISTER_ARG is used instead.
apps/webbrowser/webclient.c
- CC_CONF_INC_CAST_POINTER is introduced, a workaround of a kind
of sdcc bug for an increment.
core/loader/elfloader.c
- A cast is added to prevent a compile error.
core/net/rime/rimeaddr.c
- An initialization is added to prevent a compile error.
core/net/rime/rudolph0.c
- NULL is changed to 0, because NULL causes a compile error.
core/net/rime/route-discovery.c
- Add an argument to match the definition of nf_callbacks.
cpu/z80/strcasecmp.h
cpu/z80/strcasecmp.c
cpu/z80/contiki-sdcc-conf.h
cpu/z80/mtarch.c
cpu/z80/mtarch.h
cpu/z80/Makefile.z80
- New files to make compilation availble on sdcc.
- Added support for multithreading.
2007-08-30 14:39:16 +00:00
adamdunkels
52eb372890
Modified to use the new MAC layer API
2007-05-25 08:06:44 +00:00
adamdunkels
0e6b5e0099
Turn debug output off (which was inadvertedly left on)
2007-05-22 21:53:15 +00:00
adamdunkels
37993d254d
Increased default neighbor lifetime, removed debug output
2007-05-22 21:15:17 +00:00
adamdunkels
26903043a3
Updated format of debug output
2007-05-22 20:58:00 +00:00
adamdunkels
e18b609039
Amount of retransmissions now configurable on a per-packet basis
2007-05-22 20:57:44 +00:00
adamdunkels
c0d3b9111a
Stubborn timer now configurable on a per-transmission basis.
2007-05-22 20:57:20 +00:00
adamdunkels
af43f26ed2
Multiplicative increase in retransmission time. Statistics. Max amount of retransmissions now configurable on a per-packet basis
2007-05-22 20:56:52 +00:00
adamdunkels
525b37ca7a
Added Rime statistics.
2007-05-22 20:56:10 +00:00
adamdunkels
396e8094c6
Added Rime statistics, rmh and rucb
2007-05-22 20:55:53 +00:00
adamdunkels
a68b8a0a0d
Rime statistics gathering
2007-05-22 20:48:41 +00:00
adamdunkels
0a26f4a712
Reliable single-hop unicast bulk transfer
2007-05-22 20:45:49 +00:00
adamdunkels
0206e1cd3b
Hop-by-hop reliable multi-hop communication primitive (untested)
2007-05-22 20:45:18 +00:00
oliverschmidt
e5d6dd1db5
Removed sources from makefile which don't exist in the CVS repository.
2007-05-17 19:22:04 +00:00
adamdunkels
940da856de
Bugfixes, updates
2007-05-15 08:09:21 +00:00
adamdunkels
a9e8e9f4fe
Replaced uabc with polite, uibc with ipolite, added rudolph2
2007-05-15 08:08:05 +00:00
adamdunkels
ac9ba33bd5
Yet another network bulk flooding protocol
2007-05-15 08:07:46 +00:00
adamdunkels
db0571bef3
Identified polite broadcast primitive
2007-05-15 07:41:36 +00:00
adamdunkels
f539f4efd8
Polite broadcast primitive
2007-05-15 07:41:22 +00:00
adamdunkels
cda806dc84
Bugfix: rudolph1 sometimes failed because the first packet was received from a neighbor
2007-04-02 19:12:37 +00:00
adamdunkels
2d42bd9e2a
Now keeps track of highest chunk number heard and sends NACKs until it sees it
2007-04-02 17:53:27 +00:00
adamdunkels
a26906f478
Made send intervals configurable when sending a new file
2007-04-02 09:51:45 +00:00
adamdunkels
ac3b3ea3ca
Removed unused file
2007-03-31 18:36:03 +00:00
adamdunkels
6dc06d09af
Made the number of retransmissions configurable
2007-03-31 18:33:27 +00:00
adamdunkels
91aa54dc77
Made advertisments for new shorter routes quicker, and advertisements for longer routes slower
2007-03-31 18:33:04 +00:00
adamdunkels
0650a014b5
Documentation updates
2007-03-31 18:31:27 +00:00
adamdunkels
bc1bb96809
Documentation fixes
2007-03-29 23:18:47 +00:00
adamdunkels
2f079ca8e2
Debug output
2007-03-29 23:18:22 +00:00
adamdunkels
4cde369174
Added call to timedout callback
2007-03-29 22:22:44 +00:00
adamdunkels
81b469d4b7
Made buffer sizes configurable from contiki-conf.h
2007-03-29 22:22:20 +00:00
adamdunkels
8e0ae73fa5
Increased default packet size to 64, removed out-commented code
2007-03-28 19:52:27 +00:00
adamdunkels
75dc71f70b
Minor documentation change
2007-03-28 19:51:33 +00:00
oliverschmidt
f60b7aabcf
Added stdio.h for printf.
2007-03-26 22:45:49 +00:00
adamdunkels
fbdd9799bd
Use random_rand() instead of rand() due to bug on msp430
2007-03-25 21:44:23 +00:00
adamdunkels
06386b6f30
Reduce header before passing over to receiver
2007-03-25 21:44:06 +00:00
adamdunkels
41630b0f03
Free queued packet when closing
2007-03-25 21:43:23 +00:00
oliverschmidt
90f82d6a12
Keep system includes in front of Contiki includes.
2007-03-25 21:31:24 +00:00
oliverschmidt
4043448c02
Make consistent presumptions about inlcude paths.
2007-03-25 21:29:02 +00:00
adamdunkels
0c0d823dbf
Typo
2007-03-25 12:13:04 +00:00
adamdunkels
d19e475fe6
Fixed include files
2007-03-25 12:06:39 +00:00
adamdunkels
f69268b4ab
Timeouts configurable at run-time
2007-03-25 12:06:28 +00:00
adamdunkels
e12086c980
Documentation fixes
2007-03-25 12:05:51 +00:00
adamdunkels
f3872aac48
Make route lifetime dynamically configurable
2007-03-25 12:03:59 +00:00
adamdunkels
4a2f71c3ef
Make use of consistent timer interface code
2007-03-25 12:03:41 +00:00
adamdunkels
6f72d9282b
Added debugging output
2007-03-25 12:03:12 +00:00