SCCS-vsn: sbin/ifconfig/ifconfig.c 5.8
#endif /* not lint */
#ifndef lint
#endif /* not lint */
#ifndef lint
-static char sccsid[] = "@(#)ifconfig.c 5.7 (Berkeley) %G%";
+static char sccsid[] = "@(#)ifconfig.c 5.8 (Berkeley) %G%";
#endif /* not lint */
#include <sys/param.h>
#endif /* not lint */
#include <sys/param.h>
int setifflags(), setifaddr(), setifdstaddr(), setifnetmask();
int setifmetric(), setifbroadaddr(), setifipdst();
int setifflags(), setifaddr(), setifdstaddr(), setifnetmask();
int setifmetric(), setifbroadaddr(), setifipdst();
-int notealias(), setsnpaoffset(), setnsellength();
+int notealias(), setsnpaoffset(), setnsellength(), notrailers();
} cmds[] = {
{ "up", IFF_UP, setifflags } ,
{ "down", -IFF_UP, setifflags },
} cmds[] = {
{ "up", IFF_UP, setifflags } ,
{ "down", -IFF_UP, setifflags },
- { "trailers", -IFF_NOTRAILERS,setifflags },
- { "-trailers", IFF_NOTRAILERS, setifflags },
+ { "trailers", -1, notrailers },
+ { "-trailers", 1, notrailers },
{ "arp", -IFF_NOARP, setifflags },
{ "-arp", IFF_NOARP, setifflags },
{ "debug", IFF_DEBUG, setifflags },
{ "arp", -IFF_NOARP, setifflags },
{ "-arp", IFF_NOARP, setifflags },
{ "debug", IFF_DEBUG, setifflags },
register struct afswtch *rafp;
if (argc < 2) {
register struct afswtch *rafp;
if (argc < 2) {
- fprintf(stderr, "usage: ifconfig interface\n%s%s%s%s%s%s",
+ fprintf(stderr, "usage: ifconfig interface\n%s%s%s%s%s",
"\t[ af [ address [ dest_addr ] ] [ up ] [ down ]",
"[ netmask mask ] ]\n",
"\t[ metric n ]\n",
"\t[ af [ address [ dest_addr ] ] [ up ] [ down ]",
"[ netmask mask ] ]\n",
"\t[ metric n ]\n",
- "\t[ trailers | -trailers ]\n",
"\t[ arp | -arp ]\n",
"\t[ link0 | -link0 ] [ link1 | -link1 ] [ link2 | -link2 ] \n");
exit(1);
"\t[ arp | -arp ]\n",
"\t[ link0 | -link0 ] [ link1 | -link1 ] [ link2 | -link2 ] \n");
exit(1);
+/*ARGSUSED*/
+notrailers(vname, value)
+ char *vname;
+ int value;
+{
+ printf("Note: trailers are no longer sent, but always received\n");
+}
+
/*ARGSUSED*/
setifdstaddr(addr, param)
char *addr;
/*ARGSUSED*/
setifdstaddr(addr, param)
char *addr;
#define IFFBITS \
"\020\1UP\2BROADCAST\3DEBUG\4LOOPBACK\5POINTOPOINT\6NOTRAILERS\7RUNNING\10NOARP\
#define IFFBITS \
"\020\1UP\2BROADCAST\3DEBUG\4LOOPBACK\5POINTOPOINT\6NOTRAILERS\7RUNNING\10NOARP\
-\11PROMISC\12ALLMULTI\13OACTIVE\14SIMPLEX\15LINK0\16LINK1\17LINK2"
+\11PROMISC\12ALLMULTI\13OACTIVE\14SIMPLEX\15LINK0\16LINK1\17LINK2\20MULTICAST"
/*
* Print the status of the interface. If an address family was
/*
* Print the status of the interface. If an address family was