diff options
Diffstat (limited to 'trafgen_dev.h')
-rw-r--r-- | trafgen_dev.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/trafgen_dev.h b/trafgen_dev.h index 6708eb8..80086d7 100644 --- a/trafgen_dev.h +++ b/trafgen_dev.h @@ -33,14 +33,14 @@ struct dev_io { struct dev_io_ops { int(*open) (struct dev_io *dev, const char *name, enum dev_io_mode_t mode); - int(*write) (struct dev_io *dev, const struct packet *pkt); + int(*write) (struct dev_io *dev, struct packet *pkt); struct packet *(*read) (struct dev_io *dev); int(*set_link_type) (struct dev_io *dev, int link_type); void(*close) (struct dev_io *dev); }; extern struct dev_io *dev_io_open(const char *name, enum dev_io_mode_t mode); -extern int dev_io_write(struct dev_io *dev, const struct packet *pkt); +extern int dev_io_write(struct dev_io *dev, struct packet *pkt); extern struct packet *dev_io_read(struct dev_io *dev); extern int dev_io_ifindex_get(struct dev_io *dev); extern int dev_io_fd_get(struct dev_io *dev); |