This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Contiki 6lbr - destination address changes?

Other Parts Discussed in Thread: CC2531

EDIT: I needed to split my question into 2 posts, otherwise it requires admin approval and I guess no admin is active today as I haven't get nor approval or rejection. 
Hi,
We have similar setup as 6lbr-example1 has:
- 6lbr on RPI is compiled from the source code on GitHub
- One srf06 + CC2650EM is on the 6LoWPAN side. The node has "aaaa::212:4b00:68c:158f" address
I send a UDP unicast packet from the PC. Here below is a Wireshark capture from the PC. The destination address is correct as it is seen below.
I use Sensniff at another PC and here is its capture 
The destination address is shown as ::212:4b00:68c:158f (aaaa part disappears? ). The packet has correct dest. MAC address, but L3 address is not correct. However, I see and ACK (L2 ack?). But, I don't receive any packet on the node
  • Here is another wireshark capture from sensniff while I ping the node from the PC.

    Both UDP and ping makes its way to the node as I can see the node sends L2 ACK after it gets the packet. However, I guess the UDP packet can't go to the layer 3 as the destination address is wrong.  Why does the destination address change and how I can solve the issue?
  • Here are some settings:
    6lbr.log
    root@raspberrypi:/var/log# cat 6lbr.log 
    ********************************************************************************
    Thu Oct 1 15:30:08 UTC 2015 : Starting 6LBR
    /usr/lib/6lbr/bin/cetic_6lbr_router -c /etc/6lbr/nvm.dat -s /dev/ttyACM0 -t eth0 -r -B 115200 -U /usr/lib/6lbr/6lbr-ifup -D /usr/lib/6lbr/6lbr-ifdown -w /usr/lib/6lbr/www -L 3  -W /var/log/6lbr.timestamp -P 60 -C /var/log/6lbr.ip  -m /usr/lib/6lbr/plugins  
    Contiki-6lbr-1.3.2-34-g3715b49 started with IPV6, RPL
    Rime started with address 1.2.3.4.5.6.7.8
    MAC CSMA RDC br-rdc NETWORK sicslowpan
    Log level : 30
    Log services : ffffffff
    2015-09-01 15:30:08.133472: INFO: ETH: 6LBR watchdog started (interval: 60)
    2015-09-01 15:30:08.134880: INFO: 6LBR: Starting 6LBR version 1.3.3 (Contiki-6lbr-1.3.2-34-g3715b49)
    2015-09-01 15:30:08.134923: INFO: NVM: Opening nvm file '/etc/6lbr/nvm.dat'
    2015-09-01 15:30:08.135064: INFO: NVM: NVM Magic : 2009
    2015-09-01 15:30:08.135096: INFO: NVM: NVM Version : 1
    2015-09-01 15:30:08.135120: INFO: SCMD: Started br-cmd process
    2015-09-01 15:30:08.135141: INFO: NODECFG: No node_config.conf file specified
    2015-09-01 15:30:08.135162: INFO: ETH: RAW/TAP init
    2015-09-01 15:30:08.143748: INFO: SLIP: SLIP started on /dev/ttyACM0
    2015-09-01 15:30:08.180118: INFO: TAP: opened device /dev/eth0
    2015-09-01 15:30:08.180716: INFO: TAP: Running 6lbr-ifup script '/usr/lib/6lbr/6lbr-ifup'
    eth0      Link encap:Ethernet  HWaddr b8:27:eb:6c:53:a8  
              inet6 addr: bbbb::100/64 Scope:Global
              inet6 addr: fe80::ba27:ebff:fe6c:53a8/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:6 errors:0 dropped:0 overruns:0 frame:0
              TX packets:28 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:1004 (1004.0 B)  TX bytes:5258 (5.1 KiB)
    2015-09-01 15:30:08.552348: INFO: TAP: Eth MAC address : b8:27:eb:6c:53:a8
    2015-09-01 15:30:08.552651: INFO: BR-RDC: Reset SLIP Radio
    2015-09-01 15:30:08.552775: INFO: BR-RDC: Fetching MAC address
    2015-09-01 15:30:08.586084: INFO: SLIP: cc2531: Reboot requested
    2015-09-01 15:30:08.587484: INFO: SLIP: cc2531: Reverting to h/w MAC but not rebooting
    2015-09-01 15:30:08.616783: INFO: BR-RDC: Got MAC: 00:12:4b:00:01:72:f0:34
    2015-09-01 15:30:09.552810: INFO: 6LBR: Tentative local IPv6 address fe80::212:4b00:172:f034
    2015-09-01 15:30:09.553824: INFO: 6LBR: Tentative global IPv6 address (WSN) aaaa::212:4b00:172:f034
    2015-09-01 15:30:09.554898: INFO: 6LBR: Tentative global IPv6 address (ETH) bbbb::100
    2015-09-01 15:30:09.555265: INFO: 6LBR: RA Daemon enabled
    2015-09-01 15:30:09.555536: INFO: NVM: Opening nvm file '/etc/6lbr/nvm.dat'
    2015-09-01 15:30:09.556802: INFO: 6LBR: Configured as DODAG Root
    2015-09-01 15:30:09.557076: INFO: 6LBR: Starting as RPL ROUTER
    2015-09-01 15:30:09.559050: INFO: UDPS: UDP server started
    2015-09-01 15:30:09.561063: INFO: 6LBR: CETIC 6LBR Started
    2015-09-01 15:30:09.561527: INFO: SLIP: cc2531: Setting RF channel 0x19
    root@raspberrypi:/var/log# cat 6lbr.err
    ********************************************************************************
    Thu Oct 1 15:30:08 UTC 2015 : Starting 6LBR
     root@raspberrypi:/var/log# cat 6lbr.err
    ********************************************************************************
    Thu Oct 1 15:30:08 UTC 2015 : Starting 6LBR
    root@raspberrypi:/var/log# 
    Reading nvm file '/etc/6lbr/nvm.dat'/6lbr/bin/nvm_tool --print /etc/6lbr/nvm.dat 
    Channel : 25
    WSN network prefix : aaaa::
    WSN network prefix length : 64
    WSN IP address : aaaa::100
    WSN accept RA : True
    WSN IP address autoconf : True
    Eth network prefix : bbbb::
    Eth network prefix length : 64
    Eth IP address : bbbb::100
    Eth default router : ::
    Eth IP address autoconf : False
    Local address rewrite : True
    Smart Multi BR : False
    RA daemon : True
    RA router lifetime : 0
    RA maximum interval : 600
    RA minimum interval : 200
    RA minimum delay : 3
    RA PIO enabled : True
    RA prefix valid lifetime : 86400
    RA prefix preferred lifetime : 14400
    RA RIO enabled : True
    RA RIO lifetime : 1800
    RPL instance ID : 30
    RPL Preference : 0
    RPL version ID :  : 16
    RPL DIO interval doubling : 8
    RPL DIO minimum interval : 12
    RPL DIO redundancy : 10
    RPL default lifetime : 30
    RPL minimum rank increment : 256
    RPL lifetime unit : 256
    Webserver configuration page disabled : False

    wireshark captures.zip