Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-18 Thread jamal
On Fri, 2006-17-11 at 18:53 -0500, Paul Moore wrote: > jamal wrote: > I think we are best off punting on the userspace as there a multiple ways to > do > it: use good ole fashioned socket calls, the libnl library, or some other way > that hasn't been written yet. Besides, Thomas already has some

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-17 Thread Paul Moore
jamal wrote: > #1. I think the content layout has improved over the previous doc. So > good stuff. > Something still bothers me though; whether there is too much theory or > verbosity (not that this long email has any of those > characteristics;->). I am wondering if that affects usability. As a >

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-17 Thread jamal
On Fri, 2006-17-11 at 08:05 -0500, jamal wrote: > i will review the doc as soon as i am done with that. I glanced at the doc over lunch. I will give you high level views first and later on today or tomorrow i will give you a lot more pointed opinions. #1. I think the content layout has improved

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-17 Thread jamal
On Mon, 2006-13-11 at 15:06 -0500, Paul Moore wrote: > jamal wrote: > > On Mon, 2006-13-11 at 09:08 -0500, Paul Moore wrote: > > > >>I want to give Jamal a little bit longer to reply. > > > > Sorry, family emergency - still ongoing today, so havent looked at > > anything (including presentation t

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-13 Thread Jarek Poplawski
On Mon, Nov 13, 2006 at 02:58:17PM -0500, Paul Moore wrote: > Jarek Poplawski wrote: > > @@ -586,7 +586,7 @@ > >goto failure; > >} > >/* add a DOC_EXMPL_A_MSG attribute */ > > - rc = nla_put_string(skb, DOC_EXMPL_A_MSG, "Generic Netlink Rocks"); > > + rc = nla_put_string(skb, DOC_

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-13 Thread Paul Moore
jamal wrote: > On Mon, 2006-13-11 at 09:08 -0500, Paul Moore wrote: > >>I want to give Jamal a little bit longer to reply. > > Sorry, family emergency - still ongoing today, so havent looked at > anything (including presentation that was supposed to be done) ;-< > > Give me a day or two (I know

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-13 Thread Paul Moore
Jarek Poplawski wrote: > @@ -586,7 +586,7 @@ >goto failure; >} >/* add a DOC_EXMPL_A_MSG attribute */ > - rc = nla_put_string(skb, DOC_EXMPL_A_MSG, "Generic Netlink Rocks"); > + rc = nla_put_string(skb, DOC_EXMPL_A_MSG, "Justin Timberlake rocks"); >if (rc != 0) >goto f

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-13 Thread jamal
On Mon, 2006-13-11 at 09:08 -0500, Paul Moore wrote: > I want to give Jamal a little bit longer > to reply. Sorry, family emergency - still ongoing today, so havent looked at anything (including presentation that was supposed to be done) ;-< Give me a day or two (I know i at least have to do th

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-13 Thread Paul Moore
On Monday 13 November 2006 2:23 am, Jarek Poplawski wrote: > Sorry! Typo in @@ -436,20 part. Forget the earlier message. No problem, my first draft was full of typos too ;) > So there is more... > > Jarek P. > > PS: It is added to my first patch because I don't know > what is the current version.

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-12 Thread Jarek Poplawski
On Fri, Nov 10, 2006 at 06:36:42PM +0100, Thomas Graf wrote: > * Jarek Poplawski <[EMAIL PROTECTED]> 2006-11-10 14:24 > > @@ -449,7 +449,7 @@ > > > > The second step is to define the operations for the family, which we do by > > creating at least one instance of the genl_ops structure which we

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-12 Thread Jarek Poplawski
On Fri, Nov 10, 2006 at 06:36:42PM +0100, Thomas Graf wrote: > * Jarek Poplawski <[EMAIL PROTECTED]> 2006-11-10 14:24 > > @@ -449,7 +449,7 @@ > > > > The second step is to define the operations for the family, which we do by > > creating at least one instance of the genl_ops structure which we

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-10 Thread Randy Dunlap
Thomas Graf wrote: * Randy Dunlap <[EMAIL PROTECTED]> 2006-11-10 14:49 I thought I chose GENL_NAMESIZ wisely but to be sure I checked with Mr. Alignment himself, Arnaldo: Hm, looks OK to me. Am I missing something? It is OK, I was merely trying to prove it :-) struct genl_family { u

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-10 Thread Thomas Graf
* Randy Dunlap <[EMAIL PROTECTED]> 2006-11-10 14:49 > >I thought I chose GENL_NAMESIZ wisely but to be sure I checked > >with Mr. Alignment himself, Arnaldo: > > Hm, looks OK to me. Am I missing something? It is OK, I was merely trying to prove it :-) > >struct genl_family { > >unsigned

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-10 Thread Randy Dunlap
Thomas Graf wrote: * Randy Dunlap <[EMAIL PROTECTED]> 2006-11-10 10:23 On Fri, 10 Nov 2006 01:08:23 -0500 Paul Moore wrote: An Introduction To Using Generic Netlink === 3.1.2. The genl_family Structure Generic Netlink

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-10 Thread Thomas Graf
* Randy Dunlap <[EMAIL PROTECTED]> 2006-11-10 10:23 > On Fri, 10 Nov 2006 01:08:23 -0500 Paul Moore wrote: > > > An Introduction To Using Generic Netlink > > === > > 3.1.2. The genl_family Structure > > > > Generic Netlin

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-10 Thread Paul Moore
Randy Dunlap wrote: > On Fri, 10 Nov 2006 01:08:23 -0500 Paul Moore wrote: > >>An Introduction To Using Generic Netlink >>=== >>3.1.2. The genl_family Structure >> >>Generic Netlink services are defined by the genl_family

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-10 Thread Randy Dunlap
On Fri, 10 Nov 2006 01:08:23 -0500 Paul Moore wrote: > An Introduction To Using Generic Netlink > === > 3.1.2. The genl_family Structure > > Generic Netlink services are defined by the genl_family structure, which is > sh

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-10 Thread Thomas Graf
* Jarek Poplawski <[EMAIL PROTECTED]> 2006-11-10 14:24 > @@ -449,7 +449,7 @@ > > The second step is to define the operations for the family, which we do by > creating at least one instance of the genl_ops structure which we explained > in > -section 3.1.2.. In this example we are only going t

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-10 Thread Randy Dunlap
On Fri, 10 Nov 2006 11:17:11 -0500 Paul Moore wrote: > jamal wrote: > > On Fri, 2006-10-11 at 01:45 -0500, Paul Moore wrote: > > > >>James Morris wrote: > >> > An Introduction To Using Generic Netlink > === > >>>

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-10 Thread Paul Moore
Stephen Hemminger wrote: > Paul Moore wrote: > >>A couple of months ago I promised Jamal and Thomas I would post some comments >>to >>Jamal's original genetlink how-to. However, as I started to work on the >>document the diff from the original started to get a little ridiculous so >>instead of p

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-10 Thread Paul Moore
jamal wrote: > On Fri, 2006-10-11 at 01:45 -0500, Paul Moore wrote: > >>James Morris wrote: >> An Introduction To Using Generic Netlink === >>> >>> >>>Wow, this is great! >> >>Thanks. I consider it an act of penan

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-10 Thread Paul Moore
Jarek Poplawski wrote: > On 10-11-2006 07:08, Paul Moore wrote: > ... > >>An Introduction To Using Generic Netlink >>=== > > ... > > Here is a proposal of small adjustments. > Maybe some of them will be useful. They al

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-10 Thread Paul Moore
Thomas Graf wrote: > * Paul Moore <[EMAIL PROTECTED]> 2006-11-10 01:08 > > Excellent! Thanks. >> - u32 snd_pid >> >> This is the PID of the client which issued the request. > > In order to avoid confusion it might be better to call it > "netlink PID" as it is not equal to the process ID.

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-10 Thread Stephen Hemminger
Paul Moore wrote: A couple of months ago I promised Jamal and Thomas I would post some comments to Jamal's original genetlink how-to. However, as I started to work on the document the diff from the original started to get a little ridiculous so instead of posting a patch against Jamal's original

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-10 Thread jamal
On Fri, 2006-10-11 at 01:45 -0500, Paul Moore wrote: > James Morris wrote: > >>An Introduction To Using Generic Netlink > >>=== > > > > > > Wow, this is great! > > Thanks. I consider it an act of penance for all of the

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-10 Thread Jarek Poplawski
On 10-11-2006 07:08, Paul Moore wrote: ... > An Introduction To Using Generic Netlink > === ... Here is a proposal of small adjustments. Maybe some of them will be useful. Best regards, Jarek P. --- --- netlink.txt-

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-10 Thread Thomas Graf
* Paul Moore <[EMAIL PROTECTED]> 2006-11-10 01:08 Excellent! >- u32 snd_pid > > This is the PID of the client which issued the request. In order to avoid confusion it might be better to call it "netlink PID" as it is not equal to the process ID. - To unsubscribe from this list: send th

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-09 Thread Paul Moore
James Morris wrote: >>An Introduction To Using Generic Netlink >>=== > > > Wow, this is great! Thanks. I consider it an act of penance for all of the evil things I did with Netlink on my first few iterations of NetLabel

Re: Generic Netlink HOW-TO based on Jamal's original doc

2006-11-09 Thread James Morris
> An Introduction To Using Generic Netlink > === Wow, this is great! -- James Morris <[EMAIL PROTECTED]> - To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to [EMAIL PROTECTED]

Generic Netlink HOW-TO based on Jamal's original doc

2006-11-09 Thread Paul Moore
A couple of months ago I promised Jamal and Thomas I would post some comments to Jamal's original genetlink how-to. However, as I started to work on the document the diff from the original started to get a little ridiculous so instead of posting a patch against Jamal's original how-to I'm just pos