I'm confused by the documentation I've found on host stack access using netmap. 
The documentation says:
"Packets generated by the host stack are extracted from the mbufs and stored in 
the slots of an input ring, similar to those used for traffic coming from the 
network. Packets destined to the host stack are queued by the netmap client 
into an  output netmap ring, and from there encapsulated into mbufs and passed 
to the host stack as if they were coming from the corresponding netmap-enabled 
NIC."

Does this refer only to packets generated internally by the host stack, or can 
they be triggered by user-level code? 
Suppose I put an interface into netmap mode (eg eth1) with the NIOCREGIF flags 
indicating NETMAP_SW_RING. Is there any way to then open a socket, bind it to 
the IP address of that interface and then try to issue a connect via that 
interface? Do I instead have to craft the entire connect packet (ie a TCP SYN) 
and send it via a Netmap ring? 

_______________________________________________
freebsd-net@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscr...@freebsd.org"

Reply via email to