summaryrefslogtreecommitdiffstats
path: root/usr/kinit/ipconfig/packet.h
blob: 4367efe1428e7236cee954376a497c471f4d650a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef IPCONFIG_PACKET_H
#define IPCONFIG_PACKET_H

struct iovec;

int packet_open(struct netdev *dev);
void packet_close(struct netdev *dev);
int packet_send(struct netdev *dev, struct iovec *iov, int iov_len);
void packet_discard(struct netdev *dev);
int packet_recv(struct netdev *dev, struct iovec *iov, int iov_len);

#endif /* IPCONFIG_PACKET_H */