Re: 3-HEAD IPv6 updates

From: Amos Jeffries <squid3@dont-contact.us>
Date: Fri, 21 Dec 2007 09:54:30 +1300 (NZDT)

> Alex Rousskov wrote:
>> On Sat, 2007-12-15 at 12:56 +0200, Tsantilas Christos wrote:
>>> void ICAPModXact::inheritVirginProperties(HttpRequest &newR, const
>>> HttpRequest &oldR) {
>>>
>>> newR.client_addr = oldR.client_addr;
>>> - newR.client_port = oldR.client_port;
>>> -
>>> newR.my_addr = oldR.my_addr;
>>> - newR.my_port = oldR.my_port;
>>
>> Just curious, what happened to the port part? Is it now inside the
>> address?
>>
>
> Yes. The IPAddress now uses the sockaddr_in and sockaddr_in6 structures
> which include port (and protocol family if I am not wrong)

You are correct. Though family is best access through IsIPv4() and
IsIPv6() which can handle mapped types.

Amos
Received on Thu Dec 20 2007 - 13:54:34 MST

This archive was generated by hypermail pre-2.1.9 : Mon Dec 31 2007 - 12:00:03 MST