Changeset 98abd40 in mainline for uspace/srv/net/inetsrv/inet_std.h


Ignore:
Timestamp:
2013-07-06T21:57:22Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c8bb1633, cdc8a391
Parents:
b8e72fd1 (diff), 507c6f3 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline changes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/inetsrv/inet_std.h

    rb8e72fd1 r98abd40  
    4040#include <sys/types.h>
    4141
    42 /** Internet Datagram header (fixed part) */
     42/** IPv4 Datagram header (fixed part) */
    4343typedef struct {
    4444        /** Version, Internet Header Length */
     
    9090};
    9191
     92/** IPv6 Datagram header (fixed part) */
     93typedef struct {
     94        /** Version, Traffic class first 4 bits */
     95        uint8_t ver_tc;
     96        /** Traffic class (the rest), Flow label */
     97        uint8_t tc_fl[3];
     98        /* Payload length */
     99        uint16_t payload_len;
     100        /** Next header */
     101        uint8_t next;
     102        /** Hop limit */
     103        uint8_t hop_limit;
     104        /** Source address */
     105        uint8_t src_addr[16];
     106        /** Destination address */
     107        uint8_t dest_addr[16];
     108} ip6_header_t;
     109
     110/** IPv6 Datagram Fragment extension header */
     111typedef struct {
     112        /** Next header */
     113        uint8_t next;
     114        /** Reserved */
     115        uint8_t reserved;
     116        /** Fragment Offset, Flags */
     117        uint16_t foff_flags;
     118        /** Identification */
     119        uint32_t id;
     120} ip6_header_fragment_t;
     121
    92122/** Fragment offset is expressed in units of 8 bytes */
    93123#define FRAG_OFFS_UNIT 8
Note: See TracChangeset for help on using the changeset viewer.