jayduhon / inferno-os

Automatically exported from code.google.com/p/inferno-os
2 stars 0 forks source link

Need TTL and TOS (right now they are explicitly ignored) #278

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 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:20