xref: /freebsd/sbin/ifconfig/ifconfig.h (revision 419d8080a45c9baf85e2254f2f6f30edb11fb0bd)
19906480aSPeter Wemm /*
29906480aSPeter Wemm  * Copyright (c) 1997 Peter Wemm.
39906480aSPeter Wemm  * All rights reserved.
49906480aSPeter Wemm  *
59906480aSPeter Wemm  * Redistribution and use in source and binary forms, with or without
69906480aSPeter Wemm  * modification, are permitted provided that the following conditions
79906480aSPeter Wemm  * are met:
89906480aSPeter Wemm  * 1. Redistributions of source code must retain the above copyright
99906480aSPeter Wemm  *    notice, this list of conditions and the following disclaimer.
109906480aSPeter Wemm  * 2. Redistributions in binary form must reproduce the above copyright
119906480aSPeter Wemm  *    notice, this list of conditions and the following disclaimer in the
129906480aSPeter Wemm  *    documentation and/or other materials provided with the distribution.
139906480aSPeter Wemm  * 3. All advertising materials mentioning features or use of this software
149906480aSPeter Wemm  *    must display the following acknowledgement:
159906480aSPeter Wemm  *      This product includes software developed for the FreeBSD Project
169906480aSPeter Wemm  *	by Peter Wemm.
179906480aSPeter Wemm  * 4. The name of the author may not be used to endorse or promote products
189906480aSPeter Wemm  *    derived from this software without specific prior written permission.
199906480aSPeter Wemm  *
209906480aSPeter Wemm  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
219906480aSPeter Wemm  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
229906480aSPeter Wemm  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
239906480aSPeter Wemm  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
249906480aSPeter Wemm  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
259906480aSPeter Wemm  * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
269906480aSPeter Wemm  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
279906480aSPeter Wemm  * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
289906480aSPeter Wemm  * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
299906480aSPeter Wemm  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
309906480aSPeter Wemm  * SUCH DAMAGE.
319906480aSPeter Wemm  *
329906480aSPeter Wemm  * so there!
339906480aSPeter Wemm  *
347f3dea24SPeter Wemm  * $FreeBSD$
359906480aSPeter Wemm  */
369906480aSPeter Wemm 
379906480aSPeter Wemm extern struct ifreq ifr;
389906480aSPeter Wemm 
399906480aSPeter Wemm extern char name[32];	/* name of interface */
409906480aSPeter Wemm extern int allmedia;
41eca42d3cSPeter Wemm struct afswtch;
429906480aSPeter Wemm 
43eca42d3cSPeter Wemm extern void setmedia(const char *, int, int, const struct afswtch *rafp);
44eca42d3cSPeter Wemm extern void setmediaopt(const char *, int, int, const struct afswtch *rafp);
45eca42d3cSPeter Wemm extern void unsetmediaopt(const char *, int, int, const struct afswtch *rafp);
46c5149505SPeter Wemm extern void media_status(int s, struct rt_addrinfo *);
4797ed1257SBill Paul 
4897ed1257SBill Paul extern void setvlantag(const char *, int, int, const struct afswtch *rafp);
4997ed1257SBill Paul extern void setvlandev(const char *, int, int, const struct afswtch *rafp);
5097ed1257SBill Paul extern void unsetvlandev(const char *, int, int, const struct afswtch *rafp);
5197ed1257SBill Paul extern void vlan_status(int s, struct rt_addrinfo *);
52419d8080SPoul-Henning Kamp 
53419d8080SPoul-Henning Kamp extern void set80211ssid(const char *, int, int, const struct afswtch *rafp);
54419d8080SPoul-Henning Kamp extern void set80211stationname(const char *, int, int, const struct afswtch *rafp);
55419d8080SPoul-Henning Kamp extern void set80211channel(const char *, int, int, const struct afswtch *rafp);
56419d8080SPoul-Henning Kamp extern void set80211authmode(const char *, int, int, const struct afswtch *rafp);
57419d8080SPoul-Henning Kamp extern void set80211powersave(const char *, int, int, const struct afswtch *rafp);
58419d8080SPoul-Henning Kamp extern void set80211powersavemode(const char *, int, int, const struct afswtch *rafp);
59419d8080SPoul-Henning Kamp extern void set80211powersavesleep(const char *, int, int, const struct afswtch *rafp);
60419d8080SPoul-Henning Kamp extern void set80211wepmode(const char *, int, int, const struct afswtch *rafp);
61419d8080SPoul-Henning Kamp extern void set80211wep(const char *, int, int, const struct afswtch *rafp);
62419d8080SPoul-Henning Kamp extern void set80211weptxkey(const char *, int, int, const struct afswtch *rafp);
63419d8080SPoul-Henning Kamp extern void set80211wepkey(const char *, int, int, const struct afswtch *rafp);
64419d8080SPoul-Henning Kamp extern void set80211nwkey(const char *, int, int, const struct afswtch *rafp);
65419d8080SPoul-Henning Kamp extern void ieee80211_status(int s, struct rt_addrinfo *);
66