1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Add TCP_MAXSEG and TCP_NOPUSH definitions.

This commit is contained in:
Jonas 'Sortie' Termansen 2021-01-23 00:35:38 +01:00
parent e695e93146
commit b2235844da

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2014 Jonas 'Sortie' Termansen. * Copyright (c) 2014, 2018 Jonas 'Sortie' Termansen.
* *
* Permission to use, copy, modify, and distribute this software for any * Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above * purpose with or without fee is hereby granted, provided that the above
@ -22,15 +22,11 @@
#include <sys/cdefs.h> #include <sys/cdefs.h>
#ifdef __cplusplus
extern "C" {
#endif
/* Options at the IPPROTO_TCP socket level. */ /* Options at the IPPROTO_TCP socket level. */
#define TCP_NODELAY 1 #define TCP_NODELAY 1
#if __USE_SORTIX
#ifdef __cplusplus #define TCP_MAXSEG 2
} /* extern "C" */ #define TCP_NOPUSH 3
#endif #endif
#endif #endif