Skip to content

Commit

Permalink
Merge pull request contiki-os#2028 from joakimeriksson/minimal-net-ND…
Browse files Browse the repository at this point in the history
…-fix

added support for 6-bytes link-layer address
  • Loading branch information
alignan authored Jan 10, 2017
2 parents 247d79e + cbf4a84 commit 82f3ce3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions core/net/linkaddr.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ const linkaddr_t linkaddr_null = { { 0, 0 } };
#if LINKADDR_SIZE == 8
const linkaddr_t linkaddr_null = { { 0, 0, 0, 0, 0, 0, 0, 0 } };
#endif /*LINKADDR_SIZE == 8*/
#if LINKADDR_SIZE == 6
const linkaddr_t linkaddr_null = { { 0, 0, 0, 0, 0, 0 } };
#endif /*LINKADDR_SIZE == 6*/
#endif /*LINKADDR_SIZE == 2*/


Expand Down
2 changes: 1 addition & 1 deletion platform/minimal-net/contiki-conf.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ typedef int32_t s32_t;

typedef unsigned short uip_stats_t;


#if NETSTACK_CONF_WITH_IPV6
/* The Windows build uses wpcap to connect to a host interface. It finds the interface by scanning for
* an address, which can be specified here and overridden with the command line.
Expand Down Expand Up @@ -148,6 +147,7 @@ typedef unsigned short uip_stats_t;
#endif

#define UIP_CONF_LLH_LEN 14
#define LINKADDR_CONF_SIZE 6
#define UIP_CONF_MAX_LISTENPORTS 40
#define UIP_CONF_MAX_CONNECTIONS 40
#define UIP_CONF_BYTE_ORDER UIP_LITTLE_ENDIAN
Expand Down

0 comments on commit 82f3ce3

Please sign in to comment.