~ubuntu-branches/ubuntu/saucy/miredo/saucy

« back to all changes in this revision

Viewing changes to libteredo/packets.c

  • Committer: Bazaar Package Importer
  • Author(s): Rémi Denis-Courmont
  • Date: 2006-12-30 22:47:29 UTC
  • Revision ID: james.westby@ubuntu.com-20061230224729-sv0rhjsl6d597egu
Tags: 1.0.4-2
* Disable testsuite everywhere because it includes load-sensitive tests.
* Merge various fixes from upstream Subversion:
  - typo in miredo.conf.5 (r1805)
  - note about dangerous settings in miredo-server.conf.5 (r1815)
  - fix for insufficient hop limit in Teredo bubbles (r1822)
  - fix symmetric NAT detection (r1868)
  - s/#warn/#warning (r1882) showing up on Hurd
  - fix possible Teredo client spoofing vulnerability (r1884)
    Closes: #405111, Closes: #405412
* Use time() whenever needed instead of unsafe/badly broken 1Hz clock,
  though this degrades performance slightly.
* Do not send "direct" Teredo bubble when run as a Teredo relay to improve
  compatibility with Linux/NetFilter (incl. Debian-based NATs); see #404365.

Show diffs side-by-side

added added

removed removed

Lines of Context:
349
349
        ping.ip6.ip6_flow = htonl (0x60000000);
350
350
        ping.ip6.ip6_plen = htons (sizeof (ping.icmp6) + PING_PAYLOAD);
351
351
        ping.ip6.ip6_nxt = IPPROTO_ICMPV6;
352
 
        ping.ip6.ip6_hlim = 21;
 
352
        ping.ip6.ip6_hlim = 128;
353
353
        memcpy (&ping.ip6.ip6_src, src, sizeof (ping.ip6.ip6_src));
354
354
        memcpy (&ping.ip6.ip6_dst, dst, sizeof (ping.ip6.ip6_dst));
355
355