Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376353 - net-misc/vpnc - SIOCSIFMTU: Invalid argument
Summary: net-misc/vpnc - SIOCSIFMTU: Invalid argument
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-25 13:23 UTC by Attila Fazekas
Modified: 2011-09-10 10:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
my emerge info (emerge-info.txt,5.04 KB, text/plain)
2011-09-10 10:48 UTC, Jorrit Schippers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Fazekas 2011-07-25 13:23:18 UTC
ifconfig called with "mtu -88" argument, causes strange (slow/ partially not working) vpnc connection.  (straced)

Example output:
# vpnc
Connect Banner:
| You are authorized.

SIOCSIFMTU: Invalid argument
VPNC started in background (pid: 22469)...


I have commented 2 lines in the /etc/vpnc/vpnc-script as a workaround.
do_ifconfig() {
	if [ -n "$INTERNAL_IP4_MTU" ]; then
		MTU=$INTERNAL_IP4_MTU
#	elif [ -n "$IPROUTE" ]; then
#		MTU=$(($($IPROUTE route get "$VPNGATEWAY" | sed -ne 's/^.*mtu \([[:digit:]]\+\).*$/\1/p') - 88))
	else
		MTU=1412
	fi

When I try the ip command in CLI, I don't get "mtu" for "ip route get <IP>"

example:
$ ip route get xx.yy.zz.aa
xx.yy.zz.aa via 192.168.8.1 dev br0  src 192.168.8.102 
    cache  ipid 0x8c77

I got the script with net-misc/vpnc-0.5.3_p457-r2 .
 sys-apps/iproute2-2.6.37 was on my system,
I got similar output with sys-apps/iproute2-2.6.38 and sys-apps/iproute2-2.6.35-r2.
Comment 1 Pacho Ramos gentoo-dev 2011-07-25 18:26:58 UTC
Post "emerge --info vpnc" output please
Comment 2 Jorrit Schippers 2011-09-10 10:48:03 UTC
Created attachment 286059 [details]
my emerge info
Comment 3 Jorrit Schippers 2011-09-10 10:48:19 UTC
This is the same bug as discussed at https://bugzilla.redhat.com/show_bug.cgi?id=693235 . The fix there also works for me.

Another solution is at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=640978