tun: Enable setting/getting of MTU
Works similarly to getting and setting IP addresses, can pretty much be copy-pasted for the rest of the settings.
This commit is contained in:
parent
4b0965b846
commit
a13b2243e6
2 changed files with 19 additions and 0 deletions
|
|
@ -16,4 +16,7 @@ ioctl_read_bad!(
|
|||
);
|
||||
ioctl_read_bad!(if_get_index, libc::SIOCGIFINDEX, libc::ifreq);
|
||||
ioctl_read_bad!(if_get_addr, libc::SIOCGIFADDR, libc::ifreq);
|
||||
ioctl_read_bad!(if_get_mtu, libc::SIOCGIFMTU, libc::ifreq);
|
||||
|
||||
ioctl_write_ptr_bad!(if_set_addr, libc::SIOCSIFADDR, libc::ifreq);
|
||||
ioctl_write_ptr_bad!(if_set_mtu, libc::SIOCSIFMTU, libc::ifreq);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue