network release - sys/vaxif/if_uba.c uses non existant m_pgfree
George Robbins
grr at cbmvax.UUCP
Sun Jun 4 16:01:37 AEST 1989
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 at uunet.uu.net
Commodore, Engineering Department fone: 215-431-9255 (only by moonlite)
More information about the Comp.bugs.4bsd.ucb-fixes
mailing list