Send a packet to the stack
#include <net/if_vp.h>
int vp_putpkt( vpid_t id,
struct mbuf * m,
void * info );
vpack3r.lib, vpack3s.lib
The vp_putpkt() function does the opposite of vp_getpkt(): it sends a packet to the stack. The mbuf chain must contain IP packets only. All addresses in the chain are converted to TCP/IP stack address spaces so your application doesn't need to worry about them.
struct flt_pktinfo
{
short flag;
char ifname[IFNAMSIZ];
struct timeval tstamp;
};
![]() |
Any mbuf chain sent to the stack must first be allocated by one of: vp_mclget(), vp_mfree(), vp_mfreem(), vp_mget(), vp_mgethdr(). |
| Safety: | |
|---|---|
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |