Hi, On 12/14/2016 08:20 AM, Xue Wenqian wrote: > Hi, > > Recently I find a wpan-ping problem: wpan-ping process is always > running, when there is another process runing on wpan interface, which > will also transmit packets via wpan, the non-wpanping packets will also > be received by recv() of wpan-ping, leading to the "Sequence number did > not match" problem. It seems that the recv() function can not filter out > non-wpanping packets. > In my opinion: So the currently known other upper layer protocol is 6LoWPAN. According to 6LoWPAN dispatches [0]: 00 xxxxxx 0 NALP so the wpan-ping dataframe should start with the bit pattern 00. Then for extra stuff the payload should do some checksum stuff, e.g. ICMPv6 at tail -> if it doesn't match drop it. Then most frames will be filtered, the rest is the usual header parsing, if it doesn't match there -> drop it. Wait for original author Stefan, for his opinion... I do here some suggestions only. - Alex [0] https://www.iana.org/assignments/_6lowpan-parameters/_6lowpan-parameters.xhtml -- To unsubscribe from this list: send the line "unsubscribe linux-wpan" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html