Re: Squid Socket question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Tue, 04 Sep 2001 16:20:39 +0200

Guido Serassio wrote:

> So, do You think that is possible to make this now ?

Quite likely.

> If the answer is Yes, do You think that this solution can be fine:
>
> #ifdef IPPROTO_UDP
> #define SQUID_IPPROTO_UDP IPPROTO_UDP
> #else
> #define SQUID_IPPROTO_UDP 0
> #endif
>
> Using SQUID_IPPROTO_UDP on source.
>
> OR
>
> #ifndef IPPROTO_UDP
> #define IPPROTO_UDP 0
> #endif
>
> Using IPPROTO_UDP on source.
>
> I like the first, is more flexible.

Either way is fine, but I think I prefer the latter. It is shorter and easier to
read. The likelyhood there will be a incompatible collision on IPPROTO_xxx is
very minimal.

--
Henrik
Received on Tue Sep 04 2001 - 08:20:46 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:20 MST