How to virtualise higher layers
I am using this library to emulate a W5100 Ethernet chip. Works as a charm for the so called MACRAW mode, where the guest sends to the W5100 Ethernet II frames.
The card allows the guest to send as well IP, UDP and TCP datagrams.
I see that slirp_input
dispatches the data to the right protocol handler.
I was wondering if it would make any sense to expose calls to udp_input
, ip_input
and so on?
Otherwise, I guess I need to make up the missing header and still call slirp_input
?