| To: | cranium2003 <cranium2003@xxxxxxxxx> |
|---|---|
| Subject: | Re: SNAT help |
| From: | Asim Shankar <asimshankar@xxxxxxxxx> |
| Date: | Tue, 10 May 2005 12:12:20 -0500 |
| Cc: | net dev <netdev@xxxxxxxxxxx> |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MzgQqTsaTmmJHkWOyv38JqBiAppikjt/4Y72RbcURyHpFGO6i5ELKZLN9fiOpuOCAWcwOBqCHXhqiVox5iZ4sha0TIcsA/S/AnEJsObomkFLnNufeh4AJlDCWopV59tjlpw/b1JB1ijW3ovDLvI1U9SNPDKLt2r34u+v0cTSYlQ= |
| In-reply-to: | <20050509083113.42571.qmail@xxxxxxxxxxxxxxxxxxxxxxx> |
| References: | <20050509083113.42571.qmail@xxxxxxxxxxxxxxxxxxxxxxx> |
| Reply-to: | Asim Shankar <asimshankar@xxxxxxxxx> |
| Sender: | netdev-bounce@xxxxxxxxxxx |
> i have enabled SNAT and I have wrriten code > at NF_IP_POST_ROUTING but i want to get outgoing > packets' IP address as new one SNAT'ed IP address not > the one that is before SNAT? How can i do that? I think changing the priority (struct nf_hook_ops.priority) when registering the hook would do your job. ip_nat_out_ops registers a hook with a priority NF_IP_PRI_NAT_SRC. If you register your hook with a priority greater than NF_IP_PRI_NAT_SRC (like (NF_IP_PRI_NAT_SRC + 1) or NF_IP_PRI_LAST) then your hook will be called after the ip_nat_out_ops hook. Hope that helps, -- Asim |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: RFC: PHY Abstraction Layer II, Andy Fleming |
|---|---|
| Next by Date: | Re: tg3 support broken on PPC, a workaround, Michael Chan |
| Previous by Thread: | SNAT help, cranium2003 |
| Next by Thread: | PROBLEM: INET TCP socket communication through loopback, Hans Henrik Happe |
| Indexes: | [Date] [Thread] [Top] [All Lists] |