diff options
author | Steve Wills <swills@FreeBSD.org> | 2017-11-21 18:40:25 +0000 |
---|---|---|
committer | Steve Wills <swills@FreeBSD.org> | 2017-11-21 18:40:25 +0000 |
commit | fc3b56ba75eb2074ab25d637077a382f3c546b8f (patch) | |
tree | 6ea46599dc5294a96114bc8bc59a023c26e19069 /net-mgmt/collectd5/files/patch-src__tcpconns.c | |
parent | Update to 3.2.1 (diff) |
net-mgmt/collectd5: update to 5.8.0
PR: 223789
Submitted by: Krzysztof <ports@bsdserwis.com> (maintainer)
Notes
Notes:
svn path=/head/; revision=454647
Diffstat (limited to 'net-mgmt/collectd5/files/patch-src__tcpconns.c')
-rw-r--r-- | net-mgmt/collectd5/files/patch-src__tcpconns.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/net-mgmt/collectd5/files/patch-src__tcpconns.c b/net-mgmt/collectd5/files/patch-src__tcpconns.c deleted file mode 100644 index 07406fc5d2b7..000000000000 --- a/net-mgmt/collectd5/files/patch-src__tcpconns.c +++ /dev/null @@ -1,18 +0,0 @@ ---- src/tcpconns.c.orig 2017-03-21 00:18:33.371554000 -0700 -+++ src/tcpconns.c 2017-03-21 00:21:09.631089000 -0700 -@@ -745,9 +745,15 @@ - for (in_ptr = (struct xinpgen *)(((char *)in_orig) + in_orig->xig_len); - in_ptr->xig_len > sizeof(struct xinpgen); - in_ptr = (struct xinpgen *)(((char *)in_ptr) + in_ptr->xig_len)) { -+#if __FreeBSD_version >= 1200026 -+ struct xtcpcb *tp = (struct xtcpcb *)in_ptr; -+ struct xinpcb *inp = &tp->xt_inp; -+ struct xsocket *so = &inp->xi_socket; -+#else - struct tcpcb *tp = &((struct xtcpcb *)in_ptr)->xt_tp; - struct inpcb *inp = &((struct xtcpcb *)in_ptr)->xt_inp; - struct xsocket *so = &((struct xtcpcb *)in_ptr)->xt_socket; -+#endif - - /* Ignore non-TCP sockets */ - if (so->xso_protocol != IPPROTO_TCP) |