]> www.infradead.org Git - users/dwmw2/vpnc-scripts.git/commit
vpnc-script: prevent negative MTU
authorDave Reisner <dreisner@archlinux.org>
Mon, 15 Aug 2011 00:01:24 +0000 (20:01 -0400)
committerDave Reisner <dreisner@archlinux.org>
Mon, 15 Aug 2011 00:01:24 +0000 (20:01 -0400)
commitea98b094e8f75fcd696db81bc6c5160dc67b4e4f
tree6a4f31a7d7534117ec2a2c14fc09af4dd9ad5cc8
parenta1cac186f66d0f2e8b1dce67e648aae4219c3013
vpnc-script: prevent negative MTU

We can't be sure that the route shown by 'ip route get' will return
anything. Restructure the logic to only perform the subtraction if it
does. Otherwise, fall back to the default 1412.

Signed-off-by: Dave Reisner <dreisner@archlinux.org>
vpnc-script