📄 [转载] linux的tcp-ip协议栈阅读笔记(4) - china linux forum.htm
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0110)http://www.linuxforum.net/forum/showflat.php?Cat=&Board=linuxK&Number=67725&page=192&view=collapsed&sb=5&o=all -->
<HTML><HEAD><TITLE>[转载] Linux的TCP/IP协议栈阅读笔记(4) - China Linux Forum</TITLE>
<META content="text/html; charset=gb2312" http-equiv=Content-Type>
<META content="MSHTML 5.00.2920.0" name=GENERATOR></HEAD>
<BODY>
<CENTER><FONT color=red>著名软件中国镜像:</FONT> <A
href="http://apache.linuxforum.net/"><FONT color=red>Apache|</FONT></A> <A
href="http://php.linuxforum.net/"><FONT color=red>Php|</FONT></A> <A
href="http://debian.linuxforum.net/"><FONT color=red>Debian|</FONT></A> <A
href="http://mysql.linuxforum.net/"><FONT color=red>Mysql|</FONT></A> <A
href="http://proftpd.linuxforum.net/"><FONT color=red>Proftp|</FONT></A> <A
href="http://qmail.linuxforum.net/top.html"><FONT color=red>Qmail|</FONT></A> <A
href="http://samba.linuxforum.net/samba.html"><FONT color=red>Samba|</FONT></A>
<A href="http://www1.cn.squid-cache.org/"><FONT color=red>Squid|</FONT></A> <A
href="http://xfree86.linuxforum.net/"><FONT color=red>Xfree86|</FONT></A> <A
href="http://cpan.linuxforum.net/"><FONT color=red>CPAN|</FONT></A> <A
href="http://ldp.linuxforum.net/"><FONT color=red>LDP|</FONT></A> <A
href="http://gnu.linuxforum.net/"><FONT
color=red>GNU|</FONT></A></CENTER><BR><LINK
href="[转载] Linux的TCP-IP协议栈阅读笔记(4) - China Linux Forum.files/stylesheet2.css"
rel=stylesheet type=text/css><SPAN class=onbody>
<TABLE align=center border=0 cellPadding=3 cellSpacing=0 class=p9 width="95%">
<TBODY>
<TR align=right bgColor=#0099cc vAlign=center>
<TD align=left width="20%"><A
href="http://www.linuxforum.net/index.php"><FONT
color=#ffffff>中国Linux论坛首页</FONT></A></TD>
<TD width="80%"><A
href="http://www.linuxforum.net/forum/ubbthreads.php"><FONT
color=#ffffff>技术论坛|</FONT></A><FON color="#FFFFFF" t> <A
href="http://www.linuxforum.net/docnew/index.php"><FONT
color=#ffffff>文章荟萃</FONT></A><FONT color=#ffffff>| <A
href="http://www.linuxforum.net/books/index.php"><FONT
color=#ffffff>藏经阁</FONT></A>| <A href="http://mail.linuxforum.net/"><FONT
color=#ffffff>会员信箱</FONT></A>| <A href="http://sf.linuxforum.net/"><FONT
color=#ffffff>项目计划</FONT></A>| <A
href="http://www.linuxforum.net/poll2/index.php"><FONT
color=#ffffff>在线调查</FONT></A>| <A href="ftp://ftp.linuxforum.net/"><FONT
color=#ffffff>软件仓库</FONT></A>| <A
href="http://www.linuxforum.net/about.php"><FONT
color=#ffffff>关于本站</FONT></A>| </FONT></TD></TR></TBODY></TABLE><BR></SPAN>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="95%">
<TBODY>
<TR>
<TD class=tableborders>
<TABLE border=0 cellPadding=3 cellSpacing=1 width="100%">
<TBODY>
<TR>
<TD align=right class=menubar><A
href="http://www.linuxforum.net/forum/ubbthreads.php?Cat=">讨论区列表</A>
| <A href="http://www.linuxforum.net/forum/search.php?Cat=">搜寻文章</A>
| <A
href="http://www.linuxforum.net/forum/newuser.php?Cat=">新用户注册</A> |
<A href="http://www.linuxforum.net/forum/login.php?Cat=">登入论坛</A> |
<A href="http://www.linuxforum.net/forum/online.php?Cat=">在线用户</A> |
<A
href="http://www.linuxforum.net/forum/faq_chinese.php?Cat=">常见问题</A>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<P>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="95%">
<TBODY>
<TR>
<TD class=tableborders>
<TABLE border=0 cellPadding=3 cellSpacing=1 width="100%">
<TBODY>
<TR class=darktable>
<TD>
<TABLE cellPadding=0 cellSpacing=0 width="100%">
<TBODY>
<TR class=darktable>
<TD align=left width="33%"><SPAN class=catandforum><A
href="http://www.linuxforum.net/forum/ubbthreads.php?Cat=&C=4">Linux
高级应用</A> <BR> >> <A
href="http://www.linuxforum.net/forum/postlist.php?Cat=&Board=linuxK&page=192&view=collapsed&sb=5&o=all">Linux内核技术</A>
</SPAN></TD>
<TD align=middle width="33%">此话题阅读次数: 606 </TD>
<TD align=right width="33%">
<TABLE border=0>
<TBODY>
<TR>
<TD class=navigation noWrap><IMG align=absMiddle alt=*
src="[转载] Linux的TCP-IP协议栈阅读笔记(4) - China Linux Forum.files/greyflat.gif">平坦模式
</TD>
<TD class=navigation noWrap><A
href="http://www.linuxforum.net/forum/showthreaded.php?Cat=&Board=linuxK&Number=67725&page=192&view=collapsed&sb=5&o=all&vc=1"><IMG
align=absMiddle alt=树状模式,一封一封读 border=0
src="[转载] Linux的TCP-IP协议栈阅读笔记(4) - China Linux Forum.files/threaded.gif">树状模式</A>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE><BR>
<TABLE align=center border=0 cellPadding=4 cellSpacing=0 width="95%">
<TBODY>
<TR>
<TD align=left class=small> </TD>
<TD align=right class=small><A
href="http://www.linuxforum.net/forum/printthread.php?Cat=&Board=linuxK&main=67725&type=thread"
target=_blank><IMG align=top border=0
src="[转载] Linux的TCP-IP协议栈阅读笔记(4) - China Linux Forum.files/printthread.gif">
打印</A> </TD></TR></TBODY></TABLE>
<TABLE align=center border=0 cellPadding=0 cellSpacing=0 width="95%">
<TBODY>
<TR>
<TD class=tableborders>
<TABLE border=0 cellPadding=3 cellSpacing=1 width="100%">
<TBODY>
<TR>
<TD class=darktable rowSpan=2 vAlign=top width="17%"><A
name=Post67725></A><A
href="http://www.linuxforum.net/forum/showprofile.php?Cat=&User=tommytang&Number=67725&Board=linuxK&what=showflat&page=192&view=collapsed&sb=5&o=all&fpart=1&vc=1">tommytang</A><BR><SPAN
class=small>(newbie)<BR>01/03/01 21:57<BR></SPAN></TD>
<TD class=subjecttable width="83%">
<TABLE border=0 class=subjecttable width="100%">
<TBODY>
<TR>
<TD align=left width="70%"><IMG height=15
src="[转载] Linux的TCP-IP协议栈阅读笔记(4) - China Linux Forum.files/book.gif"
width=15> <B>[转载] Linux的TCP/IP协议栈阅读笔记(4)</B> </TD>
<TD align=right width="30%"> </TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD class=lighttable width="83%"><BR>
<P class=post>发信人: AngelFalls (TRY IT), 信区: SysInternals<BR>标 题:
[转载] Linux的TCP/IP协议栈阅读笔记(4)<BR>发信站: 武汉白云黄鹤站 (Wed Oct 4 01:36:44
2000), 转信<BR><BR>【 以下文字转载自 Security 讨论区 】<BR>【 原文由 AngelFalls 所发表
】<BR>下面是ip_init函数,它在net/ipv4/ip_output.c里面:(下面假定定<BR>义了CONFIG_PROC_FS,CONFIG_IP_MULTICAST和CONFIG_NET_CLS_ROUTE)<BR>__initfunc(void
ip_init(void))<BR>{<BR>dev_add_pack(&ip_packet_type);<BR>ip_rt_init();<BR>proc_net_register(&proc_net_igmp);<BR>}<BR><BR>前面的dev_add_pack是说过的,这里就不再说了,而且proc_net_register<BR>也是前面提过的,这里都不说了,先来看看ip_rt_init函数把,它在net/<BR>ipv4/route.c里面,函数是这样的:<BR>__initfunc(void
ip_rt_init(void))<BR>{<BR>struct proc_dir_entry
*ent;<BR>devinet_init();<BR>ip_fib_init();<BR>rt_periodic_timer.function
= rt_check_expire;<BR>/* All the timers, started at system startup
tend<BR>to synchronize. Perturb it a
bit.<BR>*/<BR>rt_periodic_timer.expires = jiffies +
net_random()%<BR>ip_rt_gc_interval +
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -