Changeset 2ff150e in mainline for uspace/srv/inet/pdu.c


Ignore:
Timestamp:
2012-02-13T08:25:46Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
081971b
Parents:
fe4310f
Message:

Correct handling of IP protocol field.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/inet/pdu.c

    rfe4310f r2ff150e  
    7373            BIT_V(uint16_t, FF_FLAG_DF) : 0);
    7474        hdr->ttl = packet->ttl;
    75         hdr->proto = 0;
     75        hdr->proto = packet->proto;
    7676        hdr->chksum = 0;
    7777        hdr->src_addr = host2uint32_t_be(packet->src.ipv4);
     
    125125        /* XXX Flags */
    126126        /* XXX Fragment offset */
    127         /* XXX Protocol */
    128127        /* XXX Checksum */
    129128
     
    131130        packet->dest.ipv4 = uint32_t_be2host(hdr->dest_addr);
    132131        packet->tos = hdr->tos;
     132        packet->proto = hdr->proto;
    133133        packet->ttl = hdr->ttl;
    134134        packet->df = (uint16_t_be2host(hdr->tos) & BIT_V(uint16_t, FF_FLAG_DF))
Note: See TracChangeset for help on using the changeset viewer.