Correct me if I'm wrong but it seems OSv does not support raw sockets:
fd=socket(AF_PACKET,SOCK_RAW,htons(ETH_P_ALL));
Is there any way to send/receive network packets directly to/from the network driver in OSv ?
Has anyone used OSv to implement network functions that work at L2 or L3 levels rather than L4 (TCP or UDP) ?
Thanks
--
You received this message because you are subscribed to the Google Groups "OSv Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to osv-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/b3788d18-74a7-4d7f-91ad-7998992fbdcan%40googlegroups.com.
Hi,Unfortunately, I have no idea what it would take to add raw sockets support. Please be aware that we maintain another IPV6 branch - https://github.com/cloudius-systems/osv/tree/ipv6 - which besides IPV6 might have better networking support but I doubt it supports raw sockets.I am also adding Charles Meyers from Spirent who wrote original IPV6 support to this thread. He may have some thoughts on this matter. Also, Spirent has also its own OSv fork - https://github.com/SpirentOrion/osv - which has extra stuff/fixes to networking stack (I would like to port some of those to the mainline OSv at some point).
Another alternative (for me and maybe others) would be to have a
standard way to hook packets direct from the virtio interface.
To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/6a3ce5daecbcb84bcdee0738242937e11d2f9d33.camel%40rossfell.co.uk.
On Thu, Jul 23, 2020 at 12:05 PM Rick Payne <ri...@rossfell.co.uk> wrote:
Another alternative (for me and maybe others) would be to have a
standard way to hook packets direct from the virtio interface.
We did have something like that in the past, and I remember Vlad used it to writesome sort of super-efficient HTTP server or something like that - Vlad, do you rememberwhere it is? I can't recall now :-(
On 7/23/20 5:38 AM, Nadav Har'El wrote:
On Thu, Jul 23, 2020 at 12:05 PM Rick Payne <ri...@rossfell.co.uk> wrote:
Another alternative (for me and maybe others) would be to have a
standard way to hook packets direct from the virtio interface.
We did have something like that in the past, and I remember Vlad used it to writesome sort of super-efficient HTTP server or something like that - Vlad, do you rememberwhere it is? I can't recall now :-(
Me neither. Sorry. Too long ago... ;)
--
You received this message because you are subscribed to a topic in the Google Groups "OSv Development" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/osv-dev/1Y9mGIipxfs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to osv-dev+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/osv-dev/CAGUyND8769mKj44YNdosBA2fcA_zpdMRxLXjF5VYxmg%3DkCyTAg%40mail.gmail.com.