Tomato-ND 1.21
[tomato.git] / release / src / include / proto / bcmarp.h
blob69c9004a2171cc5dbf21103946d6bccc143ad18b
1 /*
2 * Copyright 2006, Broadcom Corporation
3 * All Rights Reserved.
4 *
5 * This is UNPUBLISHED PROPRIETARY SOURCE CODE of Broadcom Corporation;
6 * the contents of this file may not be disclosed to third parties, copied
7 * or duplicated in any form, in whole or in part, without the prior
8 * written permission of Broadcom Corporation.
10 * Fundamental constants relating to ARP Protocol
12 * $Id$
15 #ifndef _bcmarp_h_
16 #define _bcmarp_h_
18 #define ARP_OPC_OFFSET 6 /* option code offset */
19 #define ARP_SRC_ETH_OFFSET 8 /* src h/w address offset */
20 #define ARP_SRC_IP_OFFSET 14 /* src IP address offset */
21 #define ARP_TGT_ETH_OFFSET 18 /* target h/w address offset */
22 #define ARP_TGT_IP_OFFSET 24 /* target IP address offset */
24 #define ARP_OPC_REQUEST 1 /* ARP request */
25 #define ARP_OPC_REPLY 2 /* ARP reply */
27 #endif /* #ifndef _bcmarp_h_ */