#ifdef ENABLE_TUNEMU
case DEVICE_TYPE_TUNEMU:
- if(tunemu_write(device_fd, DATA(packet) + 14, packet->len - 14) < 0) {
+ if(tunemu_write(DATA(packet) + 14, packet->len - 14) < 0) {
logger(DEBUG_ALWAYS, LOG_ERR, "Error while writing to %s %s: %s", device_info,
device, strerror(errno));
return false;
return length;
}
-int tunemu_write(int ppp_sockfd, char *buffer, int length) {
+int tunemu_write(char *buffer, int length) {
allocate_data_buffer(length + 4);
data_buffer[0] = 0x02;
int tunemu_open(tunemu_device dev);
int tunemu_close(int fd);
int tunemu_read(int fd, char *buffer, int length);
-int tunemu_write(int fd, char *buffer, int length);
+int tunemu_write(char *buffer, int length);
#endif