Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!agate!howland.reston.ans.net!math.ohio-state.edu!scipio.cyberstore.ca!nntp.cs.ubc.ca!cs.ubc.ca!frood.nsg.bc.ca!coatta From: coatta@frood.nsg.bc.ca (Terry Coatta) Newsgroups: comp.os.386bsd.apps Subject: FreeBSD and CMU SNMP (patch) Followup-To: comp.os.386bsd.apps Date: 7 Oct 1994 06:18:09 GMT Organization: NSG Network Software Group, Inc. Lines: 29 Distribution: world Message-ID: <372p71$qm1@cs.ubc.ca> NNTP-Posting-Host: coatta.home.cs.ubc.ca The other day I posted a couple of questions re: FreeBSD and the port of the CMU CNMP package to it. I now have most of the answers to those questions to one degree or another. In order to have the agent work correctly in a FreeBSD which does not have the ether pseudo-device confgured into the kernel you need to make the following small change to snmp_vars.c in the agent code: 2089a2090,2095 > if (nl[N_ARPTAB_SIZE].n_type == N_UNDF) { > arptab_size = 0; > arptab_current = 0; > return; > } This just checks to see if the ARP table really is in the kernel and sets its size to 0 if it is not found. Also, in general, I think that the snmpwalk program should not be used with the -v 1 flag, because it does *not* generate true V1 protocol behaviour... i.e. snmpwalk still issues get-bulk type requests in this case even though get-bulk is part of the V2 protocol. -- ** Terry Coatta ** NSG Network Software Group, Inc. ** 211 Douglas Cres. Richmond B.C. V7B 1E4 ** Tel: (604) 273-3404 ** E-mail: coatta@nsg.bc.ca