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