All of lore.kernel.org
 help / color / mirror / Atom feed
* libipq/payload doubt
@ 2004-05-19  6:20 Ulysses Almeida
  2004-05-19  6:47 ` Mike-Ro-Chanel
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Ulysses Almeida @ 2004-05-19  6:20 UTC (permalink / raw)
  To: Netfilter Devel

  First, thanks to all, for last answers, I think I am starting to
understand how I can handle with libipq.

  But yet, I have some doubts:

  What I could see from ip_queue.c, ipq_packet_msg->payload, comes
from skb->data. Where can i find (which files) where skb->data is
filled. 'Cose till now, I don't know what info I can get from
ipq_packet_msg->payload.

  I alredy create my first daemon with libipq, I mixed libipq man
example, intercept.c (from netfilter cvs), and get some ideas from
tcp_ipv4.c (kernel). This daemon, just look for tcp packges, and print
some infos on stdout. It's printing IP src and dst address, and now
i'm trying to print src and dst TCP port address, but, I don't know
why, when I print those info, I can't get expected ports. port 80 is
showed as 20480.

  Do I have to convert something before printing in human readable
format?

  The source is on http://www.glug.ucdb.br/~ulysses/first.c

  Thanks in advance (again).

  []s

-- 
    .~.  Ulysses Almeida
   / V \  munky@maluco.com.br
 / (   ) \  Seja livre, use GNU/Linux! 
   ^^-^^

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-05-20 16:24 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-19  6:20 libipq/payload doubt Ulysses Almeida
2004-05-19  6:47 ` Mike-Ro-Chanel
2004-05-19  6:53 ` Chandrakanth Chereddi
2004-05-19 10:02 ` Richard Bishop
2004-05-20  0:03   ` Ulysses Almeida
2004-05-20  2:11     ` Ulysses Almeida
2004-05-20 13:33       ` Scott MacKay
2004-05-20 15:02         ` Henrik Nordstrom
2004-05-20 16:24           ` Scott MacKay
2004-05-20 14:58       ` Henrik Nordstrom
2004-05-20  2:11     ` Richard Bishop

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.