/*
 * Copyright (C) 2014, 2016 Zev Weiss <zev@bewilderbeest.net>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
 */

#ifndef CAPTURE_H
#define CAPTURE_H

/* Max pcap packet capture size (bytes)
   only the header information is really needed, even if some higher-level protocols 
   use part of the payload (e.g. FTP, netbios), but this is not essential for etherape
   The current capture size allows for extra headers (e.g. VLANs, encapsulations, etc.)
   and, usually, even the first bytes of the payload
   Some combinations of incapsulation could theoretically be larger, but this is unlikely.
   The current size is a multiple of 64bits.
*/
#define MAXCAPSIZE  256

void pktcap_run(int csockfd, int ppipefd);

#endif
