I made a server program (server.c) which receives data from a client program (client.c) using a self made protocol.
The server "grants" the client a number of bytes using an MPCP message, and then the client sends those bytes. Afterwards the client reports how many bytes it has in his buffer. There are of course multiple clients, and this way of working implements a form of TDMA (time division multiple access) and DBA (dynamic bandwidth allocation).
The client and server are programmed in C using libnet and libpcap (using polling).
Now my question: how do i use a third party packet generator with the client program?
In my client program I send the granted bytes on a very low level using libnet: I make frames of 1500 bytes. I don't know how to use these things (a packet generator and my client.c file) together.
I prefer to use the Linux kernel packet generator...
Is this possible?