netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* PF_NETLINK, SOCK_DGRAM, 2 => EPROTONOSUPPORT
@ 2010-08-30 10:02 Thomas Voegtle
  2010-08-31  2:06 ` David Miller
  0 siblings, 1 reply; 4+ messages in thread
From: Thomas Voegtle @ 2010-08-30 10:02 UTC (permalink / raw)
  To: netdev


Hello,


This code snippet:
#include <sys/socket.h>
#include <linux/netlink.h>
int main() {
         socket(PF_NETLINK, SOCK_DGRAM, NETLINK_USERSOCK);
         return 0;
}

ends up with:

socket(PF_NETLINK, SOCK_DGRAM, 2) = -1 EPROTONOSUPPORT (Protocol not 
supported)

since 2.6.33.

I bisected it down to:
974c37e9d88c3e5a3e56eb98cb9c84232eb2bdcb is the first bad commit
commit 974c37e9d88c3e5a3e56eb98cb9c84232eb2bdcb
Author: Alexey Dobriyan <adobriyan@gmail.com>
Date:   Sat Jan 30 10:05:05 2010 +0000

     netlink: fix for too early rmmod


This is strange, because the code snippet even fails on a monolithic 
kernel.
When I revert this commit on top of 2.6.36-rc3, it works.

Was this intended, that this code snippet doesn't work this way anymore or
is this just a bug?


       Thomas


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-08-31 16:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-30 10:02 PF_NETLINK, SOCK_DGRAM, 2 => EPROTONOSUPPORT Thomas Voegtle
2010-08-31  2:06 ` David Miller
2010-08-31 10:15   ` Thomas Voegtle
2010-08-31 16:50     ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).