10f74e101Schristos /* 20f74e101Schristos * Copyright (c) 1998-2006 The TCPDUMP project 30f74e101Schristos * 40f74e101Schristos * Redistribution and use in source and binary forms, with or without 50f74e101Schristos * modification, are permitted provided that: (1) source code 60f74e101Schristos * distributions retain the above copyright notice and this paragraph 70f74e101Schristos * in its entirety, and (2) distributions including binary code include 80f74e101Schristos * the above copyright notice and this paragraph in its entirety in 90f74e101Schristos * the documentation or other materials provided with the distribution. 100f74e101Schristos * THIS SOFTWARE IS PROVIDED ``AS IS'' AND 110f74e101Schristos * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT 120f74e101Schristos * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS 130f74e101Schristos * FOR A PARTICULAR PURPOSE. 140f74e101Schristos * 1572c96ff3Schristos * Original code by Hannes Gredler (hannes@gredler.at) 160f74e101Schristos */ 170f74e101Schristos 1811b3aaa1Schristos #include <sys/cdefs.h> 190f74e101Schristos #ifndef lint 20*26ba0b50Schristos __RCSID("$NetBSD: af.c,v 1.8 2024/09/02 16:15:29 christos Exp $"); 210f74e101Schristos #endif 220f74e101Schristos 23c74ad251Schristos #include <config.h> 240f74e101Schristos 25c74ad251Schristos #include "netdissect-stdinc.h" 26fdccd7e4Schristos #include "netdissect.h" 270f74e101Schristos #include "af.h" 280f74e101Schristos 290f74e101Schristos const struct tok af_values[] = { 300f74e101Schristos { 0, "Reserved"}, 310f74e101Schristos { AFNUM_INET, "IPv4"}, 320f74e101Schristos { AFNUM_INET6, "IPv6"}, 330f74e101Schristos { AFNUM_NSAP, "NSAP"}, 340f74e101Schristos { AFNUM_HDLC, "HDLC"}, 350f74e101Schristos { AFNUM_BBN1822, "BBN 1822"}, 360f74e101Schristos { AFNUM_802, "802"}, 370f74e101Schristos { AFNUM_E163, "E.163"}, 380f74e101Schristos { AFNUM_E164, "E.164"}, 390f74e101Schristos { AFNUM_F69, "F.69"}, 400f74e101Schristos { AFNUM_X121, "X.121"}, 410f74e101Schristos { AFNUM_IPX, "Novell IPX"}, 420f74e101Schristos { AFNUM_ATALK, "Appletalk"}, 430f74e101Schristos { AFNUM_DECNET, "Decnet IV"}, 440f74e101Schristos { AFNUM_BANYAN, "Banyan Vines"}, 450f74e101Schristos { AFNUM_E164NSAP, "E.164 with NSAP subaddress"}, 460f74e101Schristos { AFNUM_L2VPN, "Layer-2 VPN"}, 470f74e101Schristos { AFNUM_VPLS, "VPLS"}, 480f74e101Schristos { 0, NULL}, 490f74e101Schristos }; 500f74e101Schristos 510f74e101Schristos const struct tok bsd_af_values[] = { 520f74e101Schristos { BSD_AFNUM_INET, "IPv4" }, 530f74e101Schristos { BSD_AFNUM_NS, "NS" }, 540f74e101Schristos { BSD_AFNUM_ISO, "ISO" }, 550f74e101Schristos { BSD_AFNUM_APPLETALK, "Appletalk" }, 560f74e101Schristos { BSD_AFNUM_IPX, "IPX" }, 570f74e101Schristos { BSD_AFNUM_INET6_BSD, "IPv6" }, 580f74e101Schristos { BSD_AFNUM_INET6_FREEBSD, "IPv6" }, 590f74e101Schristos { BSD_AFNUM_INET6_DARWIN, "IPv6" }, 600f74e101Schristos { 0, NULL} 610f74e101Schristos }; 62