Changeset 1493811 in mainline for uspace/srv/ethip/ethip.h
- Timestamp:
- 2012-02-11T19:11:08Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 4f64a523
- Parents:
- e767dbf
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/ethip/ethip.h
re767dbf r1493811 27 27 */ 28 28 29 /** @addtogroup inet29 /** @addtogroup ethip 30 30 * @{ 31 31 */ … … 37 37 #ifndef ETHIP_H_ 38 38 #define ETHIP_H_ 39 40 #include <adt/list.h> 41 #include <async.h> 42 #include <inet/iplink_srv.h> 43 #include <loc.h> 44 #include <sys/types.h> 39 45 40 46 typedef struct ethip_nic { … … 48 54 } ethip_nic_t; 49 55 56 /** IEEE MAC-48 identifier */ 57 typedef struct { 58 /** MAC Address (in lowest 48 bits) */ 59 uint64_t addr; 60 } mac48_addr_t; 61 62 /** Ethernet frame */ 63 typedef struct { 64 /** Destination Address */ 65 mac48_addr_t dest; 66 /** Source Address */ 67 mac48_addr_t src; 68 /** Ethertype or Length */ 69 uint16_t etype_len; 70 /** Payload */ 71 void *data; 72 /** Payload size */ 73 size_t size; 74 } eth_frame_t; 75 50 76 extern int ethip_iplink_init(ethip_nic_t *); 77 extern int ethip_received(iplink_srv_t *, void *, size_t); 78 51 79 52 80 #endif
Note:
See TracChangeset
for help on using the changeset viewer.