Show
Ignore:
Timestamp:
05/27/10 12:20:02 (2 years ago)
Author:
mwhitworth
Message:

Add DF flag to IP packet.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/branches/netchannel/user/sdk/network/ipv4.c

    r2084 r2091  
    6969        ipHeader->versionLength = (4 << 4) | 5; 
    7070        ipHeader->id = HostToNetShort(1); 
    71         ipHeader->ttl = 255; 
     71        ipHeader->ttl = 64; 
    7272        ipHeader->protocol = protocol; 
    7373        ipHeader->destAddr = NetToHostLong(destIp->address); 
     74        ipHeader->flagsFragOffset = 1 << 6; /* DF */ 
    7475        ipHeader->totalLength = NetToHostShort(length + sizeof(struct IpHeader)); 
    7576