mirror of https://github.com/deavmi/libtun.git
Updated types
This commit is contained in:
parent
b3631ab3e0
commit
e3bc5e422f
|
@ -56,12 +56,12 @@ uint32_t createTun(char* interfaceName, int32_t iffFlags)
|
||||||
return tunFD;
|
return tunFD;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t destroyTun(int fd)
|
uint32_t destroyTun(uint32_t fd)
|
||||||
{
|
{
|
||||||
return close(fd);
|
return close(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t tunWrite(int fd, char* data, int length)
|
uint32_t tunWrite(uint32_t fd, char* data, int length)
|
||||||
{
|
{
|
||||||
write(fd, data, length);
|
write(fd, data, length);
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,10 @@ uint32_t tunWrite(int fd, char* data, int length)
|
||||||
*
|
*
|
||||||
* (FIXME: For now we just read 20 bytes)
|
* (FIXME: For now we just read 20 bytes)
|
||||||
*/
|
*/
|
||||||
uint32_t tunRead(int fd, char* data, int amount)
|
uint32_t tunRead(uint32_t fd, char* data, int amount)
|
||||||
{
|
{
|
||||||
return read(fd, data, amount);
|
return read(fd, data, amount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
// uint32_t tunSet()
|
Loading…
Reference in New Issue