Changeset b4edc96 in mainline for uspace/lib/inet/include/inet/eth_addr.h
- Timestamp:
- 2021-08-08T09:20:20Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3e6bca8
- Parents:
- d5ed54b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/inet/include/inet/eth_addr.h
rd5ed54b rb4edc96 38 38 #define _LIBC_INET_ETH_ADDR_H_ 39 39 40 // XXX Move addr48 here 41 #include <inet/addr.h> 40 #include <stdint.h> 42 41 43 extern void mac48_encode(addr48_t *, void *); 44 extern void mac48_decode(const void *, addr48_t *); 42 #define ETH_ADDR_SIZE 6 43 44 typedef struct { 45 uint8_t b[ETH_ADDR_SIZE]; 46 } eth_addr_t; 47 48 extern const eth_addr_t eth_addr_broadcast; 49 50 extern void eth_addr_encode(eth_addr_t *, void *); 51 extern void eth_addr_decode(const void *, eth_addr_t *); 52 53 extern int eth_addr_compare(const eth_addr_t *, const eth_addr_t *); 45 54 46 55 #endif
Note:
See TracChangeset
for help on using the changeset viewer.