*BSD News Article 36691


Return to BSD News archive

Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msuinfo!gmi!usenet.eel.ufl.edu!MathWorks.Com!news.duke.edu!godot.cc.duq.edu!toads.pgh.pa.us!newsfeed.pitt.edu!gatech!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: Re: FreeBSD and CMU SNMP (patch)
Followup-To: comp.os.386bsd.apps
Date: 7 Oct 1994 19:27:13 GMT
Organization: NSG Network Software Group, Inc.
Lines: 34
Distribution: world
Message-ID: <3747eh$8i3@cs.ubc.ca>
References: <372p71$qm1@cs.ubc.ca>
NNTP-Posting-Host: coatta.home.cs.ubc.ca

In article <372p71$qm1@cs.ubc.ca>, coatta@frood.nsg.bc.ca (Terry Coatta) writes:

|> 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:

It was suggested that a context diff might be more appropraite (sorry I'm a 
bit of a newbie about distributing code over the net):

*** snmp_vars.c.orig	Thu Oct  6 20:34:54 1994
--- snmp_vars.c	Thu Oct  6 19:55:57 1994
***************
*** 2087,2092 ****
--- 2087,2098 ----
  {
  	extern char *malloc();
  
+         if (nl[N_ARPTAB_SIZE].n_type == N_UNDF) {
+             arptab_size = 0;
+             arptab_current = 0;
+             return;
+         }
+ 
  	if (!at) {
  	    KNLookup( N_ARPTAB_SIZE, (char *)&arptab_size, sizeof arptab_size);
  	    at = (struct arptab *) malloc(arptab_size * sizeof(struct arptab));


-- 
** 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