Changeset 71b00dcc in mainline for uspace/srv/net/nil/eth/eth_header.h


Ignore:
Timestamp:
2010-03-07T22:51:38Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60ab6c3
Parents:
b5cbff4 (diff), 31c80a5 (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 lp:~lukasmejdrech/helenos/network.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/nil/eth/eth_header.h

    rb5cbff4 r71b00dcc  
    121121struct eth_ieee_lsap{
    122122        /** Destination Service Access Point identifier.
    123          *      The possible values are assigned by an IEEE committee.
    124          */
    125         uint8_t         dsap;
     123         * The possible values are assigned by an IEEE committee.
     124         */
     125        uint8_t dsap;
    126126        /** Source Service Access Point identifier.
    127          *      The possible values are assigned by an IEEE committee.
    128          */
    129         uint8_t         ssap;
     127         * The possible values are assigned by an IEEE committee.
     128         */
     129        uint8_t ssap;
    130130        /** Control parameter.
    131          *      The possible values are assigned by an IEEE committee.
    132          */
    133         uint8_t         ctrl;
     131         * The possible values are assigned by an IEEE committee.
     132         */
     133        uint8_t ctrl;
    134134} __attribute__ ((packed));
    135135
     
    139139        /** Protocol identifier or organization code.
    140140         */
    141         uint8_t         protocol[ 3 ];
     141        uint8_t protocol[3];
    142142        /** Ethernet protocol identifier in the network byte order (big endian).
    143143         *  @see ethernet_protocols.h
    144144         */
    145         uint16_t        ethertype;
     145        uint16_t ethertype;
    146146} __attribute__ ((packed));
    147147
     
    153153         *  All should be set to ETH_PREAMBLE.
    154154         */
    155         uint8_t         preamble[ 7 ];
     155        uint8_t preamble[7];
    156156        /** Start of Frame Delimiter used for the frame transmission synchronization.
    157157         *  Should be set to ETH_SFD.
    158158         */
    159         uint8_t         sfd;
     159        uint8_t sfd;
    160160} __attribute__ ((packed));
    161161
     
    165165        /** Destination host Ethernet address (MAC address).
    166166         */
    167         uint8_t         destination_address[ ETH_ADDR ];
     167        uint8_t destination_address[ETH_ADDR];
    168168        /** Source host Ethernet address (MAC address).
    169169         */
    170         uint8_t         source_address[ ETH_ADDR ];
     170        uint8_t source_address[ETH_ADDR];
    171171        /** Ethernet protocol identifier in the network byte order (big endian).
    172172         *  @see ethernet_protocols.h
    173173         */
    174         uint16_t        ethertype;
     174        uint16_t ethertype;
    175175} __attribute__ ((packed));
    176176
     
    180180        /** Ethernet header.
    181181         */
    182         eth_header_t            header;
     182        eth_header_t header;
    183183        /** LSAP extension.
    184184         *  If DSAP and SSAP are set to ETH_LSAP_SNAP the SNAP extension is being used.
    185185         *  If DSAP and SSAP fields are equal to ETH_RAW the raw Ethernet packet without any extensions is being used and the frame content starts rigth after the two fields.
    186186         */
    187         eth_ieee_lsap_t         lsap;
     187        eth_ieee_lsap_t lsap;
    188188} __attribute__ ((packed));
    189189
     
    193193        /** Ethernet header.
    194194         */
    195         eth_header_t            header;
     195        eth_header_t header;
    196196        /** LSAP extension.
    197197         *  If DSAP and SSAP are set to ETH_LSAP_SNAP the SNAP extension is being used.
    198198         *  If DSAP and SSAP fields are equal to ETH_RAW the raw Ethernet packet without any extensions is being used and the frame content starts rigth after the two fields.
    199199         */
    200         eth_ieee_lsap_t         lsap;
     200        eth_ieee_lsap_t lsap;
    201201        /** SNAP extension.
    202202         */
    203         eth_snap_t                      snap;
     203        eth_snap_t snap;
    204204} __attribute__ ((packed));
    205205
Note: See TracChangeset for help on using the changeset viewer.