mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-07-24 07:02:05 +08:00
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.
This commit is contained in:
parent
1e88db1321
commit
7345c71553
@ -262,9 +262,13 @@ domaininit(void *dummy)
|
|||||||
uma_zone_set_max(socket_zone, maxsockets);
|
uma_zone_set_max(socket_zone, maxsockets);
|
||||||
EVENTHANDLER_REGISTER(maxsockets_change, socket_zone_change, NULL,
|
EVENTHANDLER_REGISTER(maxsockets_change, socket_zone_change, NULL,
|
||||||
EVENTHANDLER_PRI_FIRST);
|
EVENTHANDLER_PRI_FIRST);
|
||||||
|
#ifndef __rtems__
|
||||||
if (max_linkhdr < 16) /* XXX */
|
if (max_linkhdr < 16) /* XXX */
|
||||||
max_linkhdr = 16;
|
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(&pffast_callout, CALLOUT_MPSAFE);
|
||||||
callout_init(&pfslow_callout, CALLOUT_MPSAFE);
|
callout_init(&pfslow_callout, CALLOUT_MPSAFE);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user