autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Detecting IP_TOS (and IPPROTO_IP vs. SOL_IP)


From: Philip A. Prindeville
Subject: Detecting IP_TOS (and IPPROTO_IP vs. SOL_IP)
Date: Mon, 22 Mar 2010 01:42:51 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Thunderbird/3.0.1

Calling the sequence:

setsockopt(fd, XXXX, IP_TOS, &foo, sizeof(foo));

can be tricky.  Linux uses SOL_IP for XXXX, whereas Solaris and BSD use
IPPROTO_IP for this instead.

Not sure what MacOS or HP-UX do.

Do the newer versions of autoconf have canned code for detecting what to
use?  And if not, can someone please add it?

I just grepped the 2.65 tarball but didn't find anything in there.

Thanks,

-Philip





reply via email to

[Prev in Thread] Current Thread [Next in Thread]