* Port information.
@ 2004-01-19 18:52 Emmanuel Guiton
2004-01-19 20:31 ` Henrik Nordstrom
0 siblings, 1 reply; 2+ messages in thread
From: Emmanuel Guiton @ 2004-01-19 18:52 UTC (permalink / raw)
To: netfilter-devel
Hi!
I'm creating a target for which I specify "-p tcp --dport XX" from the
user-space program. How can I know the port number from the check
function in the target? Where is it stored? I guess I can't access it
via the "const struct ipt_entry *e".
Emmanuel
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Port information.
2004-01-19 18:52 Port information Emmanuel Guiton
@ 2004-01-19 20:31 ` Henrik Nordstrom
0 siblings, 0 replies; 2+ messages in thread
From: Henrik Nordstrom @ 2004-01-19 20:31 UTC (permalink / raw)
To: Emmanuel Guiton; +Cc: netfilter-devel
On Mon, 19 Jan 2004, Emmanuel Guiton wrote:
> I'm creating a target for which I specify "-p tcp --dport XX" from the
> user-space program. How can I know the port number from the check
> function in the target? Where is it stored? I guess I can't access it
> via the "const struct ipt_entry *e".
You probably can get it from the ipt_entry, but this is not something I
would recommend attempting as it requires iterating over the included
matches to find the information you require. For some information see the
check_entry() function.
What you can do in more sane manners is to add a target argument allowing
the required information to be specified to your target in addition to the
tcp match.
Regards
Henrik
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-01-19 20:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-19 18:52 Port information Emmanuel Guiton
2004-01-19 20:31 ` Henrik Nordstrom
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.