|
Question : UDP socket, IP_TOS and IP_OPTIONS
|
|
Hello all!
I am writting an app under winXP. I have a UDP socket (actually, i use RTP), but i need to put informations into the IP header. Another programmer is writing a code running on a router, and he needs this informations. So he asked me to use the TOS byte, or to set options. i tried using setsockopt to set TOS, but according to my sniffer, it doesn't change at all. Then i tried to modify the options, but i have no idea about the format of this field. (i tried a simple "setsockopt(...,...,IP_OPTIONS,&mybyte,1)" but by soft stopped sending packets.)
I guess i could use raw packets, but i don't think i have enough time to rebuild my network base classes (the app is quite complex)
if anyone can help me...
Regards,
Raph
|
Answer : UDP socket, IP_TOS and IP_OPTIONS
|
|
Raph,
unfortunately as far as I'm aware this is the only way :(
Phil.
|
|
|
|