Skip to content

Commit

Permalink
Move tun mtu failing to an error log instead of fatal
Browse files Browse the repository at this point in the history
  • Loading branch information
nbrownus committed Dec 19, 2019
1 parent 8e6b725 commit 5552565
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tun_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ func (c Tun) Activate() error {
// Set the MTU on the device
ifm := ifreqMTU{Name: devName, MTU: int32(c.MaxMTU)}
if err = ioctl(fd, unix.SIOCSIFMTU, uintptr(unsafe.Pointer(&ifm))); err != nil {
return fmt.Errorf("failed to set tun mtu: %s", err)
// This is currently a non fatal condition because the route table must have the MTU set appropriately as well
l.WithError(err).Error("Failed to set tun mtu")
}

// Set the transmit queue length
Expand Down

0 comments on commit 5552565

Please sign in to comment.