【问题标题】:Where is TCP file on linuxlinux上的TCP文件在哪里
【发布时间】:2014-08-11 18:37:41
【问题描述】:

我熟悉 TCP-IP。我在网络书籍中读到过它。我知道 TCP 是如何工作的。我还知道存在各种 TCP,例如 reno、new reno 和 taho。但现在我想看看它们的源代码。例如 TCP 如何在 ubuntu 14.04 上工作。谁能告诉我它的文件在哪里?

【问题讨论】:

  • 为了澄清,您是在询问在 ubuntu 14.04 中处理 TCP 的源代码的位置?
  • 是的,谢谢。和一些如此笼统的描述开始学习。

标签: linux tcp tcp-ip


【解决方案1】:

TCP 是在 Linux 内核中定义的。可以在LXR上浏览源码

这是/net/ipv4/tcp.c的来源

【讨论】:

    【解决方案2】:

    您可能需要阅读如何编译 Linux 内核:

    https://help.ubuntu.com/community/Kernel/Compile

    然后,下载源代码后,您可以根据需要进行修改,或者只是在 usr/src/linux-headers-2.6.32-38/net/ipv4 之类的地方观察它

    你会发现 tcp 源从以下内容开始: /* * INET An implementation of the TCP/IP protocol suite for the LINUX * operating system. INET is implemented using the BSD Socket * interface as the means of communication with the user level. * * Implementation of the Transmission Control Protocol(TCP). * * Authors: Ross Biro * Fred N. van Kempen, <waltje@uWalt.NL.Mugnet.ORG> * Mark Evans, <evansmp@uhura.aston.ac.uk> * Corey Minyard <wf-rch!minyard@relay.EU.net> * Florian La Roche, <flla@stud.uni-sb.de> * Charles Hedrick, <hedrick@klinzhai.rutgers.edu> * Linus Torvalds, <torvalds@cs.helsinki.fi> * Alan Cox, <gw4pts@gw4pts.ampr.org> * Matthew Dillon, <dillon@apollo.west.oic.com> * Arnt Gulbrandsen, <agulbra@nvg.unit.no> * Jorge Cwik, <jorge@laser.satlink.net>

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-01-19
      • 2020-02-27
      • 2010-09-08
      • 2013-07-24
      • 2020-10-23
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多