Ignore:
Timestamp:
Jul 13, 2017, 9:41:54 AM (4 years ago)
Author:
Juanma
Message:

Initial release

File:
1 edited

Legend:

Unmodified
Added
Removed
  • squid-ssl/trunk/fuentes/src/icmp/Icmp6.cc

    r5499 r5502  
    257257
    258258        ip = (struct ip6_hdr *) pkt;
    259         pkt += sizeof(ip6_hdr);
     259        NP: echo size needs to +sizeof(ip6_hdr);
    260260
    261261    debugs(42, DBG_CRITICAL, HERE << "ip6_nxt=" << ip->ip6_nxt <<
     
    268268
    269269    icmp6header = (struct icmp6_hdr *) pkt;
    270     pkt += sizeof(icmp6_hdr);
    271270
    272271    if (icmp6header->icmp6_type != ICMP6_ECHO_REPLY) {
     
    293292    }
    294293
    295     echo = (icmpEchoData *) pkt;
     294    echo = (icmpEchoData *) (pkt + sizeof(icmp6_hdr));
    296295
    297296    preply.opcode = echo->opcode;
Note: See TracChangeset for help on using the changeset viewer.