Project

General

Profile

Actions

Feature #14744

open

Add TCP_INFO socket option

Added by Dan McDonald 21 days ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
networking
Start date:
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

Even FreeBSD adopted this from Linux. Let met quote FreeBSD's netinet/tcp.h:


/*
 * The TCP_INFO socket option comes from the Linux 2.6 TCP API, and permits
 * the caller to query certain information about the state of a TCP
 * connection.  We provide an overlapping set of fields with the Linux
 * implementation, but since this is a fixed size structure, room has been
 * left for growth.  In order to maximize potential future compatibility with
 * the Linux API, the same variable names and order have been adopted, and
 * padding left to make room for omitted fields in case they are added later.
 *
 * XXX: This is currently an unstable ABI/API, in that it is expected to
 * change.
 */

Lack of this breaks some apps, ESPECIALLY those running on distros that support LX zones, and expect it to be there. A look at both Linux's and FreeBSD's netinet/tcp.h should be done to preserve maximum compatibility.

No data to display

Actions

Also available in: Atom PDF