very closely before these changes can be made.
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <arpa/inet.h>
-/*#ifdef notdef
-This is OK now because we have these headers available, and someone might
-actually want to use these.
-*/
#define NSIP
#include <netns/ns.h>
#include <netns/ns_if.h>
#define NSIP
#include <netns/ns.h>
#include <netns/ns_if.h>
#define EON
#include <netiso/iso.h>
#include <netiso/iso_var.h>
#define EON
#include <netiso/iso.h>
#include <netiso/iso_var.h>
#include <netdb.h>
#include <sys/protosw.h>
#include <netdb.h>
#include <sys/protosw.h>
int notealias(), setsnpaoffset(), setnsellength();
#define NEXTARG 0xffffff
int notealias(), setsnpaoffset(), setnsellength();
#define NEXTARG 0xffffff
-#ifndef IFF_ALTPHYS
-# define IFF_ALTPHYS IFF_LLC0 /* grrr... */
-#endif
struct cmd {
char *c_name;
struct cmd {
char *c_name;
{ "-arp", IFF_NOARP, setifflags },
{ "debug", IFF_DEBUG, setifflags },
{ "-debug", -IFF_DEBUG, setifflags },
{ "-arp", IFF_NOARP, setifflags },
{ "debug", IFF_DEBUG, setifflags },
{ "-debug", -IFF_DEBUG, setifflags },
- { "aui", IFF_ALTPHYS, setifflags }, /* 06 Sep 92*/
- { "bnc", -IFF_ALTPHYS, setifflags },
+ { "aui", IFF_LLC0, setifflags }, /* 06 Sep 92*/
+ { "bnc", -IFF_LLC0, setifflags },
{ "llc0", IFF_LLC0, setifflags }, /* 10 Mar 93 */
{ "-llc0", -IFF_LLC0, setifflags },
{ "llc1", IFF_LLC1, setifflags },
{ "llc0", IFF_LLC0, setifflags }, /* 10 Mar 93 */
{ "-llc0", -IFF_LLC0, setifflags },
{ "llc1", IFF_LLC1, setifflags },
if (which != MASK)
sin->sin_family = AF_INET;
if (which != MASK)
sin->sin_family = AF_INET;
- if (inet_aton(s, &sin->sin_addr) != 0)
- ; /* work done by inet_aton */
+ if ((val = inet_addr(s)) != -1)
+ sin->sin_addr.s_addr = val;
else if (hp = gethostbyname(s))
bcopy(hp->h_addr, (char *)&sin->sin_addr, hp->h_length);
else if (np = getnetbyname(s))
else if (hp = gethostbyname(s))
bcopy(hp->h_addr, (char *)&sin->sin_addr, hp->h_length);
else if (np = getnetbyname(s))
fixnsel(s)
register struct sockaddr_iso *s;
{
fixnsel(s)
register struct sockaddr_iso *s;
{
fixnsel(sisotab[RIDADDR]);
fixnsel(sisotab[ADDR]);
fixnsel(sisotab[DSTADDR]);
fixnsel(sisotab[RIDADDR]);
fixnsel(sisotab[ADDR]);
fixnsel(sisotab[DSTADDR]);