< prev index next >
make/src/native/genconstants/ch/genSocketOptionRegistry.c
Print this page
*** 1,7 ****
/*
! * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
--- 1,7 ----
/*
! * Copyright (c) 2008, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
*** 32,41 ****
--- 32,48 ----
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#endif
+ #if !defined(SO_QUICKACK)
+ #if defined(__linux__)
+ #define SO_QUICKACK 0xC /* Block/reenable quick ACKs. */
+ #else
+ #define SO_QUICKACK 0
+ #endif
+ #endif
/**
* Generates sun.nio.ch.SocketOptionRegistry, a class that maps Java-level
* socket options to the platform specific level and option.
*/
*** 115,124 ****
--- 122,132 ----
emit_inet6("StandardSocketOptions.IP_MULTICAST_TTL", IPPROTO_IPV6, IPV6_MULTICAST_HOPS);
emit_inet6("StandardSocketOptions.IP_MULTICAST_LOOP", IPPROTO_IPV6, IPV6_MULTICAST_LOOP);
#endif
emit_unspec("ExtendedSocketOption.SO_OOBINLINE", SOL_SOCKET, SO_OOBINLINE);
+ emit_unspec("jdk.net.ExtendedSocketOptions.SO_QUICKACK", SOL_SOCKET, SO_QUICKACK);
out(" return map; ");
out(" } ");
out(" } ");
out(" public static OptionKey findOption(SocketOption<?> name, ProtocolFamily family) { ");
< prev index next >