#include <linux/if_packet.h>
#include <linux/if_ether.h>
#include <sys/ioctl.h>
#include <net/if.h>
#include <unistd.h>
#include <string.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include "socketIO.h"
Functions | |
int | rst_open (char *i, int mode) |
Open a raw socket. | |
int | rst_send (int fd, unsigned char *buf, int len) |
Send a raw ethernet frame. | |
int | rst_receive (int fd, unsigned char *buf, int t) |
Receive next frame. | |
void | rst_close (int fd) |
Close a raw socket. |
|
Close a raw socket.
|
|
Open a raw socket.
|
|
Receive next frame.
|
|
Send a raw ethernet frame.
|