Re: faking source address in Java

New Message Reply About this list Date view Thread view Subject view Author view

Bill Frantz (frantz@netcom.com)
Fri, 25 Sep 1998 00:02:27 -0800


At 7:43 PM -0800 9/24/98, Lewis McCarthy wrote:
>David Honig writes:
>> I'd like to modify the *source* address of UDP datagrams
>> sent from an application written in Java. Anyone know
>> how to do this? Levels below DatagramPackets seem opaque...
>
>I suspect this can't be done within Java, but would be interested to learn
>otherwise.
>
>I assume that java.net.DatagramSocket.send() uses a native sockets API to
>hand off the
>outgoing DatagramPacket payload (and dest IP/port) to the transport layer.
>Typically
>(AFAIK) sockets APIs don't provide facilities for an application to set
>the src IP addr.
>
>-Lewis
>"It depends on what the meaning of the word `is` is."

It is a bit more complex than that because you have SocketImpl involved,
but in essence that's it.

I thought one reason why we ran freshmen in user mode was to keep them from
faking from addresses. :-)

-------------------------------------------------------------------------
Bill Frantz | If hate must be my prison | Periwinkle -- Consulting
(408)356-8506 | lock, then love must be | 16345 Englewood Ave.
frantz@netcom.com | the key. - Phil Ochs | Los Gatos, CA 95032, USA


New Message Reply About this list Date view Thread view Subject view Author view

 
All trademarks and copyrights are the property of their respective owners.

Other Directory Sites: SeekWonder | Directory Owners Forum

The following archive was created by hippie-mail 7.98617-22 on Sat Apr 10 1999 - 01:14:01