186a996e6SHiren Panchasara /*- 286a996e6SHiren Panchasara * Copyright (c) 2015 386a996e6SHiren Panchasara * Jonathan Looney. All rights reserved. 486a996e6SHiren Panchasara * 586a996e6SHiren Panchasara * Redistribution and use in source and binary forms, with or without 686a996e6SHiren Panchasara * modification, are permitted provided that the following conditions 786a996e6SHiren Panchasara * are met: 886a996e6SHiren Panchasara * 1. Redistributions of source code must retain the above copyright 986a996e6SHiren Panchasara * notice, this list of conditions and the following disclaimer. 1086a996e6SHiren Panchasara * 2. Redistributions in binary form must reproduce the above copyright 1186a996e6SHiren Panchasara * notice, this list of conditions and the following disclaimer in the 1286a996e6SHiren Panchasara * documentation and/or other materials provided with the distribution. 1386a996e6SHiren Panchasara * 1486a996e6SHiren Panchasara * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 1586a996e6SHiren Panchasara * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 1686a996e6SHiren Panchasara * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 1786a996e6SHiren Panchasara * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 1886a996e6SHiren Panchasara * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 1986a996e6SHiren Panchasara * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2086a996e6SHiren Panchasara * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2186a996e6SHiren Panchasara * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2286a996e6SHiren Panchasara * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2386a996e6SHiren Panchasara * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2486a996e6SHiren Panchasara * SUCH DAMAGE. 2586a996e6SHiren Panchasara */ 2686a996e6SHiren Panchasara 2786a996e6SHiren Panchasara #ifndef _NETINET_TCP_PCAP_H_ 2886a996e6SHiren Panchasara #define _NETINET_TCP_PCAP_H_ 2986a996e6SHiren Panchasara 3086a996e6SHiren Panchasara void tcp_pcap_init(void); 3186a996e6SHiren Panchasara void tcp_pcap_add(struct tcphdr *th, struct mbuf *m, struct mbufq *queue); 3286a996e6SHiren Panchasara void tcp_pcap_drain(struct mbufq *queue); 3386a996e6SHiren Panchasara void tcp_pcap_tcpcb_init(struct tcpcb *tp); 3486a996e6SHiren Panchasara void tcp_pcap_set_sock_max(struct mbufq *queue, int newval); 3586a996e6SHiren Panchasara int tcp_pcap_get_sock_max(struct mbufq *queue); 3686a996e6SHiren Panchasara 37*24b9bb56SJonathan T. Looney extern int tcp_pcap_aggressive_free; 38*24b9bb56SJonathan T. Looney 3986a996e6SHiren Panchasara #endif /* _NETINET_TCP_PCAP_H_ */ 40