Re: UDP sockets and IPv4 header fields
>> Which may need to have a different IP address than the host stack,
>> so you may have to run your very own little UDP/IP stack and run it
>> either over an interface in promiscuous mode, or an interface of
>> its very own where you can bind the IP and ARP SAPs directly.
> I don't understand this statement.
When traffic arrives at the host, if it is for an IP address known to
the "real" stack then likely as not it will be consumed by the "real"
stack rather than arrive at your (raw?) socket.
> I think I can add an IP_RECVID socket option. New systems would then
> be able to call getsockopt(IP_RECVID, ...) to retrieve the ID field
> of the last datagram. What do you think?
With source, almost anything is possible.
rick jones
--
oxymoron n, Hummer H2 with California Save Our Coasts and Oceans plates
these opinions are mine, all mine; HP might not want them anyway... :)
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
|