diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-12-05 02:33:52 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-12-05 02:33:52 +0000 |
commit | 272505c22009e6f673d385641fe1d3309dcd820f (patch) | |
tree | 66ae6e94421c0f56ef1a9cdde6aeda640a074a4e /ethertype.c | |
parent | e8f5dac7d455f1b64bb287630bbd532b550da691 (diff) | |
download | wireshark-272505c22009e6f673d385641fe1d3309dcd820f.tar.gz |
As per Nathan Leulinger's suggestion, have a stub SNMP dissector if
there are no SNMP libraries to use in a real dissector; this means that
other dissectors don't have to care if there are SNMP libraries, they
can just call "dissect_snmp()" - and this also simplifies "Makefile.am"
and "configure.in" a bit, as they just treat "packet-snmp.c" and
"packet-snmp.h" the same way they treat other dissector source files.
svn path=/trunk/; revision=1214
Diffstat (limited to 'ethertype.c')
-rw-r--r-- | ethertype.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ethertype.c b/ethertype.c index 21b774daeb..f1e2b2d917 100644 --- a/ethertype.c +++ b/ethertype.c @@ -2,7 +2,7 @@ * Routines for calling the right protocol for the ethertype. * This is called by both packet-eth.c (Ethernet II) and packet-llc.c (SNAP) * - * $Id: ethertype.c,v 1.19 1999/11/30 23:56:35 gram Exp $ + * $Id: ethertype.c,v 1.20 1999/12/05 02:32:41 guy Exp $ * * Gilbert Ramirez <gram@verdict.uthscsa.edu> * @@ -121,11 +121,9 @@ ethertype(guint16 etype, int offset, case ETHERTYPE_VLAN: dissect_vlan(pd, offset, fd, tree); break; -#if defined(HAVE_UCD_SNMP_SNMP_H) || defined(HAVE_SNMP_SNMP_H) case ETHERTYPE_SNMP: dissect_snmp(pd, offset, fd, tree); break; -#endif default: dissect_data(pd, offset, fd, tree); if (check_col(fd, COL_PROTOCOL)) { col_add_fstr(fd, COL_PROTOCOL, "0x%04x", etype); } |