* icmp and port
@ 2001-04-17 14:28 gis88530
2001-04-17 14:39 ` Andreas Ferber
0 siblings, 1 reply; 3+ messages in thread
From: gis88530 @ 2001-04-17 14:28 UTC (permalink / raw)
To: linux-kernel
Hello,
I have study the code in ip_masq.c, and
I found that icmp packet use
source address, destination address, source port and
destination port to hash into masquerade table.
Do icmp packets have port information?
I have print the port information with printk,
but I can't find out the answer to this question.
Could you give me a hint? Thanks a lot.
Cheers,
Tom
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: icmp and port
2001-04-17 14:28 icmp and port gis88530
@ 2001-04-17 14:39 ` Andreas Ferber
2001-04-19 11:06 ` gis88530
0 siblings, 1 reply; 3+ messages in thread
From: Andreas Ferber @ 2001-04-17 14:39 UTC (permalink / raw)
To: gis88530; +Cc: linux-kernel
Hi,
On Tue, Apr 17, 2001 at 10:28:53PM +0800, gis88530 wrote:
>
> Do icmp packets have port information?
ICMP packets quote part of the original packet that triggered the ICMP
message. From this quoted part, information can be extracted about the
connection the ICMP packet belongs to.
Andreas
--
I *____\b\b\b\bknew* I had some reason for not logging you off... If I could just
remember what it was.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: icmp and port
2001-04-17 14:39 ` Andreas Ferber
@ 2001-04-19 11:06 ` gis88530
0 siblings, 0 replies; 3+ messages in thread
From: gis88530 @ 2001-04-19 11:06 UTC (permalink / raw)
To: Andreas Ferber; +Cc: linux-kernel
Thanks for your answer, and I still have some questions.
(private)---->(masquerade)---->(public)
If I ping public host from private host using this command:
ping 140.113.1.1
What trigger ICMP message? The "ping" binary program?
AND
How masquerade gateway know the original packet port information?
Because I think original packets are in private hosts, masquerade
gateway can't get the original packet.
If I am wrong, please feel free to advice me.
Thanks in advance.
Cheers,
Tom
----- Original Message -----
From: "Andreas Ferber" <aferber@techfak.uni-bielefeld.de>
To: "gis88530" <gis88530@cis.nctu.edu.tw>
Cc: <linux-kernel@vger.kernel.org>
Sent: Tuesday, April 17, 2001 10:39 PM
Subject: Re: icmp and port
> Hi,
>
> On Tue, Apr 17, 2001 at 10:28:53PM +0800, gis88530 wrote:
> >
> > Do icmp packets have port information?
>
> ICMP packets quote part of the original packet that triggered the ICMP
> message. From this quoted part, information can be extracted about the
> connection the ICMP packet belongs to.
>
> Andreas
> --
> I *____\b\b\b\bknew* I had some reason for not logging you off... If I
could just
> remember what it was.
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-04-19 11:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-04-17 14:28 icmp and port gis88530
2001-04-17 14:39 ` Andreas Ferber
2001-04-19 11:06 ` gis88530
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®