diff options
Diffstat (limited to 'include/net/tcp.h')
-rw-r--r-- | include/net/tcp.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/net/tcp.h b/include/net/tcp.h index ec183fda05d0..4a99a8e39121 100644 --- a/include/net/tcp.h +++ b/include/net/tcp.h | |||
@@ -1478,6 +1478,14 @@ struct tcp_request_sock_ops { | |||
1478 | #endif | 1478 | #endif |
1479 | }; | 1479 | }; |
1480 | 1480 | ||
1481 | /* Using SHA1 for now, define some constants. | ||
1482 | */ | ||
1483 | #define COOKIE_DIGEST_WORDS (SHA_DIGEST_WORDS) | ||
1484 | #define COOKIE_MESSAGE_WORDS (SHA_MESSAGE_BYTES / 4) | ||
1485 | #define COOKIE_WORKSPACE_WORDS (COOKIE_DIGEST_WORDS + COOKIE_MESSAGE_WORDS) | ||
1486 | |||
1487 | extern int tcp_cookie_generator(u32 *bakery); | ||
1488 | |||
1481 | extern void tcp_v4_init(void); | 1489 | extern void tcp_v4_init(void); |
1482 | extern void tcp_init(void); | 1490 | extern void tcp_init(void); |
1483 | 1491 | ||