logo
Published on KernelTrap (http://kerneltrap.org)

bind + cannot allocate memory

By prabhu_kush
Created Aug 5 2007 - 01:54

hi,

i am running a supplicant(open source). In this i am creating a netlink socket. after creation of socket when i am binding that socket with address. is shows following error

bind:Cannot allocate memory.

i had my own protocol for netlink socket creation.
s=(PF_NETLINK,SOCK_RAW,NETLINK_XYZ);

but if i use following netlink socket it works fie
s=(PF_NETLINK,SOCK_RAW,NETLINK_ROUTE);

PROBLEM IS AT BINDING TIME NOT DURING SOCKET CREATION.

i am using linux - 2.6.16. can you tell me why this is happening.

Thanks
Prabhakar


Source URL:
http://kerneltrap.org/node/14056