|
/*
* Close a file handle to a raw packet type.
*/
void
CloseNetworkLink(int sock)
{
close(sock);
}
/*
* Write a packet to the network. You have to give a device to
* this function. This is a device name (eg 'eth0' for the first
* ethernet card). Please don't assume eth0, make it configurable
* - plip is ethernet like but not eth0, ditto for the de600's.
*
* Return: -1 is an error
* otherwise bytes written.
*/
int
WriteToNetwork 页码:[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] 第5页、共11页 |