]> git.saurik.com Git - apple/network_cmds.git/blobdiff - netstat.tproj/mptcp.c
network_cmds-596.100.2.tar.gz
[apple/network_cmds.git] / netstat.tproj / mptcp.c
index 4d6977070d5345da2b8fabbab4400a78849c8251..70be9284f6c8f1e7ec19605df789cf7c5a2ce1c7 100644 (file)
@@ -57,7 +57,7 @@ static const char *tcpstates[] = {
 
 static const char *mptcpstates[] = {
        "CLOSED", "LISTEN", "ESTABLISHED", "CLOSE_WAIT", "FIN_WAIT_1",
-       "CLOSING", "LAST_ACK", "FIN_WAIT_2", "TIME_WAIT", "FASTCLOSE_WAIT"
+       "CLOSING", "LAST_ACK", "FIN_WAIT_2", "TIME_WAIT", "TERMINATE"
 };
 
 int mptcp_done = 0;
@@ -78,7 +78,7 @@ printmptcp(int id, conninfo_mptcp_t *mptcp)
            "aid(%d)]\n", id,
            mptcp->mptcpci_mpte_flags, mptcp->mptcpci_flags,
            mptcpstates[mptcp->mptcpci_state], mptcp->mptcpci_rtoken,
-           mptcp->mptcpci_sndnxt, mptcp->mptcpci_rcvatmark,
+           mptcp->mptcpci_sndnxt, mptcp->mptcpci_rcvnxt,
            mptcp->mptcpci_mpte_addrid);
 
        flow = (mptcp_flow_t*)((caddr_t)mptcp + mptcp->mptcpci_flow_offset);
@@ -113,9 +113,8 @@ printmptcp(int id, conninfo_mptcp_t *mptcp)
                tcpci = (conninfo_tcp_t*)((caddr_t)flow +
                    flow->flow_tcpci_offset);
                printf("%s \n"
-                   "      [dsn(%#"PRIx64"), relseq(%-4.4d), err(%d)]\n",
+                   "      [relseq(%-4.4d), err(%d)]\n",
                    tcpstates[tcpci->tcpci_tcp_info.tcpi_state],
-                   flow->flow_sndnxt,
                    flow->flow_relseq,
                    flow->flow_soerror);