- 论坛徽章:
- 0
|
Linux的网络协议栈都是重新实现的,要学习Linux的网络代码,我觉得你首先要对网络的原理有深入的了解。然后就可以去剖析你感兴趣的那部分,否则的话,无论你看到传输层、IP层还是链路层的实现代码,都不会有什么特别的感觉。
关于源代码,请到 www.kernel.org 下载最新的内核,解开到 Linux或者Windows下。我现在就是在Windows平台用Eclipse + CDT 4.0.1看源代码,需要编译的话就登录到Linux机器上。上个月下载内核的时候版本还是2.6.23.1,没想到才1个月不到,现在最新的版本已经是2.6.23.9了。
C:\Documents and Settings\wuqp\workspace\linux-2.6.18\net 的目录
007-11-06 14:31 <DIR> .
007-11-06 14:31 <DIR> ..
007-11-06 14:31 <DIR> 802
007-11-06 14:31 <DIR> 8021q
007-11-06 14:31 <DIR> appletalk
007-11-06 14:31 <DIR> atm
007-11-06 14:31 <DIR> ax25
007-11-06 14:31 <DIR> bluetooth
007-11-06 14:31 <DIR> bridge
007-11-06 14:27 18,994 compat.c
007-11-06 14:31 <DIR> core
007-11-06 14:31 <DIR> dccp
007-11-06 14:31 <DIR> decnet
007-11-06 14:31 <DIR> econet
007-11-06 14:31 <DIR> ethernet
007-11-06 14:31 <DIR> ieee80211
007-11-06 14:31 <DIR> ipv4
007-11-06 14:31 <DIR> ipv6
007-11-06 14:31 <DIR> ipx
007-11-06 14:31 <DIR> irda
007-11-06 14:27 9,040 Kconfig
007-11-06 14:31 <DIR> key
007-11-06 14:31 <DIR> lapb
007-11-06 14:31 <DIR> llc
007-11-06 14:27 1,409 Makefile
007-11-06 14:31 <DIR> netfilter
007-11-06 14:31 <DIR> netlink
007-11-06 14:31 <DIR> netrom
007-11-06 14:27 528 nonet.c
007-11-06 14:31 <DIR> packet
007-11-06 14:31 <DIR> rose
007-11-06 14:31 <DIR> rxrpc
007-11-06 14:31 <DIR> sched
007-11-06 14:31 <DIR> sctp
007-11-06 14:27 52,568 socket.c
007-11-06 14:31 <DIR> sunrpc
007-11-06 14:27 947 sysctl_net.c
007-11-06 14:31 <DIR> tipc
007-11-06 14:27 2,239 TUNABLE
007-11-06 14:31 <DIR> unix
007-11-06 14:31 <DIR> wanrouter
007-11-06 14:31 <DIR> x25
007-11-06 14:31 <DIR> xfrm
7 个文件 85,725 字节
36 个目录 5,640,175,616 可用字节
:\Documents and Settings\wuqp\workspace\linux-2.6.18\net>
[ 本帖最后由 wuqing 于 2007-11-27 10:35 编辑 ] |
|