175584Sru/*-
2151497Sru * Copyright (c) 2007 Seccuris Inc.
3151497Sru * All rights reserved.
475584Sru *
575584Sru * This software was developed by Robert N. M. Watson under contract to
675584Sru * Seccuris Inc.
775584Sru *
875584Sru * Redistribution and use in source and binary forms, with or without
975584Sru * modification, are permitted provided that the following conditions
1075584Sru * are met:
1175584Sru * 1. Redistributions of source code must retain the above copyright
1275584Sru *    notice, this list of conditions and the following disclaimer.
1375584Sru * 2. Redistributions in binary form must reproduce the above copyright
1475584Sru *    notice, this list of conditions and the following disclaimer in the
1575584Sru *    documentation and/or other materials provided with the distribution.
1675584Sru *
1775584Sru * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
1875584Sru * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
1975584Sru * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20151497Sru * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
2175584Sru * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22104862Sru * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23104862Sru * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24104862Sru * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25104862Sru * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
2675584Sru * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
2779543Sru * SUCH DAMAGE.
2875584Sru *
2975584Sru * $FreeBSD$
3075584Sru */
31104862Sru
3275584Sru#ifndef _NET_BPF_BUFFER_H_
3375584Sru#define	_NET_BPF_BUFFER_H_
3475584Sru
35151497Sru#ifndef _KERNEL
36104862Sru#error "no user-serviceable parts inside"
3775584Sru#endif
38114402Sru
39114402Sruvoid	bpf_buffer_append_bytes(struct bpf_d *d, caddr_t buf, u_int offset,
40114402Sru	    void *src, u_int len);
41114402Sruvoid	bpf_buffer_append_mbuf(struct bpf_d *d, caddr_t buf, u_int offset,
42114402Sru	    void *src, u_int len);
43114402Sruvoid	bpf_buffer_free(struct bpf_d *d);
4475584Sruvoid	bpf_buffer_init(struct bpf_d *d);
4575584Sruint	bpf_buffer_ioctl_sblen(struct bpf_d *d, u_int *i);
46151497Sruint	bpf_buffer_uiomove(struct bpf_d *d, caddr_t buf, u_int len,
4775584Sru	    struct uio *uio);
4875584Sru
4975584Sru#endif /* !_NET_BPF_BUFFER_H_ */
5075584Sru