xref: /freebsd/sys/dev/wtap/plugins/visibility_ioctl.h (revision 04d198028975d9b9fa18d64f2be53aca08f07259)
1*04d19802SAdrian Chadd /*-
2*04d19802SAdrian Chadd  * Copyright (c) 2011 Monthadar Al Jaberi, TerraNet AB
3*04d19802SAdrian Chadd  * All rights reserved.
4*04d19802SAdrian Chadd  *
5*04d19802SAdrian Chadd  * Redistribution and use in source and binary forms, with or without
6*04d19802SAdrian Chadd  * modification, are permitted provided that the following conditions
7*04d19802SAdrian Chadd  * are met:
8*04d19802SAdrian Chadd  * 1. Redistributions of source code must retain the above copyright
9*04d19802SAdrian Chadd  *    notice, this list of conditions and the following disclaimer,
10*04d19802SAdrian Chadd  *    without modification.
11*04d19802SAdrian Chadd  * 2. Redistributions in binary form must reproduce at minimum a disclaimer
12*04d19802SAdrian Chadd  *    similar to the "NO WARRANTY" disclaimer below ("Disclaimer") and any
13*04d19802SAdrian Chadd  *    redistribution must be conditioned upon including a substantially
14*04d19802SAdrian Chadd  *    similar Disclaimer requirement for further binary redistribution.
15*04d19802SAdrian Chadd  *
16*04d19802SAdrian Chadd  * NO WARRANTY
17*04d19802SAdrian Chadd  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18*04d19802SAdrian Chadd  * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19*04d19802SAdrian Chadd  * LIMITED TO, THE IMPLIED WARRANTIES OF NONINFRINGEMENT, MERCHANTIBILITY
20*04d19802SAdrian Chadd  * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
21*04d19802SAdrian Chadd  * THE COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR SPECIAL, EXEMPLARY,
22*04d19802SAdrian Chadd  * OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
23*04d19802SAdrian Chadd  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24*04d19802SAdrian Chadd  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25*04d19802SAdrian Chadd  * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
26*04d19802SAdrian Chadd  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
27*04d19802SAdrian Chadd  * THE POSSIBILITY OF SUCH DAMAGES.
28*04d19802SAdrian Chadd  *
29*04d19802SAdrian Chadd  * $FreeBSD$
30*04d19802SAdrian Chadd  */
31*04d19802SAdrian Chadd 
32*04d19802SAdrian Chadd /*
33*04d19802SAdrian Chadd  * Ioctl-related defintions for the Wireless TAP plugins.
34*04d19802SAdrian Chadd  */
35*04d19802SAdrian Chadd 
36*04d19802SAdrian Chadd #ifndef _VISIBILITY_IOCTL_H
37*04d19802SAdrian Chadd #define _VISIBILITY_IOCTL_H
38*04d19802SAdrian Chadd 
39*04d19802SAdrian Chadd #include <sys/param.h>
40*04d19802SAdrian Chadd 
41*04d19802SAdrian Chadd struct link {
42*04d19802SAdrian Chadd       int	op; //0 remove, 1 link
43*04d19802SAdrian Chadd       int 	id1;
44*04d19802SAdrian Chadd       int	id2;
45*04d19802SAdrian Chadd };
46*04d19802SAdrian Chadd 
47*04d19802SAdrian Chadd #define VISIOCTLOPEN _IOW('W', 3, int) // 0 close, 1 open
48*04d19802SAdrian Chadd #define VISIOCTLLINK _IOW('W', 4, struct link) //
49*04d19802SAdrian Chadd 
50*04d19802SAdrian Chadd #endif
51*04d19802SAdrian Chadd 
52