1289276Shiren/*- 2289276Shiren * Copyright (c) 2015 3289276Shiren * Jonathan Looney. All rights reserved. 4289276Shiren * 5289276Shiren * Redistribution and use in source and binary forms, with or without 6289276Shiren * modification, are permitted provided that the following conditions 7289276Shiren * are met: 8289276Shiren * 1. Redistributions of source code must retain the above copyright 9289276Shiren * notice, this list of conditions and the following disclaimer. 10289276Shiren * 2. Redistributions in binary form must reproduce the above copyright 11289276Shiren * notice, this list of conditions and the following disclaimer in the 12289276Shiren * documentation and/or other materials provided with the distribution. 13289276Shiren * 14289276Shiren * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 15289276Shiren * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 16289276Shiren * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 17289276Shiren * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 18289276Shiren * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19289276Shiren * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20289276Shiren * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21289276Shiren * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22289276Shiren * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23289276Shiren * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24289276Shiren * SUCH DAMAGE. 25289276Shiren * 26289276Shiren * $FreeBSD$ 27289276Shiren */ 28289276Shiren 29289276Shiren#ifndef _NETINET_TCP_PCAP_H_ 30289276Shiren#define _NETINET_TCP_PCAP_H_ 31289276Shiren 32289276Shirenvoid tcp_pcap_init(void); 33289276Shirenvoid tcp_pcap_add(struct tcphdr *th, struct mbuf *m, struct mbufq *queue); 34289276Shirenvoid tcp_pcap_drain(struct mbufq *queue); 35289276Shirenvoid tcp_pcap_tcpcb_init(struct tcpcb *tp); 36289276Shirenvoid tcp_pcap_set_sock_max(struct mbufq *queue, int newval); 37289276Shirenint tcp_pcap_get_sock_max(struct mbufq *queue); 38289276Shiren 39302374Sjtlextern int tcp_pcap_aggressive_free; 40302374Sjtl 41289276Shiren#endif /* _NETINET_TCP_PCAP_H_ */ 42