Unable to create netlink socket in centos

Nikesh Kumar Mahalka nikeshmahalka at vedams.com
Tue Oct 28 04:23:01 PDT 2014


Hi,
I am using a CentOS Linux release 7.0.1406 (Core)
I  am using kernel version 3.10.0-123.el7.x86_64

When i am creating a netlink socket,it is getting failed.
int sock_fd = socket(PF_NETLINK, SOCK_RAW, 1)
 value of sock_fd is -1


When i was using 3.1 kernel version of CentOS,above socket function was working.
I want to create netlink socket on kernel version 3.10.0


Any help will be greatly admired.

Regards
NIkesh

On Tue, Oct 28, 2014 at 4:51 PM, Nikesh Kumar Mahalka
<nikeshmahalka at vedams.com> wrote:
> Hi,
> I am using a CentOS Linux release 7.0.1406 (Core)
> I  am using kernel version 3.10.0-123.el7.x86_64
>
> When i am creating a netlink socket,it is getting failed.
> int sock_fd = socket(PF_NETLINK, SOCK_RAW, 1)
>  value of sock_fd is -1
>
>
> When i was using 3.1 kernel version of CentOS,above socket function was working.
> I want to create netlink socket on kernel version 3.10.0
>
>
> Any help will be greatly admired.
>
> Regards
> NIkesh



More information about the libnl mailing list