From e756c7948078bd5109c5b8a0f252851efc4532d6 Mon Sep 17 00:00:00 2001 From: Mark Bryars Date: Fri, 4 May 2012 22:19:13 +0100 Subject: Imported Upstream version 0.13 --- nhrp/afnum.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 nhrp/afnum.h (limited to 'nhrp/afnum.h') diff --git a/nhrp/afnum.h b/nhrp/afnum.h new file mode 100644 index 0000000..2dc3d68 --- /dev/null +++ b/nhrp/afnum.h @@ -0,0 +1,29 @@ +/* afnum.h - RFC 1700 Address Family Number and + * ethernet protocol number definitions + * + * Copyright (C) 2007 Timo Teräs + * All rights reserved. + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 or later as + * published by the Free Software Foundation. + * + * See http://www.gnu.org/ for details. + */ + +#ifndef AFNUM_H +#define AFNUM_H + +#include +#include "nhrp_defines.h" + +#define AFNUM_RESERVED constant_htons(0) +#define AFNUM_INET constant_htons(1) +#define AFNUM_INET6 constant_htons(2) + +#define ETH_P_NHRP 0x2001 + +#define ETHPROTO_IP constant_htons(ETH_P_IP) +#define ETHPROTO_NHRP constant_htons(ETH_P_NHRP) + +#endif -- cgit v1.2.3