Olaf Bergmann 4635435771 Created a self-contained Contiki server example
Directory examples/contiki now contains a small example server for
Contiki and a Makefile for platform minimal-net.

Build:

  make contiki     # clones Contiki
  make server      # creates the minimal-net coap server

Run:

Unfortunately, you have to run the server with sudo unless you
set CAP_NET_ADMIN for both, the server executable, and ifconfig
(sudo setcap cap_net_admin+pei ...).

  sudo ./server

Then, add the server's interface address to the tap0 device and
optionally set a default route:

  sudo ip -6 a a aaaa::1000 dev tap0
  sudo ip -6 r a aaaa::/64 dev tap0

Although everything should work now, it does not. I had to send
router advertisements on tap0:

  sudo radvd -C ./radvd.conf

Note that on Debian (and Ubuntu, and ...), radvd will not start
when IPv6 forwarding is disabled (which is usually the case on
end systems). Trying to enable like this did not work for me:

  sudo sysctl -w net.ipv6.conf.tap0.forwarding=1
  sudo sysctl -w net.ipv6.conf.tap0.mc_forwarding=1

Workaround (ugly): get the radvd sources, compile them and use that.
2015-02-16 16:30:28 +01:00
2011-06-02 02:41:48 +02:00
2012-03-10 00:58:55 +01:00
2015-02-16 13:32:54 +01:00
2015-02-15 20:41:50 +01:00
2011-06-13 18:57:51 +02:00
2014-08-15 17:41:16 +02:00
2014-07-06 19:23:37 +02:00
2015-02-15 22:44:37 +01:00
2015-02-16 13:33:41 +01:00
2014-07-06 19:23:37 +02:00
2011-06-02 02:43:59 +02:00
2011-06-16 18:31:09 +02:00

libcoap: A C implementation of IETF Constrained Application Protocol (RFC 7252)

Copyright (C) 2010--2014 by Olaf Bergmann bergmann@tzi.org

ABOUT LIBCOAP

libcoap is a C implementation of a lightweight application-protocol for devices that are constrained their resources such as computing power, RF range, memory, bandwith, or network packet sizes. This protocol, CoAP, is standardized by the IETF as RFC 7252. For further information related to CoAP, see http://coap.technology.

PACKAGE CONTENTS

This directory contains a protocol parser and basic networking functions for platform with support for malloc() and BSD-style sockets. The examples directory contains a client and a server to demonstrate the use of this library.

LICENSE INFORMATION

This library is published as open-source software without any warranty of any kind. Use is permitted under the terms of the GNU General Public License (GPL), Version 2 or higher, OR the revised BSD license. Please refer to LICENSE.GPL oder LICENSE.BSD for further details.

Languages
C 93.7%
M4 2.9%
CMake 1.8%
Shell 0.7%
Makefile 0.5%
Other 0.4%