summaryrefslogtreecommitdiffstats
path: root/freebsd/sys/netinet/in_systm.h
diff options
context:
space:
mode:
Diffstat (limited to 'freebsd/sys/netinet/in_systm.h')
-rw-r--r--freebsd/sys/netinet/in_systm.h16
1 files changed, 14 insertions, 2 deletions
diff --git a/freebsd/sys/netinet/in_systm.h b/freebsd/sys/netinet/in_systm.h
index 4b34aa00..a4a56833 100644
--- a/freebsd/sys/netinet/in_systm.h
+++ b/freebsd/sys/netinet/in_systm.h
@@ -44,14 +44,26 @@
* Internally the system keeps counters in the headers with the bytes
* swapped so that VAX instructions will work on them. It reverses
* the bytes before transmission at each protocol level. The n_ types
- * represent the types with the bytes in ``high-ender'' order.
+ * represent the types with the bytes in ``high-ender'' order. Network
+ * byte order is usually referered to as big-endian these days rather
+ * than high-ender, which sadly invokes an Orson Scott Card novel, or
+ * worse, the movie.
*/
typedef u_int16_t n_short; /* short as received from the net */
typedef u_int32_t n_long; /* long as received from the net */
-typedef u_int32_t n_time; /* ms since 00:00 GMT, byte rev */
+typedef u_int32_t n_time; /* ms since 00:00 UTC, byte rev */
#ifdef _KERNEL
+struct inpcb;
+struct ucred;
+
+#ifndef __rtems__
+int cr_canseeinpcb(struct ucred *cred, struct inpcb *inp);
+#else /* __rtems__ */
+#define cr_canseeinpcb(cred, inp) 0
+#endif /* __rtems__ */
+
uint32_t iptime(void);
#endif