From bb25fde9242f916e28ab60e2d8de7b6b419674b7 Mon Sep 17 00:00:00 2001 From: Jun Kuriyama Date: Tue, 18 Nov 2003 03:18:02 +0000 Subject: o Upgrade to 5.1 (bump shlib major to 6, use autoconf257). o Add ${NET_SNMP_MIB_MODULES} which is "host smux ucd-snmp/diskio" by default. o Remove unused variables. o Update various local patches around {tcp,udp}Table and hr_{storage,system}. --- net/net-snmp/files/patch-udpTable.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 net/net-snmp/files/patch-udpTable.c (limited to 'net/net-snmp/files/patch-udpTable.c') diff --git a/net/net-snmp/files/patch-udpTable.c b/net/net-snmp/files/patch-udpTable.c new file mode 100644 index 000000000000..83364a9a338d --- /dev/null +++ b/net/net-snmp/files/patch-udpTable.c @@ -0,0 +1,25 @@ +--- agent/mibgroup/mibII/udpTable.c.orig Fri Nov 14 15:14:52 2003 ++++ agent/mibgroup/mibII/udpTable.c Fri Nov 14 15:18:08 2003 +@@ -577,6 +577,7 @@ + * Unpick this into the constituent 'xinpgen' structures, and extract + * the 'inpcb' elements into a linked list (built in reverse) + */ ++#if 0 + xig = (struct xinpgen *) udpcb_buf; + xig = (struct xinpgen *) ((char *) xig + xig->xig_len); + +@@ -584,12 +585,13 @@ + nnew = SNMP_MALLOC_TYPEDEF(struct inpcb); + if (!nnew) + break; +- memcpy(nnew, ((struct xinpcb *) xig)->xi_inp, sizeof(struct inpcb)); ++ memcpy(nnew, &((struct xinpcb *) xig)->xi_inp, sizeof(struct inpcb)); + + nnew->next = udp_head; /* XXX - ?? Check 'next' pointer */ + udp_head = nnew; + xig = (struct xinpgen *) ((char *) xig + xig->xig_len); + } ++#endif + + free(udpcb_buf); + if (udp_head) { -- cgit v1.2.3