Article View: comp.bugs.4bsd
Article #1398network release - sys/vaxif/if_uba.c uses non existant m_pgfree
From: George Robbins
Date: Sun, 04 Jun 1989 06:01
Date: Sun, 04 Jun 1989 06:01
50 lines
2011 bytes
2011 bytes
Subject: network release - sys/vaxif/if_uba.c uses non existant m_pgfree
Index: sys/vaxif/if_uba.c network-release Fix
Description:
The version of if_uba.c included in the networking release calls
a routine m_pgfree. This routine does not seem to be present in
4.3 Tahoe nor is it included with the networking release.
Repeat-By:
After merging the network release into 4.3 Tahoe, config/make a
VAX kernel with internet protocols.
Fix:
Retrofit the original call to free() and also include malloc.h to
pick up the type definitions. It's not clear if this is still
kosher, but at least it's not instant death.
*** sys/vaxif/if_uba.c.grr Sat Jun 3 10:48:31 1989
--- sys/vaxif/if_uba.c Sat Jun 3 11:23:28 1989
***************
*** 28,33 ****
--- 28,34 ----
#include "vmmac.h"
#include "socket.h"
#include "syslog.h"
+ #include "malloc.h"
#include "../net/if.h"
***************
*** 111,117 ****
ubarelse(ifu->iff_uban, &ifw[nw].ifw_info);
while (--nr >= 0)
ubarelse(ifu->iff_uban, &ifr[nr].ifrw_info);
! m_pgfree(cp, (nr + nw) * ncl);
ifr[0].ifrw_addr = 0;
return (0);
}
--- 112,118 ----
ubarelse(ifu->iff_uban, &ifw[nw].ifw_info);
while (--nr >= 0)
ubarelse(ifu->iff_uban, &ifr[nr].ifrw_info);
! free(cp, M_DEVBUF);
ifr[0].ifrw_addr = 0;
return (0);
}
--
George Robbins - now working for, uucp: {uunet|pyramid|rutgers}!cbmvax!grr
but no way officially representing arpa: cbmvax!grr@uunet.uu.net
Commodore, Engineering Department fone: 215-431-9255 (only by moonlite)
Technical Details
Message-ID:
<7053@cbmvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!cbmvax!grrShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!cbmvax!grr From: grr@cbmvax.UUCP (George Robbins) Newsgroups: comp.bugs.4bsd Subject: network release - sys/vaxif/if_uba.c uses non existant m_pgfree Message-ID: <7053@cbmvax.UUCP> Date: 4 Jun 89 06:01:37 GMT Reply-To: grr@cbmvax.UUCP (George Robbins) Organization: Commodore Technology, West Chester, PA Lines: 50