1*05b00f60SXin Li /*
2*05b00f60SXin Li * Copyright (c) 2020 The TCPDUMP project
3*05b00f60SXin Li * All rights reserved.
4*05b00f60SXin Li *
5*05b00f60SXin Li * Redistribution and use in source and binary forms, with or without
6*05b00f60SXin Li * modification, are permitted provided that: (1) source code
7*05b00f60SXin Li * distributions retain the above copyright notice and this paragraph
8*05b00f60SXin Li * in its entirety, and (2) distributions including binary code include
9*05b00f60SXin Li * the above copyright notice and this paragraph in its entirety in
10*05b00f60SXin Li * the documentation or other materials provided with the distribution.
11*05b00f60SXin Li * THIS SOFTWARE IS PROVIDED ``AS IS'' AND
12*05b00f60SXin Li * WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT
13*05b00f60SXin Li * LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
14*05b00f60SXin Li * FOR A PARTICULAR PURPOSE.
15*05b00f60SXin Li */
16*05b00f60SXin Li
17*05b00f60SXin Li /* \summary: unsupported link-layer protocols printer */
18*05b00f60SXin Li
19*05b00f60SXin Li #ifdef HAVE_CONFIG_H
20*05b00f60SXin Li #include <config.h>
21*05b00f60SXin Li #endif
22*05b00f60SXin Li
23*05b00f60SXin Li #include "netdissect-stdinc.h"
24*05b00f60SXin Li
25*05b00f60SXin Li #include "netdissect.h"
26*05b00f60SXin Li
27*05b00f60SXin Li void
unsupported_if_print(netdissect_options * ndo,const struct pcap_pkthdr * h,const u_char * p)28*05b00f60SXin Li unsupported_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h,
29*05b00f60SXin Li const u_char *p)
30*05b00f60SXin Li {
31*05b00f60SXin Li ndo->ndo_protocol = "unsupported";
32*05b00f60SXin Li nd_print_protocol_caps(ndo);
33*05b00f60SXin Li hex_and_ascii_print(ndo, "\n\t", p, h->caplen);
34*05b00f60SXin Li }
35