Author Topic: Lwmesh Broadcast frame Modification  (Read 758 times)

0 Members and 1 Guest are viewing this topic.

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Lwmesh Broadcast frame Modification
« on: August 21, 2019, 06:23:55 am »
Hi,
i would like to modify the Brodcast frame at Router side which is received from End Device .. I read the developer document that "The Link Local subfield is 1 bit in length, and it may be set to one to prevent neighboring nodes from rebroadcasting a frame"..  I set my code in End Device as
Code: [Select]
                appNwkDataReq.dstAddr = 0xFFFF;
appNwkDataReq.dstEndpoint = APP_ENDPOINT;
appNwkDataReq.srcEndpoint = APP_ENDPOINT;
appNwkDataReq.options =  NWK_OPT_ENABLE_SECURITY|NWK_OPT_LINK_LOCAL;

but the broadcast frames are still broadcasting from the Routers.. How can i manage this frames.. Is my configuration is ok?
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11905
  • Country: us
    • Personal site
Re: Lwmesh Broadcast frame Modification
« Reply #1 on: August 21, 2019, 06:32:07 am »
The code is fine. Once again, why not set a debugger in the router and see why it rebroadcasts?

The check that should prevent rebroadcasts is "0 == header->nwkFcf.linkLocal" in nwkRx.c.
« Last Edit: August 21, 2019, 06:37:52 am by ataradov »
Alex
 

Offline PeiliTopic starter

  • Regular Contributor
  • *
  • Posts: 108
  • Country: in
Re: Lwmesh Broadcast frame Modification
« Reply #2 on: August 21, 2019, 06:39:05 am »
The code is fine. Once again, why not set a debugger in the router and see why it rebroadcasts?
my Router configuration is
Code: [Select]
                           appNwkDataReq.dstAddr = 0;
                           appNwkDataReq.dstEndpoint = APP_ENDPOINT;
                           appNwkDataReq.srcEndpoint = APP_ENDPOINT;
                           appNwkDataReq.options = NWK_OPT_ACK_REQUEST | NWK_OPT_ENABLE_SECURITY;

is this ok?
Where to set debugger in Router code?
 

Online ataradov

  • Super Contributor
  • ***
  • Posts: 11905
  • Country: us
    • Personal site
Re: Lwmesh Broadcast frame Modification
« Reply #3 on: August 21, 2019, 06:40:41 am »
This is not a "router configuration". This is just a configuration for some request. Broadcasts have nothing to do with what happens on the application level. This is totally irrelevant to anything.

Also, this is the last reply if you don't start capitalizing your sentences.
Alex
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf