7b01455a0e
improved modularity and extensibility. In the new architecture, a directed graph of argument-matching objects (match objects) expresses the set of feasible ifconfig statements. Match objects are labelled by subroutines that provide the statement semantics. Many IPv4, IPv6, 802.11, tunnel, and media configurations have been tested. AppleTalk, ISO, carp(4), agr(4), and vlan(4) configuration need testing.
15 lines
550 B
C
15 lines
550 B
C
#ifndef _IFCONFIG_ENV_H
|
|
#define _IFCONFIG_ENV_H
|
|
|
|
#include <prop/proplib.h>
|
|
|
|
const char *getifname(prop_dictionary_t);
|
|
ssize_t getargstr(prop_dictionary_t, const char *, char *, size_t);
|
|
ssize_t getargdata(prop_dictionary_t, const char *, uint8_t *, size_t);
|
|
int getaf(prop_dictionary_t);
|
|
int getifflags(prop_dictionary_t, prop_dictionary_t, unsigned short *);
|
|
const char *getifinfo(prop_dictionary_t, prop_dictionary_t, unsigned short *);
|
|
prop_dictionary_t prop_dictionary_augment(prop_dictionary_t, prop_dictionary_t);
|
|
|
|
#endif /* _IFCONFIG_ENV_H */
|