The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 1998-2006 The TCPDUMP project |
| 3 | * |
| 4 | * Redistribution and use in source and binary forms, with or without |
| 5 | * modification, are permitted provided that: (1) source code |
| 6 | * distributions retain the above copyright notice and this paragraph |
| 7 | * in its entirety, and (2) distributions including binary code include |
| 8 | * the above copyright notice and this paragraph in its entirety in |
| 9 | * the documentation or other materials provided with the distribution. |
| 10 | * THIS SOFTWARE IS PROVIDED ``AS IS'' AND |
| 11 | * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT |
| 12 | * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
| 13 | * FOR A PARTICULAR PURPOSE. |
| 14 | * |
Elliott Hughes | cec480a | 2017-12-19 16:54:57 -0800 | [diff] [blame] | 15 | * Original code by Hannes Gredler (hannes@gredler.at) |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 16 | */ |
| 17 | |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 18 | #ifdef HAVE_CONFIG_H |
| 19 | #include "config.h" |
| 20 | #endif |
| 21 | |
Elliott Hughes | e2e3bd1 | 2017-05-15 10:59:29 -0700 | [diff] [blame] | 22 | #include <netdissect-stdinc.h> |
| 23 | #include "netdissect.h" |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 24 | #include "af.h" |
| 25 | |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 26 | const struct tok af_values[] = { |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 27 | { 0, "Reserved"}, |
| 28 | { AFNUM_INET, "IPv4"}, |
| 29 | { AFNUM_INET6, "IPv6"}, |
| 30 | { AFNUM_NSAP, "NSAP"}, |
| 31 | { AFNUM_HDLC, "HDLC"}, |
| 32 | { AFNUM_BBN1822, "BBN 1822"}, |
| 33 | { AFNUM_802, "802"}, |
| 34 | { AFNUM_E163, "E.163"}, |
| 35 | { AFNUM_E164, "E.164"}, |
| 36 | { AFNUM_F69, "F.69"}, |
| 37 | { AFNUM_X121, "X.121"}, |
| 38 | { AFNUM_IPX, "Novell IPX"}, |
| 39 | { AFNUM_ATALK, "Appletalk"}, |
| 40 | { AFNUM_DECNET, "Decnet IV"}, |
| 41 | { AFNUM_BANYAN, "Banyan Vines"}, |
| 42 | { AFNUM_E164NSAP, "E.164 with NSAP subaddress"}, |
| 43 | { AFNUM_L2VPN, "Layer-2 VPN"}, |
| 44 | { AFNUM_VPLS, "VPLS"}, |
| 45 | { 0, NULL}, |
| 46 | }; |
| 47 | |
JP Abgrall | 53f17a9 | 2014-02-12 14:02:41 -0800 | [diff] [blame] | 48 | const struct tok bsd_af_values[] = { |
The Android Open Source Project | 2949f58 | 2009-03-03 19:30:46 -0800 | [diff] [blame] | 49 | { BSD_AFNUM_INET, "IPv4" }, |
| 50 | { BSD_AFNUM_NS, "NS" }, |
| 51 | { BSD_AFNUM_ISO, "ISO" }, |
| 52 | { BSD_AFNUM_APPLETALK, "Appletalk" }, |
| 53 | { BSD_AFNUM_IPX, "IPX" }, |
| 54 | { BSD_AFNUM_INET6_BSD, "IPv6" }, |
| 55 | { BSD_AFNUM_INET6_FREEBSD, "IPv6" }, |
| 56 | { BSD_AFNUM_INET6_DARWIN, "IPv6" }, |
| 57 | { 0, NULL} |
| 58 | }; |