Networking Forums

Networking Forums > Computer Networking > Linux Networking > Building and sending raw datagram

Reply
Thread Tools Display Modes

Building and sending raw datagram

 
 
Vicky
Guest
Posts: n/a

 
      10-18-2004, 12:16 PM
Hello,

There is a network: 192.168.0.0

There is a computer "X" connected to
192.168.0.0 network.
Net configuration of "X" is:
IP=80.56.50.190,
MASK=255.255.255.248,
NETWORK=80.56.50.184,
BROADCAST=80.56.50.191.

I would like to send a datagram from "X" to some
computer in network (192.168.0.0).
Of course it is impossible to do by addressing
a datagram to IP address -- "X" is configured
for the other network than 192.168.0.0, and
IPs in 192.168.0.0 are unreachable for it.
So, I must create datagrams from scratch
(ethernet header, IP header, UDP header, data)
and send them to MAC addresses (not IPs).

Everything works fine on my computer (Fedora Core 2).
Unfortunately, my applications has to work on
a device with kernel 2.2.5. On this device,
during sending datagram I get error:
"No such device or address".

What can be the reason?

Thanks in advance,
Vicky.


 
Reply With Quote
 
 
 
 
Lawrence D¹Oliveiro
Guest
Posts: n/a

 
      10-23-2004, 02:38 AM
In article <cl0c76$ca2$(E-Mail Removed)>,
"Vicky" <(E-Mail Removed)> wrote:

>Hello,
>
>There is a network: 192.168.0.0
>
>There is a computer "X" connected to
>192.168.0.0 network.
>Net configuration of "X" is:
>IP=80.56.50.190,
>MASK=255.255.255.248,
>NETWORK=80.56.50.184,
>BROADCAST=80.56.50.191.
>
>I would like to send a datagram from "X" to some
>computer in network (192.168.0.0).
>Of course it is impossible to do by addressing
>a datagram to IP address -- "X" is configured
>for the other network than 192.168.0.0, and
>IPs in 192.168.0.0 are unreachable for it.


Why not just put an entry into its routing table telling it it's 0 hops
away from the 192.168.0.0/16 network?
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Building to Building WLAN Questions drftnc240jm Wireless Networks 0 02-24-2011 08:37 PM
Suggestions for a short building-to-building hop Cloy Wireless Internet 19 08-18-2007 11:09 PM
Building to Building (interoffice) access Merrill P. L. Worthington Wireless Internet 5 06-12-2006 08:09 AM
datagram queue? Jonathan Ellis Linux Networking 0 08-04-2005 11:33 PM
Sending datagram in raw socket Vicky Linux Networking 0 10-25-2004 10:25 AM



1 2 3 4 5 6 7 8 9 10 11