From: Chandrakanth Chereddi <kanth@hserus.net>
To: Ulysses Almeida <munky@maluco.com.br>
Cc: Netfilter Devel <netfilter-devel@lists.netfilter.org>
Subject: Re: libipq/payload doubt
Date: Wed, 19 May 2004 12:23:35 +0530 [thread overview]
Message-ID: <20040519065335.GD340@hserus.net> (raw)
In-Reply-To: <20040519062032.GA32401@maluco.com.br>
On 19/05/04 02:20 -0400, Ulysses Almeida wrote:
> 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.
Please have a look at the linux/net/iptv4/netfilter/ip_queue.c source
file. It contains the routines for building the structure from the skb
to be sent to userspace via NETLINK sockets.
> 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?
You need to convert from network byte order to host byte order (guessing
that you are using a x86 processor), please use the ntohs() call.
--
CCK./ kanth@hserus.net
"Passion and gradualness" -- Pavlov.
next prev parent reply other threads:[~2004-05-19 6:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040519065335.GD340@hserus.net \
--to=kanth@hserus.net \
--cc=munky@maluco.com.br \
--cc=netfilter-devel@lists.netfilter.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.