Changeset View
Changeset View
Standalone View
Standalone View
sbin/ifconfig/ifconfig.h
Show All 30 Lines | |||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
* SUCH DAMAGE. | * SUCH DAMAGE. | ||||
* | * | ||||
* so there! | * so there! | ||||
* | * | ||||
* $FreeBSD$ | * $FreeBSD$ | ||||
*/ | */ | ||||
#pragma once | |||||
#include <libifconfig.h> | |||||
#define __constructor __attribute__((constructor)) | #define __constructor __attribute__((constructor)) | ||||
struct afswtch; | struct afswtch; | ||||
struct cmd; | struct cmd; | ||||
typedef void c_func(const char *cmd, int arg, int s, const struct afswtch *afp); | typedef void c_func(const char *cmd, int arg, int s, const struct afswtch *afp); | ||||
typedef void c_func2(const char *arg1, const char *arg2, int s, const struct afswtch *afp); | typedef void c_func2(const char *arg1, const char *arg2, int s, const struct afswtch *afp); | ||||
▲ Show 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | |||||
struct option { | struct option { | ||||
const char *opt; | const char *opt; | ||||
const char *opt_usage; | const char *opt_usage; | ||||
void (*cb)(const char *arg); | void (*cb)(const char *arg); | ||||
struct option *next; | struct option *next; | ||||
}; | }; | ||||
void opt_register(struct option *); | void opt_register(struct option *); | ||||
extern ifconfig_handle_t *lifh; | |||||
extern struct ifreq ifr; | extern struct ifreq ifr; | ||||
extern char name[IFNAMSIZ]; /* name of interface */ | extern char name[IFNAMSIZ]; /* name of interface */ | ||||
extern int allmedia; | extern int allmedia; | ||||
extern int supmedia; | extern int supmedia; | ||||
extern int printkeys; | extern int printkeys; | ||||
extern int newaddr; | extern int newaddr; | ||||
extern int verbose; | extern int verbose; | ||||
extern int printifname; | extern int printifname; | ||||
Show All 25 Lines |