dcerpc-netlogon: improve NetrLogonGetCapabilities dissection
[wireshark-sm.git] / wiretap / pcap-common.h
blob56be5fae385d8f9a5f21c396791405e2c3138f59
1 /** @file
3 * Declarations for code common to pcap and pcapng file formats
5 * Wiretap Library
6 * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
8 * File format support for pcapng file format
9 * Copyright (c) 2007 by Ulf Lamping <ulf.lamping@web.de>
11 * SPDX-License-Identifier: GPL-2.0-or-later
14 #ifndef __W_PCAP_COMMON_H__
15 #define __W_PCAP_COMMON_H__
17 #include <glib.h>
18 #include "wtap.h"
19 #include "ws_symbol_export.h"
21 extern unsigned wtap_max_snaplen_for_encap(int wtap_encap);
23 extern int pcap_process_pseudo_header(FILE_T fh, bool is_nokia,
24 int wtap_encap, unsigned packet_size, wtap_rec *rec,
25 int *err, char **err_info);
27 extern void pcap_read_post_process(bool is_nokia, int wtap_encap,
28 wtap_rec *rec, uint8_t *pd, bool bytes_swapped, int fcs_len);
30 extern int pcap_get_phdr_size(int encap,
31 const union wtap_pseudo_header *pseudo_header);
33 extern bool pcap_write_phdr(wtap_dumper *wdh, int wtap_encap,
34 const union wtap_pseudo_header *pseudo_header, int *err);
36 #endif