PERFORCE change 143364 for review

Andre Oppermann andre at FreeBSD.org
Thu Jun 12 11:02:56 UTC 2008


http://perforce.freebsd.org/chv.cgi?CH=143364

Change 143364 by andre at andre_flirtbox on 2008/06/12 11:02:29

	Add helper function to get us the uptime in seconds.
	time_t tcp_uptime().

Affected files ...

.. //depot/projects/tcp_new/netinet/tcp_subr.c#3 edit

Differences ...

==== //depot/projects/tcp_new/netinet/tcp_subr.c#3 (text+ko) ====

@@ -1986,3 +1986,12 @@
 		panic("%s: string too long", __func__);
 	return (s);
 }
+
+time_t
+tcp_uptime(void)
+{
+	struct bintime bt;
+
+	getbinuptime(&bt);
+	return (bt.sec);
+}


More information about the p4-projects mailing list