Changeset 858fc90 in mainline for uspace/srv/net/tl/icmp/icmp_header.h


Ignore:
Timestamp:
2010-03-15T19:35:25Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6092b56e
Parents:
92307f1 (diff), 4684368 (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 from bzr://bzr.helenos.org/head.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/tl/icmp/icmp_header.h

    r92307f1 r858fc90  
    4646/** ICMP header size in bytes.
    4747 */
    48 #define ICMP_HEADER_SIZE                        sizeof( icmp_header_t )
     48#define ICMP_HEADER_SIZE                        sizeof(icmp_header_t)
    4949
    5050/** Type definition of the echo specific data.
     
    6363        /** Message idintifier.
    6464         */
    65         icmp_param_t    identifier;
     65        icmp_param_t identifier;
    6666        /** Message sequence number.
    6767         */
    68         icmp_param_t    sequence_number;
     68        icmp_param_t sequence_number;
    6969} __attribute__ ((packed));
    7070
     
    8484        /** The type of the message.
    8585         */
    86         uint8_t type;
     86        uint8_t type;
    8787        /** The error code for the datagram reported by the ICMP message.
    8888         *  The interpretation is dependent on the message type.
    8989         */
    90         uint8_t code;
     90        uint8_t code;
    9191        /** The checksum is the 16-bit ones's complement of the one's complement sum of the ICMP message starting with the ICMP Type.
    9292     *  For computing the checksum, the checksum field should be zero.
    9393         *  If the checksum does not match the contents, the datagram is discarded.
    9494         */
    95         uint16_t        checksum;
     95        uint16_t checksum;
    9696        /** Message specific data.
    9797         */
     
    9999                /** Echo specific data.
    100100                 */
    101                 icmp_echo_t             echo;
     101                icmp_echo_t  echo;
    102102                /** Proposed gateway value.
    103103                 */
    104                 in_addr_t                       gateway;
     104                in_addr_t gateway;
    105105                /** Fragmentation needed specific data.
    106106                 */
     
    109109                         *  Must be zero.
    110110                         */
    111                         icmp_param_t    reserved;
     111                        icmp_param_t reserved;
    112112                        /** Proposed MTU.
    113113                         */
    114                         icmp_param_t    mtu;
     114                        icmp_param_t mtu;
    115115                } frag;
    116116                /** Parameter problem specific data.
     
    119119                        /** Problem pointer.
    120120                         */
    121                         icmp_param_t    pointer;
     121                        icmp_param_t pointer;
    122122                        /** Reserved field.
    123123                         *  Must be zero.
    124124                         */
    125                         icmp_param_t    reserved;
     125                        icmp_param_t reserved;
    126126                } param;
    127127        } un;
Note: See TracChangeset for help on using the changeset viewer.