summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_message.h
diff options
context:
space:
mode:
authorDenis Ovsienko <infrastation@yandex.ru>2011-10-14 19:59:58 +0200
committerDenis Ovsienko <infrastation@yandex.ru>2011-12-13 16:27:34 +0100
commit5031ed1347191ee3e0767cfa44e7047c36d37bd1 (patch)
tree2b0e4904eb5b481407f1347c0fb4011c7a90ac16 /ospf6d/ospf6_message.h
parentospf6d: make some old sizing checks assertions (diff)
downloadfrr-5031ed1347191ee3e0767cfa44e7047c36d37bd1.tar.xz
frr-5031ed1347191ee3e0767cfa44e7047c36d37bd1.zip
ospf6d: decode message type with LOOKUP()
* ospf6_message.h * OSPF6_MESSAGE_TYPE_CANONICAL(): dismiss * OSPF6_MESSAGE_TYPE_NAME(): dismiss * ospf6_message.c * ospf6_message_type_str: rewrite as a message list, add max value * ospf6_packet_examin(): update to use LOOKUP() * ospf6_receive(): idem * ospf6_send(): idem
Diffstat (limited to 'ospf6d/ospf6_message.h')
-rw-r--r--ospf6d/ospf6_message.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/ospf6d/ospf6_message.h b/ospf6d/ospf6_message.h
index 232b875e0..b085a9673 100644
--- a/ospf6d/ospf6_message.h
+++ b/ospf6d/ospf6_message.h
@@ -44,13 +44,6 @@ extern unsigned char conf_debug_ospf6_message[];
#define OSPF6_MESSAGE_TYPE_LSACK 0x5 /* Flooding acknowledgment */
#define OSPF6_MESSAGE_TYPE_ALL 0x6 /* For debug option */
-#define OSPF6_MESSAGE_TYPE_CANONICAL(T) \
- ((T) > OSPF6_MESSAGE_TYPE_LSACK ? OSPF6_MESSAGE_TYPE_UNKNOWN : (T))
-
-extern const char *ospf6_message_type_str[];
-#define OSPF6_MESSAGE_TYPE_NAME(T) \
- (ospf6_message_type_str[ OSPF6_MESSAGE_TYPE_CANONICAL (T) ])
-
/* OSPFv3 packet header */
#define OSPF6_HEADER_SIZE 16U
struct ospf6_header