How can I send already encapsulated Ethernet frame payload to server? Basically what I would like to do is to is route Ethernet packages I get from other peripherals to their needed destinations and packets I receive send to requested device on peripheral. Program will be running on BeagleBone Black with Debian OS. Steps program should do from my point of view:
- # <IPv6<UDP<DATA>>> packet received on some peripheral (UART in exact case) sent to server requested by <IPv6> destination address field
- # <IPv6<UDP<DATA>>> packet need to be sent to server that server application would receive <DATA> extracted from IPv6 and UDP encapsulation
- # <IPv6<UDP<DATA>>> packet need to be sent to server that server would know that device which is requested is available in BBB local network
- # <IPv6<UDP<DATA>>> packet received from server would be sent to requested device
Also how can I get data sent from server, since if I'm not very wrong, system should receive them also encapsulated in Routing header, not as RAW data payload
Can someone point me right direction how can I make functionality I need to work?
Thank you in advance.
Laurynas