<div dir="ltr">Hello all,<div>I have read that helpers in conntrack would give us the opportunity to pars the packets up to application layer. I want to pars the SIP packet, so I decided to use the SIP conntrack helper;which is nf_conntrack_sip. Unlike the functionality the helper itself gives, I want to find the SIP messages of type MESSAGE and read the request line of the packet. SO I add  the following code into the line 256.</div><div><br></div><div><p class="gmail-MsoPlainText" style="direction:ltr;unicode-bidi:embed"><span style="font-family:&quot;Courier New&quot;">char sub[mlen+1]<span lang="AR-SA" dir="RTL">;</span></span><span lang="FA" dir="RTL" style="font-family:&quot;Courier New&quot;"><br>
</span><span lang="AR-SA" dir="RTL" style="font-family:&quot;Courier New&quot;">      </span><span style="font-family:&quot;Courier New&quot;">memcpy(sub,&amp;limit[0],
mlen)<span dir="RTL"></span><span dir="RTL"></span><span lang="AR-SA" dir="RTL"><span dir="RTL"></span><span dir="RTL"></span>)</span><br>
<span lang="AR-SA" dir="RTL">      </span>sub[mlen]=&#39;\0<span dir="RTL"></span><span dir="RTL"></span><span lang="AR-SA" dir="RTL"><span dir="RTL"></span><span dir="RTL"></span>&#39;;</span><span dir="LTR"></span><span dir="LTR"></span><span dir="LTR"></span><span dir="LTR"></span><br>
<span lang="AR-SA" dir="RTL">      </span>printk(KERN_ALERT
&quot;method is:[%s]&quot;, sub);<br>
</span></p><p class="gmail-MsoPlainText" style="direction:ltr;unicode-bidi:embed"><span style="font-family:&quot;Courier New&quot;"><br></span></p><p class="gmail-MsoPlainText" style="unicode-bidi:embed"><span style="font-family:&quot;Courier New&quot;">But the problem is, nothing is being printed. My question is, Can I use nf_conntrack_sip for my purpose? and if yes, what is wrong with my code?</span></p><p class="gmail-MsoPlainText" style="unicode-bidi:embed"><span style="font-family:&quot;Courier New&quot;">Thanks in advance.</span></p></div></div>