diff options
author | Jun Kuriyama <kuriyama@FreeBSD.org> | 2004-08-11 02:31:33 +0000 |
---|---|---|
committer | Jun Kuriyama <kuriyama@FreeBSD.org> | 2004-08-11 02:31:33 +0000 |
commit | fb3bf3454887d3cafe55cc22c5d52c1499cbd92c (patch) | |
tree | 69dee5570aa57786658a45609190dc652634e1ca /net-mgmt/net-snmp-devel/files/patch-tcpTable.c | |
parent | Update to 2.1.2. (diff) |
- Upgrade to 5.1.2.
Numerous patches are integrated into this release.
Notes
Notes:
svn path=/head/; revision=115888
Diffstat (limited to '')
-rw-r--r-- | net-mgmt/net-snmp-devel/files/patch-tcpTable.c | 38 |
1 files changed, 2 insertions, 36 deletions
diff --git a/net-mgmt/net-snmp-devel/files/patch-tcpTable.c b/net-mgmt/net-snmp-devel/files/patch-tcpTable.c index 0d33547108b6..d96d0976189b 100644 --- a/net-mgmt/net-snmp-devel/files/patch-tcpTable.c +++ b/net-mgmt/net-snmp-devel/files/patch-tcpTable.c @@ -1,14 +1,5 @@ ---- agent/mibgroup/mibII/tcpTable.c.orig Tue Mar 16 08:27:45 2004 -+++ agent/mibgroup/mibII/tcpTable.c Wed Apr 14 09:40:00 2004 -@@ -95,6 +95,8 @@ - #define TCPTABLE_REMOTEADDRESS pcb.inp_faddr.s_addr - #define TCPTABLE_REMOTEPORT pcb.inp_fport - #define TCPTABLE_IS_LINKED_LIST -+#undef INP_NEXT_SYMBOL -+#define INP_NEXT_SYMBOL inp_next - - #endif /* linux */ - #endif /* WIN32 */ +--- agent/mibgroup/mibII/tcpTable.c.orig Wed Jun 9 05:53:17 2004 ++++ agent/mibgroup/mibII/tcpTable.c Thu Jun 24 23:21:32 2004 @@ -275,6 +277,9 @@ int @@ -19,28 +10,3 @@ return tcp_estab; } -@@ -691,6 +696,7 @@ - struct xinpgen *xig = NULL; - netsnmp_inpcb *nnew; - int StateMap[] = { 1, 2, 3, 4, 5, 8, 6, 10, 9, 7, 11 }; -+ struct tcpcb *tp = NULL; - - tcpTable_free(NULL, NULL); - -@@ -717,12 +723,13 @@ - nnew = SNMP_MALLOC_TYPEDEF(netsnmp_inpcb); - if (!nnew) - break; -- nnew->state = StateMap[((struct xinpcb *) xig)->xt_tp.t_state]; -+ tp = &((struct xtcpcb *)xig)->xt_tp; -+ nnew->state = StateMap[tp->t_state]; - if (nnew->state == 5 /* established */ || - nnew->state == 8 /* closeWait */ ) - tcp_estab++; -- memcpy(&(nnew->pcb), &(((struct xinpcb *) xig)->xt_inp), -- sizeof(struct inpcb)); -+ memcpy(&(nnew->pcb), &(((struct xtcpcb *) xig)->xt_tp), -+ sizeof(struct tcpcb)); - - nnew->inp_next = tcp_head; - tcp_head = nnew; |