Date: 31 Oct 1999 12:41:25 GMT From: "Vladimir A. Jakovenko" <vovik@lucky.net> To: freebsd-net@freebsd.org Subject: slip && IFF_RUNNING Message-ID: <7vhddl$67d$1@news.lucky.net>
next in thread | raw e-mail | index | archive | help
Hi!
Can someone explain why all network interfaces implementations (ethernets,
kernel ppp, tun, sppp, etc) sets IFF_RUNNING on active interfaces, but slip
driver doesn't?
Some programs relay on IFF_RUNNING interface flag. As example ucd-snmp uses
that flag for checking if interface in admup state:
[ ucd-snmp-4.0.1/agent/mibgroup/mibII/interfaces.ci ]
case IFADMINSTATUS:
long_return = if_msg.ifm_flags & IFF_RUNNING ? 1 : 2;
return (u_char *) &long_return;
case IFOPERSTATUS:
long_return = if_msg.ifm_flags & IFF_UP ? 1 : 2;
return (u_char *) &long_return;
/* ifLastChange */
So side effect of this "feature" on slip inface is interface in admin down
and oper up state :-)
And what I should fix, /sys/net/if_sl.c or ucd-snmp behaviour?
--
Regards,
Vladimir.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7vhddl$67d$1>
