public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Plzzz help me
@ 2004-10-01  2:41 cranium2003
  2004-10-01 19:02 ` Valdis.Kletnieks
  2004-10-01 20:11 ` Ryan Cumming
  0 siblings, 2 replies; 5+ messages in thread
From: cranium2003 @ 2004-10-01  2:41 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-net

Hello,
 I want to know is there any way in linux kernel by
which i can come to know that the outgoing packet is
having destination address is of host not of router?
I want to send different data to host/router depending
on dest. address. 
 
regards,
cranium.


		
__________________________________
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
http://promotions.yahoo.com/new_mail 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Plzzz help me
@ 2004-10-01  2:43 cranium2003
  0 siblings, 0 replies; 5+ messages in thread
From: cranium2003 @ 2004-10-01  2:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-net

Hello,
 I want to know is there any way in linux kernel by
which i can come to know that the outgoing packet is
having destination address is of host not of router?
I want to send different data to host/router depending
on dest. address. 
 
regards,
cranium.


	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Plzzz help me
  2004-10-01  2:41 Plzzz help me cranium2003
@ 2004-10-01 19:02 ` Valdis.Kletnieks
  2004-10-01 20:11 ` Ryan Cumming
  1 sibling, 0 replies; 5+ messages in thread
From: Valdis.Kletnieks @ 2004-10-01 19:02 UTC (permalink / raw)
  To: cranium2003; +Cc: linux-kernel, linux-net

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

On Thu, 30 Sep 2004 19:41:36 PDT, cranium2003 said:
> Hello,
>  I want to know is there any way in linux kernel by
> which i can come to know that the outgoing packet is
> having destination address is of host not of router?
> I want to send different data to host/router depending
> on dest. address. 

What if the router is a host as well? This is quite possible
if the router is a unix/linux box with more than one network
interface.

What problem are you trying to solve by sending different data?

[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Plzzz help me
  2004-10-01  2:41 Plzzz help me cranium2003
  2004-10-01 19:02 ` Valdis.Kletnieks
@ 2004-10-01 20:11 ` Ryan Cumming
  2004-10-01 20:33   ` Valdis.Kletnieks
  1 sibling, 1 reply; 5+ messages in thread
From: Ryan Cumming @ 2004-10-01 20:11 UTC (permalink / raw)
  To: cranium2003; +Cc: linux-kernel, linux-net

[-- Attachment #1: Type: text/plain, Size: 422 bytes --]

On Thursday 30 September 2004 19:41, cranium2003 wrote:
> Hello,
>  I want to know is there any way in linux kernel by
> which i can come to know that the outgoing packet is
> having destination address is of host not of router?
> I want to send different data to host/router depending
> on dest. address.

By definition, only hosts have IP addresses. Any router that has an IP address 
is also a host.

-Ryan

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Plzzz help me
  2004-10-01 20:11 ` Ryan Cumming
@ 2004-10-01 20:33   ` Valdis.Kletnieks
  0 siblings, 0 replies; 5+ messages in thread
From: Valdis.Kletnieks @ 2004-10-01 20:33 UTC (permalink / raw)
  To: Ryan Cumming; +Cc: cranium2003, linux-kernel, linux-net

[-- Attachment #1: Type: text/plain, Size: 675 bytes --]

On Fri, 01 Oct 2004 13:11:18 PDT, Ryan Cumming said:

> By definition, only hosts have IP addresses. Any router that has an IP address
> is also a host.

Very true - if it's a L3 router, it needs that IP address so you have something
to use as a 'next hop' when you try to send to it.  If it doesn't have an IP
address, it's a L2 switch/hub and you pretty much *don't* want to talk to it
at all (except to an IP set up as a "management" address, but then you're
talking to it as a host, of course)...

I *think* cranium2003 wanted to do different things depending on whether
the 'next hop addr == dest addr', but I'm failing to see any cases where
you'd want to do that....


[-- Attachment #2: Type: application/pgp-signature, Size: 226 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-10-01 20:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-01  2:41 Plzzz help me cranium2003
2004-10-01 19:02 ` Valdis.Kletnieks
2004-10-01 20:11 ` Ryan Cumming
2004-10-01 20:33   ` Valdis.Kletnieks
  -- strict thread matches above, loose matches on Subject: below --
2004-10-01  2:43 cranium2003

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox