Hi, <div>I could not locate ready made APIs for TLV construction and encoding but a more generic implementation/functions can be seen in include/linux/tipc_config.h file. </div><div>Hope that helps.</div><div><br></div><div>
-Jayesh Kumar</div><div>"You don't know, until you know."</div><div><br><br><div class="gmail_quote">On Mon, Apr 16, 2012 at 6:30 PM, NorthPole <span dir="ltr"><<a href="mailto:morfeas3000@gmail.com">morfeas3000@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">thx Javier<br>
But isnt the api for use in the user space?<br>
I need something for use in kernel space<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Apr 16, 2012 at 3:30 PM, Javier Martinez Canillas<br>
<<a href="mailto:martinez.javier@gmail.com">martinez.javier@gmail.com</a>> wrote:<br>
> On Fri, Apr 13, 2012 at 8:22 PM, NorthPole <<a href="mailto:morfeas3000@gmail.com">morfeas3000@gmail.com</a>> wrote:<br>
>> Hello everyone<br>
>><br>
>> I'm completely new to linux kernel and I would be grateful if you<br>
>> could help me get started.<br>
>> I read some basic things about the kernel. But I couldnt find anything<br>
>> relevant to the question below.<br>
>><br>
>> So: Does the kernel have any support for the construction and encoding<br>
>> of type/length/value (TLV) or other information element messages?<br>
>> if it has(or if you dont know) where can I find a list or more documentation?<br>
>><br>
><br>
> I think what you are looking for is the Generic Netlink API.<br>
><br>
> Here is a good howto:<br>
> <a href="http://www.linuxfoundation.org/collaborate/workgroups/networking/genericnetlinkhowto" target="_blank">http://www.linuxfoundation.org/collaborate/workgroups/networking/genericnetlinkhowto</a><br>
><br>
> Hope it helps,<br>
><br>
> --<br>
> Javier Martínez Canillas<br>
> (+34) 682 39 81 69<br>
> Barcelona, Spain<br>
<br>
_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
</div></div></blockquote></div><br></div>