Skip to content

Commit

Permalink
Fix a number of leftover mentions of aaaa as a prefix (now fd00)
Browse files Browse the repository at this point in the history
  • Loading branch information
simonduq committed Mar 14, 2016
1 parent cd981b2 commit 4bf868f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions examples/ipso-objects/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ First program a device with the examples/ipso-objects/example-ipso-objects.c
>...
```

After that start up a native-border router or other border router on aaaa::1/64
After that start up a native-border router or other border router on fd00::1/64
or another prefix - NOTE: if you use another prefix you will need to change LWM2M_SERVER_ADDRESS for which the device will register - in project-conf.h:
```
#define LWM2M_SERVER_ADDRESS "aaaa::1"
#define LWM2M_SERVER_ADDRESS "fd00::1"
```

Then when everything is setup you can download a Leshan and use that to
Expand Down
2 changes: 1 addition & 1 deletion examples/ipso-objects/example-ipso-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
#endif

#ifndef LWM2M_SERVER_ADDRESS
#define LWM2M_SERVER_ADDRESS "aaaa::1"
#define LWM2M_SERVER_ADDRESS "fd00::1"
#endif

PROCESS(example_ipso_objects, "IPSO object example");
Expand Down
12 changes: 6 additions & 6 deletions examples/ipso-objects/example-server.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,27 +229,27 @@ setup_network(void)
* Obviously the choice made here must also be selected in udp-client.c.
*
* For correct Wireshark decoding using a sniffer, add the /64 prefix to the 6LowPAN protocol preferences,
* e.g. set Context 0 to aaaa::. At present Wireshark copies Context/128 and then overwrites it.
* (Setting Context 0 to aaaa::1111:2222:3333:4444 will report a 16 bit compressed address of aaaa::1111:22ff:fe33:xxxx)
* e.g. set Context 0 to fd00::. At present Wireshark copies Context/128 and then overwrites it.
* (Setting Context 0 to fd00::1111:2222:3333:4444 will report a 16 bit compressed address of fd00::1111:22ff:fe33:xxxx)
* Note Wireshark's IPCMV6 checksum verification depends on the correct uncompressed addresses.
*/
#if 0
/* Mode 1 - 64 bits inline */
uip_ip6addr(&ipaddr, 0xaaaa, 0, 0, 0, 0, 0, 0, 1);
uip_ip6addr(&ipaddr, UIP_DS6_DEFAULT_PREFIX, 0, 0, 0, 0, 0, 0, 1);
#elif 1
/* Mode 2 - 16 bits inline */
uip_ip6addr(&ipaddr, 0xaaaa, 0, 0, 0, 0, 0x00ff, 0xfe00, 1);
uip_ip6addr(&ipaddr, UIP_DS6_DEFAULT_PREFIX, 0, 0, 0, 0, 0x00ff, 0xfe00, 1);
#else
/* Mode 3 - derived from link local (MAC) address */
uip_ip6addr(&ipaddr, 0xaaaa, 0, 0, 0, 0, 0, 0, 0);
uip_ip6addr(&ipaddr, UIP_DS6_DEFAULT_PREFIX, 0, 0, 0, 0, 0, 0, 0);
uip_ds6_set_addr_iid(&ipaddr, &uip_lladdr);
#endif

uip_ds6_addr_add(&ipaddr, 0, ADDR_MANUAL);
root_if = uip_ds6_addr_lookup(&ipaddr);
if(root_if != NULL) {
dag = rpl_set_root(RPL_DEFAULT_INSTANCE, &ipaddr);
uip_ip6addr(&ipaddr, 0xaaaa, 0, 0, 0, 0, 0, 0, 0);
uip_ip6addr(&ipaddr, UIP_DS6_DEFAULT_PREFIX, 0, 0, 0, 0, 0, 0, 0);
rpl_set_prefix(dag, &ipaddr, 64);
PRINTF("created a new RPL dag\n");
} else {
Expand Down
2 changes: 1 addition & 1 deletion examples/ipv6/rpl-tsch/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ PROCESS_THREAD(node_process, ev, data)

if(is_coordinator) {
uip_ipaddr_t prefix;
uip_ip6addr(&prefix, 0xaaaa, 0, 0, 0, 0, 0, 0, 0);
uip_ip6addr(&prefix, UIP_DS6_DEFAULT_PREFIX, 0, 0, 0, 0, 0, 0, 0);
net_init(&prefix);
} else {
net_init(NULL);
Expand Down
2 changes: 1 addition & 1 deletion examples/jn516x/tsch/tx-power-verification/node/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ PROCESS_THREAD(start_app, ev, data)
/* Start network stack */
if(is_coordinator) {
uip_ipaddr_t prefix;
uip_ip6addr(&prefix, 0xaaaa, 0, 0, 0, 0, 0, 0, 0);
uip_ip6addr(&prefix, UIP_DS6_DEFAULT_PREFIX, 0, 0, 0, 0, 0, 0, 0);
rpl_tools_init(&prefix);
} else {
rpl_tools_init(NULL);
Expand Down
2 changes: 1 addition & 1 deletion examples/jn516x/tsch/uart1-test-node/uart1-test-node.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ PROCESS_THREAD(start_app, ev, data)
/* Start network stack */
if(is_coordinator) {
uip_ipaddr_t prefix;
uip_ip6addr(&prefix, 0xaaaa, 0, 0, 0, 0, 0, 0, 0);
uip_ip6addr(&prefix, UIP_DS6_DEFAULT_PREFIX, 0, 0, 0, 0, 0, 0, 0);
rpl_tools_init(&prefix);
} else {
rpl_tools_init(NULL);
Expand Down

0 comments on commit 4bf868f

Please sign in to comment.