1,5 → 1,5 |
/* |
* Copyright (c) 2008 Lukas Mejdrech |
* Copyright (c) 2009 Lukas Mejdrech |
* All rights reserved. |
* |
* Redistribution and use in source and binary forms, with or without |
31,6 → 31,7 |
*/ |
|
/** @file |
* ARP protocol header. |
*/ |
|
#ifndef __NET_ARP_HEADER_H__ |
38,14 → 39,35 |
|
#include <sys/types.h> |
|
/** Type definition of an ARP protocol header. |
* @see arp_header |
*/ |
typedef struct arp_header arp_header_t; |
|
/** Type definition of an ARP protocol header pointer. |
* @see arp_header |
*/ |
typedef arp_header_t * arp_header_ref; |
|
/** ARP protocol header. |
*/ |
struct arp_header{ |
/** Hardware type identifier. |
* @see hardware.h |
*/ |
uint16_t hardware; |
/** Protocol identifier. |
*/ |
uint16_t protocol; |
/** Hardware address length in bytes. |
*/ |
uint8_t hardware_length; |
/** Protocol address length in bytes. |
*/ |
uint8_t protocol_length; |
/** ARP packet type. |
* @see arp_oc.h |
*/ |
uint16_t operation; |
}; |
|