Skip to content

Commit

Permalink
[SQUASH ME] also for the macros
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Nov 14, 2014
1 parent 2a4125b commit 52d7a85
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion cpu/native/include/nativenet.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

#ifndef NATIVE_MAX_DATA_LENGTH
#include "tap.h"
#ifdef MODULE_SIXLOWPAN
#ifdef MODULE_SIXLOWPAN_LEGACY
#define NATIVE_MAX_DATA_LENGTH (127)
#else
#define NATIVE_MAX_DATA_LENGTH (TAP_MAX_DATA)
Expand Down
4 changes: 2 additions & 2 deletions sys/auto_init/auto_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
#include "rtc.h"
#endif

#ifdef MODULE_SIXLOWPAN
#ifdef MODULE_SIXLOWPAN_LEGACY
#include "sixlowpan_legacy.h"
#endif

Expand Down Expand Up @@ -241,7 +241,7 @@ void auto_init(void)
DEBUG("Auto init net_if module.\n");
auto_init_net_if();
#endif
#ifdef MODULE_SIXLOWPAN
#ifdef MODULE_SIXLOWPAN_LEGACY
DEBUG("Auto init 6LoWPAN module.\n");
sixlowpan_legacy_lowpan_init();
#endif
Expand Down
2 changes: 1 addition & 1 deletion sys/net/network_layer/sixlowpan_legacy/ip.c
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ ipv6_addr_t *ipv6_addr_set_by_eui64(ipv6_addr_t *out, int if_id,

if (net_if_get_eui64((net_if_eui64_t *) &out->uint8[8], if_id,
force_generation)) {
#ifdef MODULE_SIXLOWPAN
#ifdef MODULE_SIXLOWPAN_LEGACY

if (!sixlowpan_legacy_lowpan_eui64_to_short_addr((net_if_eui64_t *)&out->uint8[8])) {
out->uint8[8] ^= 0x02;
Expand Down
12 changes: 6 additions & 6 deletions sys/shell/commands/sc_net_if.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "net_if.h"
#include "transceiver.h"

#ifndef MODULE_SIXLOWPAN
#ifndef MODULE_SIXLOWPAN_LEGACY
#define ADDR_REGISTERED_MAX (6)
#define ADDRS_LEN_MAX (16)

Expand Down Expand Up @@ -339,7 +339,7 @@ void _net_if_ifconfig_add_ipv6(int if_id, int argc, char **argv)
type = NULL;
}

#ifdef MODULE_SIXLOWPAN
#ifdef MODULE_SIXLOWPAN_LEGACY
ipv6_addr_t ipv6_addr;
void *addr_data = &ipv6_addr;
#else
Expand All @@ -355,7 +355,7 @@ void _net_if_ifconfig_add_ipv6(int if_id, int argc, char **argv)
return;
}

#ifdef MODULE_SIXLOWPAN
#ifdef MODULE_SIXLOWPAN_LEGACY

if (addr.addr_protocol & NET_IF_L3P_IPV6_PREFIX) {
if (ndp_add_prefix_info(if_id, &ipv6_addr, addr.addr_len,
Expand Down Expand Up @@ -457,7 +457,7 @@ void _net_if_ifconfig_create(char *transceivers_str)

static inline int _is_multicast(uint8_t *addr)
{
#ifdef MODULE_SIXLOWPAN
#ifdef MODULE_SIXLOWPAN_LEGACY
return ipv6_addr_is_multicast((ipv6_addr_t *) addr);
#else
return *addr == 0xff;
Expand All @@ -466,7 +466,7 @@ static inline int _is_multicast(uint8_t *addr)

static inline int _is_link_local(uint8_t *addr)
{
#ifdef MODULE_SIXLOWPAN
#ifdef MODULE_SIXLOWPAN_LEGACY
return ipv6_addr_is_link_local((ipv6_addr_t *) addr);
#else
return (addr[0] == 0xfe && addr[1] == 0x80) ||
Expand Down Expand Up @@ -627,7 +627,7 @@ void _net_if_ifconfig_list(int if_id)
puts("\n");
}

#ifdef MODULE_SIXLOWPAN
#ifdef MODULE_SIXLOWPAN_LEGACY
if (addr_ptr->addr_protocol & NET_IF_L3P_IPV6) {
char addr_str[IPV6_MAX_ADDR_STR_LEN];
printf(" inet6 addr: ");
Expand Down

0 comments on commit 52d7a85

Please sign in to comment.