Re: Generic netlink interface help

2007-05-27 Thread Rodolfo Giometti
On Sun, May 27, 2007 at 03:24:56PM +0200, Johannes Berg wrote: My current userland tool just send a message and expects back a response. Obviously that's broken once we have events too, is that when Is that written by using the libnl or not? Can you please send to me it, or just a portion of

Re: Generic netlink interface help

2007-05-27 Thread Rodolfo Giometti
On Thu, May 24, 2007 at 09:43:30AM -, Samuel Ortiz wrote: You could look at Johannes Berg 802.11 generic netlink implementation for a good example (net/wireless/nl80211.c in John Linville's tree):

Re: Generic netlink interface help

2007-05-27 Thread Rodolfo Giometti
On Sun, May 27, 2007 at 03:54:30PM +0200, Johannes Berg wrote: It's written in python without using libnl: http://git.sipsolutions.net/pynl80211.git If I well understand I should do something like this: s = socket(PF_NETLINK, SOCK_RAW, NETLINK_GENERIC); memset(src_addr, 0,

Generic netlink interface help

2007-05-24 Thread Rodolfo Giometti
Hello, I'm trying to use this new API for my LinuxPPS support but I have some difficulties in understanding the code! Looking at http://linux-net.osdl.org/index.php/Generic_Netlink_HOWTO is not clear... for example in line: msg_head = genlmsg_put(skb, pid, seq, type, 0, flags,

Re: Generic netlink interface help

2007-05-24 Thread Rodolfo Giometti
On Thu, May 24, 2007 at 09:43:30AM -, Samuel Ortiz wrote: You could look at Johannes Berg 802.11 generic netlink implementation for a good example (net/wireless/nl80211.c in John Linville's tree):

Re: Generic netlink interface help

2007-05-24 Thread Rodolfo Giometti
On Thu, May 24, 2007 at 10:04:08AM -, Samuel Ortiz wrote: Yes it's possible, even though it could be more tedious and painful. I know that. Have you some links to suggest to me in order to have some programming examples? Thanks, Rodolfo -- GNU/Linux Solutions e-mail:

[PATCH] au1000_eth.c power management and driver registration support

2006-07-19 Thread Rodolfo Giometti
Hello, Attached you can find my patch to add power managament and driver registration to the new version of file drivers/net/au1000_eth.c that implements the PHY-layer support. Ciao, Rodolfo Giometti Signed-off-by: Rodolfo Giometti [EMAIL PROTECTED] -- GNU/Linux Solutions e

Re: [PATCH] au1000_eth.c Power Management, driver registration and module support

2006-05-03 Thread Rodolfo Giometti
Hello, yesterday I did a little mess with GIT... now the patch is complete. Sorry. :) I forgot also to say that it has been done against «linux-2.6.16-stable» branch. Ciao, Rodolfo -- GNU/Linux Solutions e-mail:[EMAIL PROTECTED] Linux Device Driver