Ignore:
File:
1 edited

Legend:

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

    rb4ec1ea r1d24ad3  
    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.