PFIL: how to get tcp/ip fields from mbuf

2010-02-01 Thread Lukasz Jaroszewski
Hello, I am wondering about most elegant and proper way to get IP header fields from mbuf, using PFILs. I have read Murat Balaban paper on PFIL_HOOKS where I found some example function. Question is how can I access IP header field in such manner. static int hisar_chkinput(void *arg, struct mbuf

Re: PFIL: how to get tcp/ip fields from mbuf

2010-02-01 Thread Robert Watson
On Mon, 1 Feb 2010, Lukasz Jaroszewski wrote: I am wondering about most elegant and proper way to get IP header fields from mbuf, using PFILs. I have read Murat Balaban paper on PFIL_HOOKS where I found some example function. Question is how can I access IP header field in such manner. The

Re: PFIL: how to get tcp/ip fields from mbuf

2010-02-01 Thread Lawrence Stewart
On 02/01/10 22:02, Lukasz Jaroszewski wrote: Hello, I am wondering about most elegant and proper way to get IP header fields from mbuf, using PFILs. I have read Murat Balaban paper on PFIL_HOOKS where I found some example function. Question is how can I access IP header field in such manner.