summaryrefslogtreecommitdiffstats
path: root/freebsd
diff options
context:
space:
mode:
authorJennifer Averett <jennifer.averett@oarcorp.com>2012-06-01 13:57:50 -0500
committerJennifer Averett <jennifer.averett@oarcorp.com>2012-06-01 13:57:50 -0500
commit7345c7155396347288dcff74b93dc67f785f9a65 (patch)
tree342a87654a20eb48cd10d6748a7698a23a7fd014 /freebsd
parentAdded initialization needed for Nics back in. (diff)
downloadrtems-libbsd-7345c7155396347288dcff74b93dc67f785f9a65.tar.bz2
Added rtems specific size for max_linkhdr
Note: This was needed for tcp_init to pass. This modification should be discussed to see if a cleaner resolution to the problem exists.
Diffstat (limited to 'freebsd')
-rw-r--r--freebsd/kern/uipc_domain.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/freebsd/kern/uipc_domain.c b/freebsd/kern/uipc_domain.c
index 30eff27c..83400414 100644
--- a/freebsd/kern/uipc_domain.c
+++ b/freebsd/kern/uipc_domain.c
@@ -262,9 +262,13 @@ domaininit(void *dummy)
uma_zone_set_max(socket_zone, maxsockets);
EVENTHANDLER_REGISTER(maxsockets_change, socket_zone_change, NULL,
EVENTHANDLER_PRI_FIRST);
-
+#ifndef __rtems__
if (max_linkhdr < 16) /* XXX */
max_linkhdr = 16;
+#else /*__rtems__ */
+ if (max_linkhdr < 10) /* XXX -- Not sure this is correct*/
+ max_linkhdr = 10;
+#endif /*__rtems__ */
callout_init(&pffast_callout, CALLOUT_MPSAFE);
callout_init(&pfslow_callout, CALLOUT_MPSAFE);