Subversion Repositories HelenOS

Rev

Rev 4075 | Rev 4243 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4075 Rev 4153
Line 74... Line 74...
74
/** Type definition of the Ethernet header SNAP extension pointer.
74
/** Type definition of the Ethernet header SNAP extension pointer.
75
 *  @see eth_header_snap
75
 *  @see eth_header_snap
76
 */
76
 */
77
typedef eth_header_snap_t *     eth_header_snap_ref;
77
typedef eth_header_snap_t *     eth_header_snap_ref;
78
 
78
 
-
 
79
/** Type definition of the Ethernet header preamble.
-
 
80
 *  @see preamble
-
 
81
 */
-
 
82
typedef struct eth_preamble eth_preamble_t;
-
 
83
 
-
 
84
/** Type definition of the Ethernet header preamble pointer.
-
 
85
 *  @see eth_preamble
-
 
86
 */
-
 
87
typedef eth_preamble_t *        eth_preamble_ref;
-
 
88
 
79
/** Type definition of the Ethernet header.
89
/** Type definition of the Ethernet header.
80
 *  @see eth_header
90
 *  @see eth_header
81
 */
91
 */
82
typedef struct eth_header   eth_header_t;
92
typedef struct eth_header   eth_header_t;
83
 
93
 
Line 113... Line 123...
113
     *  @see ethernet_protocols.h
123
     *  @see ethernet_protocols.h
114
     */
124
     */
115
    uint16_t    ethertype;
125
    uint16_t    ethertype;
116
};
126
};
117
 
127
 
118
/** Ethernet header.
128
/** Ethernet header preamble.
-
 
129
 *  Used for dummy devices.
119
 */
130
 */
120
struct eth_header{
131
struct eth_preamble{
121
    /** Controlling preamble used for the frame transmission synchronization.
132
    /** Controlling preamble used for the frame transmission synchronization.
122
     *  All should be set to ETH_PREAMBLE.
133
     *  All should be set to ETH_PREAMBLE.
123
     */
134
     */
124
    uint8_t     preamble[ 7 ];
135
    uint8_t     preamble[ 7 ];
125
    /** Start of Frame Delimiter used for the frame transmission synchronization.
136
    /** Start of Frame Delimiter used for the frame transmission synchronization.
126
     *  Should be set to ETH_SFD.
137
     *  Should be set to ETH_SFD.
127
     */
138
     */
128
    uint8_t     sfd;
139
    uint8_t     sfd;
-
 
140
};
-
 
141
 
-
 
142
/** Ethernet header.
-
 
143
 */
-
 
144
struct eth_header{
129
    /** Destination host Ethernet address (MAC address).
145
    /** Destination host Ethernet address (MAC address).
130
     */
146
     */
131
    uint8_t     dest[ ETH_ADDR ];
147
    uint8_t     dest[ ETH_ADDR ];
132
    /** Source host Ethernet address (MAC address).
148
    /** Source host Ethernet address (MAC address).
133
     */
149
     */