I have a network of Lrwpan devices in NS3 and I want to make some nodes operate as sniffers. I enabled promiscuous mode in PCAP files but I want also to process the information that are contained in these packets. How should I get the actual content of the packet in NS3 so that I can do some calculations? For example, if A -- B -- C is my topology and B is in RX/TX range of A and C, I want to enable B sniff packets of neighbors. Is this possible to do it in NS3? I don't want to see packets only in pcap file.
Edit: I found the SetPromiscuousMode() from MAC layer in Netdevice and enters promiscuous mode. However, is not able to send any packet, just receives. I want to enable TX and RX packets. Is that possible?