Get a packet's DESTINATION ADDRESS 
Author Message
 Get a packet's DESTINATION ADDRESS

Hello all,

One quick question.  In the header of an IP datagram sent to a TCP/IP host
there are two fields: SOURCE ADDRESS and DESTINATION ADDRESS.  As far as
I have read, once the packet is sent, these two fields are never modified.

First, is this in fact true?
Second, what C system calls exist to access the information in these fields?

After a couple of days I have not been able to figure out how to retrieve
either the of the addresses from incoming datagrams.  Any help, or pointers
to the appropriate manpages would be greatly appreciated.

------------------------------------------------------------------------
Eric Woodward                     |            Pager:  +1 (604) 258-4673
Internet Direct, Inc.             |            Office: +1 (604) 691-1607
Vancouver, BC                     |            Fax:    +1 (604) 691-1605



Mon, 19 May 1997 14:32:34 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Getting a fn's address at runtime.

2. Getting your machine's internet address

3. Getting pointer's address

4. Sockets - Raw Packet Info / MAC Addresses

5. Determinig a machine's Physical Address (MAC Address)

6. Getting addresses of object code

7. problem getting source ip address from iphdr structure

8. Getting the IP Address

9. Getting Local IP address

10. Addressing memory: getting long * from char *

11. getting program execution address

12. Getting MAC Address in WIndows 98 and NT/2000/NT

 

 
Powered by phpBB® Forum Software