xref: /freebsd/contrib/tcpdump/nlpid.c (revision 0a7e5f1f02aad2ff5fff1c60f44c6975fd07e1d9)
11de50e9fSSam Leffler /*
21de50e9fSSam Leffler  * Redistribution and use in source and binary forms, with or without
31de50e9fSSam Leffler  * modification, are permitted provided that: (1) source code
41de50e9fSSam Leffler  * distributions retain the above copyright notice and this paragraph
51de50e9fSSam Leffler  * in its entirety, and (2) distributions including binary code include
61de50e9fSSam Leffler  * the above copyright notice and this paragraph in its entirety in
71de50e9fSSam Leffler  * the documentation or other materials provided with the distribution.
81de50e9fSSam Leffler  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
91de50e9fSSam Leffler  * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
101de50e9fSSam Leffler  * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
111de50e9fSSam Leffler  * FOR A PARTICULAR PURPOSE.
121de50e9fSSam Leffler  *
130bff6a5aSEd Maste  * Original code by Hannes Gredler (hannes@gredler.at)
141de50e9fSSam Leffler  */
151de50e9fSSam Leffler 
16*ee67461eSJoseph Mingrone #include <config.h>
171de50e9fSSam Leffler 
18*ee67461eSJoseph Mingrone #include "netdissect-stdinc.h"
193340d773SGleb Smirnoff #include "netdissect.h"
201de50e9fSSam Leffler #include "nlpid.h"
211de50e9fSSam Leffler 
2227df3f5dSRui Paulo const struct tok nlpid_values[] = {
231de50e9fSSam Leffler     { NLPID_NULLNS, "NULL" },
241de50e9fSSam Leffler     { NLPID_Q933, "Q.933" },
251de50e9fSSam Leffler     { NLPID_LMI, "LMI" },
261de50e9fSSam Leffler     { NLPID_SNAP, "SNAP" },
271de50e9fSSam Leffler     { NLPID_CLNP, "CLNP" },
281de50e9fSSam Leffler     { NLPID_ESIS, "ES-IS" },
291de50e9fSSam Leffler     { NLPID_ISIS, "IS-IS" },
301de50e9fSSam Leffler     { NLPID_CONS, "CONS" },
311de50e9fSSam Leffler     { NLPID_IDRP, "IDRP" },
32d03c0883SXin LI     { NLPID_SPB, "ISIS_SPB" },
331de50e9fSSam Leffler     { NLPID_MFR, "FRF.15" },
341de50e9fSSam Leffler     { NLPID_IP, "IPv4" },
351de50e9fSSam Leffler     { NLPID_PPP, "PPP" },
361de50e9fSSam Leffler     { NLPID_X25_ESIS, "X25 ES-IS" },
371de50e9fSSam Leffler     { NLPID_IP6, "IPv6" },
381de50e9fSSam Leffler     { 0, NULL }
391de50e9fSSam Leffler };
40