aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/sockbuf.h
diff options
context:
space:
mode:
authorDavide Italiano <davide@FreeBSD.org>2013-09-01 23:34:53 +0000
committerDavide Italiano <davide@FreeBSD.org>2013-09-01 23:34:53 +0000
commit7729cbf1a6286672875a1be94037f631b1d2130c (patch)
tree852a30b41e7209f4b3e346f7a073a8ebb5bee16c /sys/sys/sockbuf.h
parent8fe6bddff703fa63fca6ddb08f5fb8dc6fa31496 (diff)
downloadsrc-7729cbf1a6286672875a1be94037f631b1d2130c.tar.gz
src-7729cbf1a6286672875a1be94037f631b1d2130c.zip
Fix socket buffer timeouts precision using the new sbintime_t KPI instead
of relying on the tvtohz() workaround. The latter has been introduced lately by jhb@ (r254699) in order to have a fix that can be backported to STABLE. Reported by: Vitja Makarov <vitja.makarov at gmail dot com> Reviewed by: jhb (earlier version)
Notes
Notes: svn path=/head/; revision=255138
Diffstat (limited to 'sys/sys/sockbuf.h')
-rw-r--r--sys/sys/sockbuf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/sockbuf.h b/sys/sys/sockbuf.h
index bfccd74f6f7a..402a8f0749f7 100644
--- a/sys/sys/sockbuf.h
+++ b/sys/sys/sockbuf.h
@@ -97,7 +97,7 @@ struct sockbuf {
u_int sb_mbmax; /* (c/d) max chars of mbufs to use */
u_int sb_ctl; /* (c/d) non-data chars in buffer */
int sb_lowat; /* (c/d) low water mark */
- int sb_timeo; /* (c/d) timeout for read/write */
+ sbintime_t sb_timeo; /* (c/d) timeout for read/write */
short sb_flags; /* (c/d) flags, see below */
int (*sb_upcall)(struct socket *, void *, int); /* (c/d) */
void *sb_upcallarg; /* (c/d) */