tcp.h (e570d231f48957dcf0757b7b716330f3bd64e362) tcp.h (f1f93475463891194c453aff5f7c872fa9109b45)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1982, 1986, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 164 unchanged lines hidden (view full) ---

173#define TCP_LOG 34 /* configure event logging for connection */
174#define TCP_LOGBUF 35 /* retrieve event log for connection */
175#define TCP_LOGID 36 /* configure log ID to correlate connections */
176#define TCP_LOGDUMP 37 /* dump connection log events to device */
177#define TCP_LOGDUMPID 38 /* dump events from connections with same ID to
178 device */
179#define TCP_TXTLS_ENABLE 39 /* TLS framing and encryption for transmit */
180#define TCP_TXTLS_MODE 40 /* Transmit TLS mode */
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1982, 1986, 1993
5 * The Regents of the University of California. All rights reserved.
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions

--- 164 unchanged lines hidden (view full) ---

173#define TCP_LOG 34 /* configure event logging for connection */
174#define TCP_LOGBUF 35 /* retrieve event log for connection */
175#define TCP_LOGID 36 /* configure log ID to correlate connections */
176#define TCP_LOGDUMP 37 /* dump connection log events to device */
177#define TCP_LOGDUMPID 38 /* dump events from connections with same ID to
178 device */
179#define TCP_TXTLS_ENABLE 39 /* TLS framing and encryption for transmit */
180#define TCP_TXTLS_MODE 40 /* Transmit TLS mode */
181#define TCP_RXTLS_ENABLE 41 /* TLS framing and encryption for receive */
182#define TCP_RXTLS_MODE 42 /* Receive TLS mode */
181#define TCP_CONGESTION 64 /* get/set congestion control algorithm */
182#define TCP_CCALGOOPT 65 /* get/set cc algorithm specific options */
183#define TCP_DELACK 72 /* socket option for delayed ack */
184#define TCP_FIN_IS_RST 73 /* A fin from the peer is treated has a RST */
185#define TCP_LOG_LIMIT 74 /* Limit to number of records in tcp-log */
186#define TCP_SHARED_CWND_ALLOWED 75 /* Use of a shared cwnd is allowed */
187#define TCP_KEEPINIT 128 /* N, time to establish connection */
188#define TCP_KEEPIDLE 256 /* L,N,X start keeplives after this period */

--- 194 unchanged lines hidden (view full) ---

383#define TCP_TLS_MODE_SW 1
384#define TCP_TLS_MODE_IFNET 2
385#define TCP_TLS_MODE_TOE 3
386
387/*
388 * TCP Control message types
389 */
390#define TLS_SET_RECORD_TYPE 1
183#define TCP_CONGESTION 64 /* get/set congestion control algorithm */
184#define TCP_CCALGOOPT 65 /* get/set cc algorithm specific options */
185#define TCP_DELACK 72 /* socket option for delayed ack */
186#define TCP_FIN_IS_RST 73 /* A fin from the peer is treated has a RST */
187#define TCP_LOG_LIMIT 74 /* Limit to number of records in tcp-log */
188#define TCP_SHARED_CWND_ALLOWED 75 /* Use of a shared cwnd is allowed */
189#define TCP_KEEPINIT 128 /* N, time to establish connection */
190#define TCP_KEEPIDLE 256 /* L,N,X start keeplives after this period */

--- 194 unchanged lines hidden (view full) ---

385#define TCP_TLS_MODE_SW 1
386#define TCP_TLS_MODE_IFNET 2
387#define TCP_TLS_MODE_TOE 3
388
389/*
390 * TCP Control message types
391 */
392#define TLS_SET_RECORD_TYPE 1
393#define TLS_GET_RECORD 2
391
392/*
393 * TCP specific variables of interest for tp->t_stats stats(9) accounting.
394 */
395#define VOI_TCP_TXPB 0 /* Transmit payload bytes */
396#define VOI_TCP_RETXPB 1 /* Retransmit payload bytes */
397#define VOI_TCP_FRWIN 2 /* Foreign receive window */
398#define VOI_TCP_LCWIN 3 /* Local congesiton window */
399#define VOI_TCP_RTT 4 /* Round trip time */
400#define VOI_TCP_CSIG 5 /* Congestion signal */
401#define VOI_TCP_GPUT 6 /* Goodput */
402#define VOI_TCP_CALCFRWINDIFF 7 /* Congestion avoidance LCWIN - FRWIN */
403#define VOI_TCP_GPUT_ND 8 /* Goodput normalised delta */
404#define VOI_TCP_ACKLEN 9 /* Average ACKed bytes per ACK */
405
406#endif /* !_NETINET_TCP_H_ */
394
395/*
396 * TCP specific variables of interest for tp->t_stats stats(9) accounting.
397 */
398#define VOI_TCP_TXPB 0 /* Transmit payload bytes */
399#define VOI_TCP_RETXPB 1 /* Retransmit payload bytes */
400#define VOI_TCP_FRWIN 2 /* Foreign receive window */
401#define VOI_TCP_LCWIN 3 /* Local congesiton window */
402#define VOI_TCP_RTT 4 /* Round trip time */
403#define VOI_TCP_CSIG 5 /* Congestion signal */
404#define VOI_TCP_GPUT 6 /* Goodput */
405#define VOI_TCP_CALCFRWINDIFF 7 /* Congestion avoidance LCWIN - FRWIN */
406#define VOI_TCP_GPUT_ND 8 /* Goodput normalised delta */
407#define VOI_TCP_ACKLEN 9 /* Average ACKed bytes per ACK */
408
409#endif /* !_NETINET_TCP_H_ */