Changeset f05edcb in mainline for uspace/srv/net/ethip/std.h
- Timestamp:
- 2021-08-08T08:28:24Z (3 years ago)
- Branches:
- master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- d5ed54b
- Parents:
- 98a935e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/ethip/std.h
r98a935e rf05edcb 1 1 /* 2 * Copyright (c) 20 12Jiri Svoboda2 * Copyright (c) 2021 Jiri Svoboda 3 3 * All rights reserved. 4 4 * … … 39 39 40 40 #include <stdint.h> 41 #include <inet/addr.h>42 41 43 42 #define ETH_ADDR_SIZE 6 … … 48 47 typedef struct { 49 48 /** Destination Address */ 50 addr48_t dest;49 uint8_t dest[ETH_ADDR_SIZE]; 51 50 /** Source Address */ 52 addr48_t src;51 uint8_t src[ETH_ADDR_SIZE]; 53 52 /** Ethertype or Length */ 54 53 uint16_t etype_len; … … 68 67 uint16_t opcode; 69 68 /** Sender hardware address */ 70 addr48_t sender_hw_addr;69 uint8_t sender_hw_addr[ETH_ADDR_SIZE]; 71 70 /** Sender protocol address */ 72 addr32_t sender_proto_addr;71 uint32_t sender_proto_addr; 73 72 /** Target hardware address */ 74 addr48_t target_hw_addr;73 uint8_t target_hw_addr[ETH_ADDR_SIZE]; 75 74 /** Target protocol address */ 76 addr32_t target_proto_addr;75 uint32_t target_proto_addr; 77 76 } __attribute__((packed)) arp_eth_packet_fmt_t; 78 77
Note:
See TracChangeset
for help on using the changeset viewer.