Changeset 0b749a3 in mainline for uspace/srv/net/il/arp/arp_header.h
- Timestamp:
- 2010-11-22T15:39:53Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0eddb76, aae339e9
- Parents:
- 9a1d8ab (diff), 8cd1aa5e (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/net/il/arp/arp_header.h
r9a1d8ab r0b749a3 32 32 33 33 /** @file 34 * 35 * Based on the RFC~826.34 * ARP protocol header. 35 * Based on the RFC 826. 36 36 */ 37 37 38 #ifndef __NET_ARP_HEADER_H__39 #define __NET_ARP_HEADER_H__38 #ifndef NET_ARP_HEADER_H_ 39 #define NET_ARP_HEADER_H_ 40 40 41 41 #include <sys/types.h> 42 42 43 43 /** Type definition of an ARP protocol header. 44 * 44 * @see arp_header 45 45 */ 46 typedef struct arp_header 46 typedef struct arp_header arp_header_t; 47 47 48 /** Type definition of an ARP protocol header pointer. 49 * @see arp_header 50 */ 51 typedef arp_header_t * arp_header_ref; 52 53 /** ARP protocol header. 54 */ 55 struct arp_header{ 56 /** Hardware type identifier. 57 * @see hardware.h 48 /** ARP protocol header. */ 49 struct arp_header { 50 /** 51 * Hardware type identifier. 52 * @see hardware.h 58 53 */ 59 54 uint16_t hardware; 60 /** Protocol identifier.61 */55 56 /** Protocol identifier. */ 62 57 uint16_t protocol; 63 /** Hardware address length in bytes. 64 */ 58 /** Hardware address length in bytes. */ 65 59 uint8_t hardware_length; 66 /** Protocol address length in bytes. 67 */ 60 /** Protocol address length in bytes. */ 68 61 uint8_t protocol_length; 69 /** ARP packet type. 70 * @see arp_oc.h 62 63 /** 64 * ARP packet type. 65 * @see arp_oc.h 71 66 */ 72 67 uint16_t operation;
Note:
See TracChangeset
for help on using the changeset viewer.