[Click] minor bug report with NetBSD

Vivek raghunathan vivek.raghunathan at gmail.com
Wed May 17 10:00:16 EDT 2006


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)
>


-- 

*************************************
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