Mercurial > ecos-v3_0-branch
changeset 1339:3fd78c0401ac
* src/mibgroup/mibII/dot3.c: Make sure the agent responses with
a null object oid, if there is no specific oid set by the driver
for the ethernet chipset.
| author | asl |
|---|---|
| date | Thu, 30 Oct 2003 19:11:35 +0000 |
| parents | 2a68919a1b99 |
| children | f18f448991bc |
| files | packages/net/snmp/agent/current/ChangeLog packages/net/snmp/agent/current/src/mibgroup/mibII/dot3.c |
| diffstat | 2 files changed, 16 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/packages/net/snmp/agent/current/ChangeLog +++ b/packages/net/snmp/agent/current/ChangeLog @@ -1,3 +1,9 @@ +2003-10-09 Roland Cassebohm <roland.cassebohm@visionsystems.de> + + * src/mibgroup/mibII/dot3.c: Make sure the agent responses with + a null object oid, if there is no specific oid set by the driver + for the ethernet chipset. + 2003-06-17 Michael Checky <Michael_Checky@ThermoKing.com> * src/mibgroup/mibII/helpers.c: Changed the definition of
--- a/packages/net/snmp/agent/current/src/mibgroup/mibII/dot3.c +++ b/packages/net/snmp/agent/current/src/mibgroup/mibII/dot3.c @@ -342,8 +342,16 @@ var_dot3StatsTable(struct variable *vp, break; i++; } - *var_len = i; - return (unsigned char *) etherobjid; + if (i) + { + *var_len = i; + return (unsigned char *) etherobjid; + } + else + { + *var_len = sizeof(nullobjid); + return (unsigned char *) nullobjid; + } case DOT3STATSDUPLEXSTATUS: long_ret = x.duplex;
