summaryrefslogtreecommitdiffhomepage
path: root/src/tun_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/tun_linux.go')
-rw-r--r--src/tun_linux.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tun_linux.go b/src/tun_linux.go
index e752733..b9541c9 100644
--- a/src/tun_linux.go
+++ b/src/tun_linux.go
@@ -85,6 +85,7 @@ func (tun *NativeTun) RoutineNetlinkListener() {
case unix.RTM_NEWLINK:
info := *(*unix.IfInfomsg)(unsafe.Pointer(&remain[unix.SizeofNlMsghdr]))
+ remain = remain[hdr.Len:]
if info.Index != tun.index {
// not our interface
@@ -99,7 +100,7 @@ func (tun *NativeTun) RoutineNetlinkListener() {
tun.events <- TUNEventDown
}
- remain = remain[hdr.Len:]
+ tun.events <- TUNEventMTUUpdate
default:
remain = remain[hdr.Len:]