d75414adf5
various address families (inet, inet6, iso, atalk) and protocols (802.11, 802.3ad, CARP), simply by trimming the list of sources in the Makefile. This helps one customize ifconfig for an embedded device or for install media, and it eliminates a lot of grotty #ifdef'age. Now, the ifconfig syntax and semantics are finalized at run-time using the constructor routines in each address-family/protocol module. (In principle, ifconfig could load virtually all of its syntax from shared objects.) Extract a lot of common code into subroutines, in order to shrink the ifconfig binary a bit. Make all of the address families share code for address addition/replacement/removal, and delete "legacy" code for manipulating addresses. That may have broken atalk and iso, despite my best efforts. Extract an include file, Makefile.inc, containing the make-fu that both ifconfig and x_ifconfig share. Sprinkle static. Change some int's to bool's. Constify. Add RCS Ids to carp.c and env.c. Move media code to a new file, media.c. Delete several unneeded header files. Set, reset, and display the IEEE 802.11 attribute, 'dot11RTSThreshold'. Bug fix: do not require both a interface address and a destination address for point-to-point interfaces, but accept a interface address by itself.
17 lines
370 B
C
17 lines
370 B
C
/* $NetBSD: media.h,v 1.1 2008/07/02 07:44:15 dyoung Exp $ */
|
|
|
|
#ifndef _IFCONFIG_MEDIA_H
|
|
#define _IFCONFIG_MEDIA_H
|
|
|
|
#include <prop/proplib.h>
|
|
|
|
#include "parse.h"
|
|
|
|
extern struct pkw kwmedia;
|
|
|
|
void print_media_word(int, const char *);
|
|
void process_media_commands(prop_dictionary_t);
|
|
void media_status(prop_dictionary_t, prop_dictionary_t);
|
|
|
|
#endif /* _IFCONFIG_MEDIA_H */
|