dsummerfield / acme-sac

Automatically exported from code.google.com/p/acme-sac
Other
0 stars 0 forks source link

TOS and TTL fields ignored in devip.c #32

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
writing 'TTL n' or 'TOS n' in con.cfd is ignored thus ineffective.

A relevant implementation would preferably alter same parameter for hosting OS

Mac OS X / Acme SAC

#if !defined(IP_HDRINCL) && defined(IP_TTL)
    if (setsockopt(sndsock, IPPROTO_IP, IP_TTL,
        (char *)&ttl, sizeof(ttl)) < 0) {
        Fprintf(stderr, "%s: setsockopt ttl %d: %s\n",
            prog, ttl, strerror(errno));
        exit(1);
    }

Original issue reported on code.google.com by frederic...@gmail.com on 18 Jan 2012 at 4:17