1*449458b6Schristos /* $NetBSD: pcap-common.h,v 1.4 2023/08/17 15:18:12 christos Exp $ */ 2d9186219Schristos 33b604290Schristos /* 43b604290Schristos * Copyright (c) 1993, 1994, 1995, 1996, 1997 53b604290Schristos * The Regents of the University of California. All rights reserved. 63b604290Schristos * 73b604290Schristos * Redistribution and use in source and binary forms, with or without 83b604290Schristos * modification, are permitted provided that: (1) source code distributions 93b604290Schristos * retain the above copyright notice and this paragraph in its entirety, (2) 103b604290Schristos * distributions including binary code include the above copyright notice and 113b604290Schristos * this paragraph in its entirety in the documentation or other materials 123b604290Schristos * provided with the distribution, and (3) all advertising materials mentioning 133b604290Schristos * features or use of this software display the following acknowledgement: 143b604290Schristos * ``This product includes software developed by the University of California, 153b604290Schristos * Lawrence Berkeley Laboratory and its contributors.'' Neither the name of 163b604290Schristos * the University nor the names of its contributors may be used to endorse 173b604290Schristos * or promote products derived from this software without specific prior 183b604290Schristos * written permission. 193b604290Schristos * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED 203b604290Schristos * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF 213b604290Schristos * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 223b604290Schristos * 233b604290Schristos * pcap-common.h - common code for pcap and pcapng files 243b604290Schristos */ 25bf1df6d1Schristos 26bf1df6d1Schristos extern int dlt_to_linktype(int dlt); 27bf1df6d1Schristos 28bf1df6d1Schristos extern int linktype_to_dlt(int linktype); 29bf1df6d1Schristos 303b604290Schristos extern u_int max_snaplen_for_dlt(int dlt); 31