Lines Matching defs:on

2  * services/listen_dnsport.c - listen on port 53 for incoming DNS queries.
86 /** lock on the counter of stream buffer memory */
88 /** lock on the counter of HTTP2 query buffer memory */
90 /** lock on the counter of HTTP2 response buffer memory */
205 int on=1;
260 if(setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (void*)&on,
261 (socklen_t)sizeof(on)) < 0) {
281 /* on FreeBSD 12 we have SO_REUSEPORT_LB that does loadbalance
282 * like SO_REUSEPORT on Linux. This is what the users want
288 setsockopt(s, SOL_SOCKET, SO_REUSEPORT_LB, (void*)&on,
289 (socklen_t)sizeof(on)) < 0) {
303 * with SO_REUSEPORT set on each socket.
306 setsockopt(s, SOL_SOCKET, SO_REUSEPORT, (void*)&on,
307 (socklen_t)sizeof(on)) < 0) {
322 setsockopt(s, IPPROTO_IP, IP_TRANSPARENT, (void*)&on,
323 (socklen_t)sizeof(on)) < 0) {
331 (void*)&on, (socklen_t)sizeof(on)) < 0) {
337 setsockopt(s, SOL_SOCKET, SO_BINDANY, (void*)&on,
338 (socklen_t)sizeof(on)) < 0) {
346 setsockopt(s, IPPROTO_IP, IP_FREEBIND, (void*)&on,
347 (socklen_t)sizeof(on)) < 0) {
358 * system limits on rcvbuf. The limit is stored in
403 * system limits on sndbuf. The limit is stored in
443 log_warn("error setting IP DiffServ codepoint %d on UDP socket: %s", dscp, err);
469 (void*)&on, (socklen_t)sizeof(on)) < 0) {
536 * but does not work on that version, so we exclude it */
601 int on = 1;
644 if(setsockopt(s, IPPROTO_TCP, TCP_NODELAY, (void*)&on,
645 (socklen_t)sizeof(on)) < 0) {
678 if(setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (void*)&on,
679 (socklen_t)sizeof(on)) < 0) {
687 if (freebind && setsockopt(s, IPPROTO_IP, IP_FREEBIND, (void*)&on,
688 (socklen_t)sizeof(on)) < 0) {
697 * with SO_REUSEPORT set on each socket.
700 setsockopt(s, SOL_SOCKET, SO_REUSEPORT, (void*)&on,
701 (socklen_t)sizeof(on)) < 0) {
716 (void*)&on, (socklen_t)sizeof(on)) < 0) {
728 setsockopt(s, IPPROTO_IP, IP_TRANSPARENT, (void*)&on,
729 (socklen_t)sizeof(on)) < 0) {
737 (void*)&on, (socklen_t)sizeof(on)) < 0) {
743 setsockopt(s, SOL_SOCKET, SO_BINDANY, (void*)&on, (socklen_t)
744 sizeof(on)) < 0) {
751 log_warn("error setting IP DiffServ codepoint %d on TCP socket: %s", dscp, err);
792 /* 5 is recommended on linux */
855 /* this member exists on BSDs, not Linux */
859 /* length is 92-108, 104 on FreeBSD */
928 *noip6 = 1; /* 'Host not found' for IP6 on winXP */
1005 * @return false on failure. list in unchanged then.
1026 int on = 1;
1033 (void*)&on, (socklen_t)sizeof(on)) < 0) {
1040 (void*)&on, (socklen_t)sizeof(on)) < 0) {
1054 (void*)&on, (socklen_t)sizeof(on)) < 0) {
1061 (void*)&on, (socklen_t)sizeof(on)) < 0) {
1124 * set to false on exit if reuseport failed due to no kernel support.
1128 * @param http2_nodelay: set TCP_NODELAY on HTTP/2 connection
1132 * @return: returns false on error.
1228 * @return: false on failure.
1584 /* no name lookups on our listening ports */
1739 * called delete on us */
2161 * @return 0 on error, 1 otherwise
2182 * @return 0 on error, 1 otherwise
2324 * @return 0 on error, 1 otherwise
2361 * @return: -1 on error, 1 if answer is stored in c->buffer, 0 if there is no
2472 * sure no other action are taken anymore on comm point.
2529 * @return: 0 on error, 1 otherwise. query will be stored in h2_stream->qbuffer,
2626 /* Case insensitive check on :method value to be on the safe
2648 /* :path may contain DNS query, depending on method. Method might
2690 /* Only interested in content-lentg for POST (on not yet known) method.
2765 "buffer space for POST query. Can happen on multi "