mirror of
https://github.com/nginx/nginx.git
synced 2025-02-25 18:55:26 -06:00
Core: added autotest for UDP segmentation offloading.
This commit is contained in:
parent
550b40d84f
commit
05577c18a8
@ -232,4 +232,20 @@ ngx_feature_test="struct crypt_data cd;
|
|||||||
ngx_include="sys/vfs.h"; . auto/include
|
ngx_include="sys/vfs.h"; . auto/include
|
||||||
|
|
||||||
|
|
||||||
|
# UDP segmentation offloading
|
||||||
|
|
||||||
|
ngx_feature="UDP_SEGMENT"
|
||||||
|
ngx_feature_name="NGX_HAVE_UDP_SEGMENT"
|
||||||
|
ngx_feature_run=no
|
||||||
|
ngx_feature_incs="#include <sys/socket.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <netinet/udp.h>"
|
||||||
|
ngx_feature_path=
|
||||||
|
ngx_feature_libs=
|
||||||
|
ngx_feature_test="socklen_t optlen = sizeof(int);
|
||||||
|
int val;
|
||||||
|
getsockopt(0, SOL_UDP, UDP_SEGMENT, &val, &optlen)"
|
||||||
|
. auto/feature
|
||||||
|
|
||||||
|
|
||||||
CC_AUX_FLAGS="$cc_aux_flags -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
|
CC_AUX_FLAGS="$cc_aux_flags -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
|
||||||
|
@ -103,6 +103,10 @@ typedef struct iocb ngx_aiocb_t;
|
|||||||
#include <linux/capability.h>
|
#include <linux/capability.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if (NGX_HAVE_UDP_SEGMENT)
|
||||||
|
#include <netinet/udp.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define NGX_LISTEN_BACKLOG 511
|
#define NGX_LISTEN_BACKLOG 511
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user