[Openswan Users]

Bgs bgs at bgs.hu
Wed Jan 4 10:18:28 CET 2006



Bgs wrote:
>>> Jan  4 00:02:20 bgs pluto[495]: FATAL ERROR: Failed to bind bcast 
>>> socket in
>>> init_netlink(). Errno 2: No such file or directory
>>>
>>> I managed to strace pluto:
>>>
>>> [pid  9016] bind(9, {sa_family=AF_NETLINK, pid=9016, 
>>> groups=00000003}, 12) =
>>> -1 ENOENT (No such file or directory)
>>>
>>> It might help to somebody more knowledged in the source :)
>>
>>
>>
>> It would be more usefil to set a gdb breakpoint so you can catch the 
>> bind()
>> call arguments. I'll see if I can give you a patched version of 
>> server.c that
>> at least logs the attempted ip, so w ecan diagnose this further.
> 
> 
> 
> To me it seems that the relevant line is in kernel_netlink.c:165 om the 
> init_netlink() definition.

It might be my wrong interpretation (newborn baby, sleep(NULL) :) ), but 
addr in the above line is of type struct sockaddr_nl which doesn't have 
broadcast part, so the conversion won't work.


More information about the Users mailing list