tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: netbsd-5: another problem, news/leafnode + ioctl(SIOCGIFCONF)
In article <s93tz5n127p.fsf%chen.chizhovka.net@localhost>,
Aleksey Cheusov <tech-userlevel%netbsd.org@localhost> wrote:
>I encountered another problem in NetBSD-5.
>news/leafnode doesn't work.
>When I
>
> telnet localhost nntp
>
>it says
>
> Mar 21 13:11:00 chen leafnode[23631]: connect from localhost
>(127.0.0.1) to localhost (127.0.0.1) (my fqdn: chen.chizhovka.net)
> Mar 21 13:09:53 chen leafnode[6442]: Denying access from address
>outside the local networks. (Check config.example.)
>
>This happens because it tries to get all available networks using
>ioctl(SIOCGIFADDR) and something bad happens in
>checkpeerlocal.c:checkpeerlocal function.
>
>At least checkpeerlocal.c:193 printf function prints only one correct
>interface, in my case
>
> interface: name fxp0, address type: 18, sa_len: 18
>
>and then it prints lots of garbage.
>
> interface: name , address type: 194, sa_len: 133
> interface: name , address type: 28, sa_len: 194
> interface: name , address type: 96, sa_len: 250
> interface: name , address type: 254, sa_len: 0
> interface: name , address type: 0, sa_len: 1
> interface: name , address type: 0, sa_len: 0
> interface: name , address type: 218, sa_len: 28
> interface: name , address type: 254, sa_len: 120
> interface: name , address type: 127, sa_len: 0
> interface: name , address type: 251, sa_len: 28
> interface: name , address type: 0, sa_len: 0
> interface: name , address type: 0, sa_len: 0
> interface: name , address type: 0, sa_len: 0
> interface: name , address type: 218, sa_len: 28
> interface: name , address type: 254, sa_len: 120
> interface: name , address type: 127, sa_len: 0
> interface: name , address type: 251, sa_len: 28
> interface: name , address type: 117, sa_len: 116
> interface: name , address type: 0, sa_len: 0
> interface: name , address type: 0, sa_len: 0
> interface: name , address type: 250, sa_len: 188
> interface: name , address type: 0, sa_len: 0
> interface: name , address type: 253, sa_len: 192
>
>IIRC leafnode (the same version) worked fine with NetBSD-4,
>I used it rarely.
>
>It whould be nice if some NetBSD developer investigate where's the
>problem. I'm not expert in NetBSD's ioctls.
>
>leafnode-1.11.3nb1
change it to use getifaddrs().
christos
Home |
Main Index |
Thread Index |
Old Index