19 lines
251 B
C
19 lines
251 B
C
#ifndef _NETPKT_H
|
|
#define _NETPKT_H
|
|
|
|
#include <sys/socket.h>
|
|
#include <netinet/in.h>
|
|
#include <netinet/ip.h>
|
|
|
|
#include "list.h"
|
|
|
|
struct net_pkt {
|
|
struct list_head list;
|
|
|
|
struct sockaddr_in addr;
|
|
unsigned int size;
|
|
unsigned char buf[0];
|
|
};
|
|
|
|
#endif
|