* ow to intercept an udp packet sent by a socket in a Netfilter module
@ 2004-12-23 10:02 Olivier GRALL
0 siblings, 0 replies; only message in thread
From: Olivier GRALL @ 2004-12-23 10:02 UTC (permalink / raw)
To: netfilter-devel
Hello
I'm writing a little module using netfilter. I want to catch an UDP
packet sended by a socket and to change its source port without
conntrack see the changes. I want to do it on the POSTROUTING Hook but I
don't see any packets from a socket in my module logs.
So I want to know how to capture packets coming from a local socket in
POSTROUTING.
For the moment, I register like this:
static struct nf_hook_ops ipt_ops_out =
{
{ NULL, NULL},
ms_media_hook_out,
THIS_MODULE,
PF_INET,
NF_IP_POST_ROUTING,
NF_IP_PRI_NAT_SRC+1
};
Thanks,
Olivier GRALL
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-12-23 10:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-23 10:02 ow to intercept an udp packet sent by a socket in a Netfilter module Olivier GRALL
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.