[Click] minor bug report with NetBSD

Eddie Kohler kohler at cs.ucla.edu
Wed May 17 12:15:45 EDT 2006


Hi Vivek,

So the point of SIOCSIFMTU is to set the MTU.  Are you saying the NetBSD's tun 
device CANNOT have an MTU larger than 1500?  Or that the SIOCSIFMTU ioctl is 
not supported?

Eddie


Vivek raghunathan wrote:
> The mail was partially sent.
> 
> With NetBSD, the conf/test-tun.click script doesn't work.
> 
> bash-3.1$ sudo userlevel/click conf/test-tun.click
> conf/test-tun.click:19: While initializing 'tun :: KernelTun':
>   SIOCSIFMTU failed: Invalid argument
> Router could not be initialized!
> 
> Reason:
> minor bug in userlevel/kerneltun.cc:
>>     268 ifr.ifr_mtu = _mtu_out;
>>     269     if (ioctl(s, SIOCSIFMTU, &ifr) != 0)
>>     270         return errh->error("SIOCSIFMTU failed: %s", strerror(errno));
> 
> NetBSD's tun device has a default MTU of 1500. _mtu_out is set to 2048
> by default, and NetBSD returns EINVAL on the ioctl.
> 
> Fix:
> set DEFAULT_MTU to <= 1500
> 
> -Vivek
> 
> 
> On 5/17/06, Vivek raghunathan <vivek.raghunathan at gmail.com> wrote:
>> bug in userlevel/kerneltun.cc:
>> 268 ifr.ifr_mtu = _mtu_out;
>>     269     if (ioctl(s, SIOCSIFMTU, &ifr) != 0)
>>     270         return errh->error("SIOCSIFMTU failed: %s", strerror(errno));
>>
>>
>>
>>
>> --
>>
>> *************************************
>> Vivek Raghunathan,
>> PhD student,
>> University of Illinois, Urbana-Champaign
>>
>> Contact Details:
>> 1012 W. Clark St #31,
>> Urbana IL 61801
>>
>> ph: 217-766-1868 (cell)
>>     217-333-7541 (off)
>>
> 
> 


More information about the click mailing list