ifconfig.h revision 77217
125451Speter/* 225451Speter * Copyright (c) 1997 Peter Wemm. 325451Speter * All rights reserved. 425451Speter * 525451Speter * Redistribution and use in source and binary forms, with or without 625451Speter * modification, are permitted provided that the following conditions 725451Speter * are met: 825451Speter * 1. Redistributions of source code must retain the above copyright 925451Speter * notice, this list of conditions and the following disclaimer. 1025451Speter * 2. Redistributions in binary form must reproduce the above copyright 1125451Speter * notice, this list of conditions and the following disclaimer in the 1225451Speter * documentation and/or other materials provided with the distribution. 1325451Speter * 3. All advertising materials mentioning features or use of this software 1425451Speter * must display the following acknowledgement: 1525451Speter * This product includes software developed for the FreeBSD Project 1625451Speter * by Peter Wemm. 1725451Speter * 4. The name of the author may not be used to endorse or promote products 1825451Speter * derived from this software without specific prior written permission. 1925451Speter * 2025451Speter * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 2125451Speter * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 2225451Speter * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 2325451Speter * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 2425451Speter * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, 2525451Speter * BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 2625451Speter * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED 2725451Speter * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, 2825451Speter * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2925451Speter * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 3025451Speter * SUCH DAMAGE. 3125451Speter * 3225451Speter * so there! 3325451Speter * 3450476Speter * $FreeBSD: head/sbin/ifconfig/ifconfig.h 77217 2001-05-26 09:27:08Z phk $ 3525451Speter */ 3625451Speter 3725451Speterextern struct ifreq ifr; 3825451Speter 3925451Speterextern char name[32]; /* name of interface */ 4025451Speterextern int allmedia; 4125660Speterstruct afswtch; 4225451Speter 4325660Speterextern void setmedia(const char *, int, int, const struct afswtch *rafp); 4425660Speterextern void setmediaopt(const char *, int, int, const struct afswtch *rafp); 4525660Speterextern void unsetmediaopt(const char *, int, int, const struct afswtch *rafp); 4625667Speterextern void media_status(int s, struct rt_addrinfo *); 4744764Swpaul 4844764Swpaulextern void setvlantag(const char *, int, int, const struct afswtch *rafp); 4944764Swpaulextern void setvlandev(const char *, int, int, const struct afswtch *rafp); 5044764Swpaulextern void unsetvlandev(const char *, int, int, const struct afswtch *rafp); 5144764Swpaulextern void vlan_status(int s, struct rt_addrinfo *); 5277217Sphk 5377217Sphkextern void set80211ssid(const char *, int, int, const struct afswtch *rafp); 5477217Sphkextern void set80211stationname(const char *, int, int, const struct afswtch *rafp); 5577217Sphkextern void set80211channel(const char *, int, int, const struct afswtch *rafp); 5677217Sphkextern void set80211authmode(const char *, int, int, const struct afswtch *rafp); 5777217Sphkextern void set80211powersave(const char *, int, int, const struct afswtch *rafp); 5877217Sphkextern void set80211powersavemode(const char *, int, int, const struct afswtch *rafp); 5977217Sphkextern void set80211powersavesleep(const char *, int, int, const struct afswtch *rafp); 6077217Sphkextern void set80211wepmode(const char *, int, int, const struct afswtch *rafp); 6177217Sphkextern void set80211wep(const char *, int, int, const struct afswtch *rafp); 6277217Sphkextern void set80211weptxkey(const char *, int, int, const struct afswtch *rafp); 6377217Sphkextern void set80211wepkey(const char *, int, int, const struct afswtch *rafp); 6477217Sphkextern void set80211nwkey(const char *, int, int, const struct afswtch *rafp); 6577217Sphkextern void ieee80211_status(int s, struct rt_addrinfo *); 66