xref: /netbsd-src/external/bsd/tcpdump/dist/nlpid.c (revision 26ba0b503b498a5194a71ac319838b7f5497f3fe)
10f74e101Schristos /*
20f74e101Schristos  * Redistribution and use in source and binary forms, with or without
30f74e101Schristos  * modification, are permitted provided that: (1) source code
40f74e101Schristos  * distributions retain the above copyright notice and this paragraph
50f74e101Schristos  * in its entirety, and (2) distributions including binary code include
60f74e101Schristos  * the above copyright notice and this paragraph in its entirety in
70f74e101Schristos  * the documentation or other materials provided with the distribution.
80f74e101Schristos  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
90f74e101Schristos  * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
100f74e101Schristos  * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
110f74e101Schristos  * FOR A PARTICULAR PURPOSE.
120f74e101Schristos  *
1372c96ff3Schristos  * Original code by Hannes Gredler (hannes@gredler.at)
140f74e101Schristos  */
150f74e101Schristos 
1611b3aaa1Schristos #include <sys/cdefs.h>
170f74e101Schristos #ifndef lint
18*26ba0b50Schristos __RCSID("$NetBSD: nlpid.c,v 1.9 2024/09/02 16:15:30 christos Exp $");
190f74e101Schristos #endif
200f74e101Schristos 
21c74ad251Schristos #include <config.h>
220f74e101Schristos 
23c74ad251Schristos #include "netdissect-stdinc.h"
24fdccd7e4Schristos #include "netdissect.h"
250f74e101Schristos #include "nlpid.h"
260f74e101Schristos 
270f74e101Schristos const struct tok nlpid_values[] = {
280f74e101Schristos     { NLPID_NULLNS, "NULL" },
290f74e101Schristos     { NLPID_Q933, "Q.933" },
300f74e101Schristos     { NLPID_LMI, "LMI" },
310f74e101Schristos     { NLPID_SNAP, "SNAP" },
320f74e101Schristos     { NLPID_CLNP, "CLNP" },
330f74e101Schristos     { NLPID_ESIS, "ES-IS" },
340f74e101Schristos     { NLPID_ISIS, "IS-IS" },
350f74e101Schristos     { NLPID_CONS, "CONS" },
360f74e101Schristos     { NLPID_IDRP, "IDRP" },
37870189d2Schristos     { NLPID_SPB, "ISIS_SPB" },
380f74e101Schristos     { NLPID_MFR, "FRF.15" },
390f74e101Schristos     { NLPID_IP, "IPv4" },
400f74e101Schristos     { NLPID_PPP, "PPP" },
410f74e101Schristos     { NLPID_X25_ESIS, "X25 ES-IS" },
420f74e101Schristos     { NLPID_IP6, "IPv6" },
430f74e101Schristos     { 0, NULL }
440f74e101Schristos };
45