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>&quot;You don&#39;t know, until you know.&quot;</div><div><br><br><div class="gmail_quote">On Mon, Apr 16, 2012 at 6:30 PM, NorthPole <span dir="ltr">&lt;<a href="mailto:morfeas3000@gmail.com">morfeas3000@gmail.com</a>&gt;</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>
&lt;<a href="mailto:martinez.javier@gmail.com">martinez.javier@gmail.com</a>&gt; wrote:<br>
&gt; On Fri, Apr 13, 2012 at 8:22 PM, NorthPole &lt;<a href="mailto:morfeas3000@gmail.com">morfeas3000@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Hello everyone<br>
&gt;&gt;<br>
&gt;&gt; I&#39;m completely new to linux kernel and I would be grateful if you<br>
&gt;&gt; could help me get started.<br>
&gt;&gt; I read some basic things about the kernel. But I couldnt find anything<br>
&gt;&gt; relevant to the question below.<br>
&gt;&gt;<br>
&gt;&gt; So: Does the kernel have any support for the construction and encoding<br>
&gt;&gt; of type/length/value (TLV) or other information element messages?<br>
&gt;&gt;  if it has(or if you dont know) where can I find a list or more documentation?<br>
&gt;&gt;<br>
&gt;<br>
&gt; I think what you are looking for is the Generic Netlink API.<br>
&gt;<br>
&gt; Here is a good howto:<br>
&gt; <a href="http://www.linuxfoundation.org/collaborate/workgroups/networking/genericnetlinkhowto" target="_blank">http://www.linuxfoundation.org/collaborate/workgroups/networking/genericnetlinkhowto</a><br>
&gt;<br>
&gt; Hope it helps,<br>
&gt;<br>
&gt; --<br>
&gt; Javier Martínez Canillas<br>
&gt; (+34) 682 39 81 69<br>
&gt; 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>