Pcap.h revision a75c7589b84d8fe93d1039f7305298c22815185b
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync/* $Id$ */
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync/** @file
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync * Helpers for writing libpcap files.
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync */
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync/*
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync * Copyright (C) 2006-2008 Sun Microsystems, Inc.
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync *
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync * available from http://www.virtualbox.org. This file is free software;
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync * you can redistribute it and/or modify it under the terms of the GNU
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync * General Public License (GPL) as published by the Free Software
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync *
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync * additional information or have any questions.
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync */
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync#ifndef ___VBox_Pcap_h
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync#define ___VBox_Pcap_h
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync#include <iprt/stream.h>
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync__BEGIN_DECLS
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync
a75c7589b84d8fe93d1039f7305298c22815185bvboxsyncint PcapStreamHdr(PRTSTREAM pStream, uint64_t StartNanoTS);
a75c7589b84d8fe93d1039f7305298c22815185bvboxsyncint PcapStreamFrame(PRTSTREAM pStream, uint64_t StartNanoTS, const void *pvFrame, size_t cbFrame, size_t cbMax);
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync
a75c7589b84d8fe93d1039f7305298c22815185bvboxsyncint PcapFileHdr(RTFILE File, uint64_t StartNanoTS);
a75c7589b84d8fe93d1039f7305298c22815185bvboxsyncint PcapFileFrame(RTFILE File, uint64_t StartNanoTS, const void *pvFrame, size_t cbFrame, size_t cbMax);
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync__END_DECLS
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync#endif
a75c7589b84d8fe93d1039f7305298c22815185bvboxsync