Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

Linux ÍøÂçϵͳѧϰ IPv6 µÄ³õʼ»¯£¨Ïêϸ¶øÈ«Ã棩

ת×Ô£ºhttp://blog.csdn.net/rstevens/archive/2007/04/10/1559289.aspx
1.
  
ÍøÂç×Óϵͳ
1.1.                   
ÍøÂç×Óϵͳ¸ÅÊö
 
Linux
ÄÚºËÖУ¬ÓëÍøÂçÏà¹ØµÄ´úÂëÊÇÒ»¸öÏà¶Ô¶ÀÁ¢µÄ×Óϵͳ£¬³ÆΪÍøÂç×Óϵͳ¡£
ÍøÂç×ÓϵͳÊÇÒ»¸ö²ã´Î»¯µÄ½á¹¹£¬¿É·ÖΪÒÔϼ¸¸ö²ã´Î£º
 
1¡¢
Socket
²ã
Linux
ÔÚ·¢Õ¹¹ý³ÌÖУ¬²ÉÓÃ
BSD socket APIs
×÷Ϊ×Ô¼ºµÄÍøÂçÏà¹ØµÄ
API
½Ó¿Ú¡£Í¬Ê±£¬
Linux
µÄÄ¿±êÓÖÒªÄÜÖ§³Ö¸÷ÖÖ²»Í¬µÄЭÒé×壬¶øÇÒÕâЩЭÒé×嶼¿ÉÒÔʹÓÃ
BSD socket APIs
×÷ΪӦÓòãµÄ±à³Ì½Ó¿Ú¡£Òò´Ë£¬ÔÚ
socket APIs
ÓëЭÒé×å²ãÖ®¼ä³éÏó³öÒ»¸ö
socket
²ã£¬ÓÃÓÚ½«
user space
µÄ
socket API
µ÷Óã¬×ª¸ø¾ßÌåµÄЭÒé×å×ö´¦Àí¡£
 
2¡¢
ЭÒé×å²ã£¨
INET
ЭÒé×å¡¢
INET6
ЭÒé×åµÈ£©
Linux
ÍøÂç×Óϵͳ¹¦ÄÜÉÏÏ൱Í걸£¬Ëü²»½öÖ§³Ö
INET
ЭÒé×壨Ҳ¾ÍÊÇͨ³£Ëù˵µÄ
TCP/IP stack
£©£¬¶øÇÒ»¹Ö§³ÖÆäËüºÜ¶àÖÖЭÒé×壬Èç
DECnet, ROSE, NETBEUI
µÈ¡£
INET6
¾ÍÊÇÒ»ÖÖÐÂÔö¼ÓµÄЭÒé×å¡£
¶ÔÓÚ
INET
¡¢
INET6
ЭÒé×åÀ´Ëµ£¬

ÓÖ½øÒ»²½»®·ÖΪ´«Êä²ãºÍÍøÂç²ã¡£
 
3¡¢
É豸Çý¶¯²ã
É豸Çý¶¯²ãÔòÖ÷Òª½«Ð­Òé×å²ãÓëÎïÀíµÄÍøÂçÉ豸¸ôÀ뿪¡£Ëü²»ÔÚ±¾ÎĵÄÌÖÂÛ·¶Î§Ö®ÄÚ¡£
 
ÏÂͼÊÇ
Linux
ÍøÂçϵͳ²ã´Î½á¹¹Í¼¡£
 
 
1.2.                   
ÍøÂç×ÓϵͳµÄ³õʼ»¯
 
·
       
Socket
²ãµÄ³õʼ»¯£º
 
Init()->do_basic_setup()->sock_init()
 
Sock_init()
£º¶Ô
sock
ºÍ
skbuff
½á¹¹½øÐÐ
SLAB
ÄÚ´æµÄ³õʼ»¯¹¤×÷
 
 
·
       
¸÷ÖÖÍøÂçЭÒé×åµÄ³õʼ»¯£º
 
Do_initcalls()
£º
¶ÔÓÚ±àÒëµ½ÄÚºËÖеŦÄÜÄ£¿é£¨¶ø²»ÊÇÒÔÄ£¿éµÄÐÎʽ¶¯Ì¬¼ÓÔØ£©£¬ËüµÄ³õʼ»¯º¯Êý»áÔÚÕâ¸öµØ·½±»µ÷Óõ½¡£
 
          
ÄÚºËÓ³ÏóÖÐרÃÅÓÐÒ»¸ö³õʼ»¯¶Î£¬ËùÓбàÒëµ½ÄÚºËÖеŦÄÜÄ£¿éµÄ³õʼ»¯º¯Êý¶¼»á¼ÓÈëµ½Õâ¸ö¶ÎÖУ»¶ø
do_initcalls()
¾ÍÊÇ


Ïà¹ØÎĵµ£º

linux tcpdump ÃüÁîÏê½â

¹¦ÄÜ˵Ã÷£ºÇãµ¹ÍøÂç´«ÊäÊý¾Ý¡£
Óï¡¡¡¡·¨£ºtcpdump [-adeflnNOpqStvx][-c<Êý¾Ý°üÊýÄ¿>][-dd][-ddd][-F<±í´ïÎļþ>][-i<ÍøÂç½çÃæ>][-r<Êý¾Ý°üÎļþ>][-s<Êý¾Ý°ü´óС>][-tt][-T<Êý¾Ý°üÀàÐÍ>][-vv][-w<Êý¾Ý°üÎļþ>][Êä³öÊý¾ÝÀ¸Î»]
²¹³ä˵Ã÷£ºÖ´ÐÐtcpdumpÖ¸Áî¿ÉÁгö¾­¹ýÖ¸¶¨ÍøÂç½çÃæµ ......

LinuxÏÂÅäÖÃʹÓÃSVN


from: http://yangsq.javaeye.com/blog/162649
ƽʱµÄÍŶӿª·¢£¬ÉÙ²»ÁËÒªÓÃÒ»¸öЭ×÷¹¤¾ß¡£¶ÔÓÚÒÔÇ°£¬ÎÞÒÉcvsÊǸöÎÞ´íµÄÑ¡Ôñ£¨ÏñIBMµÄÈ«Çò´úÂëά»¤£©¡£µ«ÊÇ£¬¿Æ¼¼ÔÚ·¢Õ¹Âð£¬ÏÖÔÚÓÐÁ˸üºÃµÄsvnÁË£¬ËùÒÔÖ±½Ó¾ÍÊÇsvn°É¡£ÓйØsvnµÄ¾ßÌåÐÅÏ¢¿ÉÒÔÉÏËüµÄ¹ÙÍø»òwww.subversion.org.cn
ÍøÉϹØÓÚsvnµÄÒ²²»ÉÙ£¬²»¹ý¸Ð¾õ´ó¶¼³ö× ......

linuxϵ÷ÊÔÈëÃÅÖ®ÔÝÍ£µÄʹÓÃ

 ×î½üͨ¶ÁÁËÒ»ÏÂÈí¼þµ÷ÊÔµÄÒÕÊõ£¨The art of debugging with gdb,ddd,eclipse£©£¬×ÜÌåÀ´ËµÊÇÒ»°ãÈëÃż¶µÄµ÷ÊÔÓÃÊé¡£ÎÒ¸öÈ˸оõ¶Ô³õѧgdbµÄÓÐÒ»¶¨µÄ×÷Óã¬ÓÐÀ¢ÓÚÌâÄ¿art¡£ÎÒ¼òµ¥µÄ×ö¸ö×ܽᣬ¹©ÈëÃŲο¼¡£Ö÷Òª½²ÁËgdbµÄ³£ÓÃÃüÁîÒÔ¼°³£¼ûbugµÄµ÷ÊÔ¡£
³£ÓÃÃüÁ
1. ÔÝÍ£»úÖÆ
    a.¶ÏµãµÄʹÓÃ
 & ......

Linux·þÎñÆ÷ά»¤µÄ¼¸¸öÔ­Ôò

Linux·þÎñÆ÷ËäÈ»Ïà¶ÔÀ´Ëµ±ÈWindwos·þÎñÆ÷ÒªÎȶ¨Ó밲ȫ¡£µ«ÊÇÎȶ¨°²È«µÄLinux·þÎñÆ÷£¬ÈÔÈ»Àë²»¿ªºÏÀíµÄ¼°Ê±µÄά»¤¹¤×÷¡£
¡¡¡¡Ò»¡¢ÈÃÈí¼þ°ü±£³Ö×îеİ汾
¡¡¡¡Linux·þÎñÆ÷µÄÈí¼þ°üÒ²ÈçͬWindwos²Ù×÷ϵͳµÄ²¹¶¡Ò»ÑùÔÚ²»¶ÏµÄÉý¼¶¡£Linux·þÎñÆ÷Èí¼þµÄÉý¼¶Ö÷ÒªÓÐÁ½¸öÄ¿µÄ¡£Ò»ÊÇÔöÇ¿Èí¼þµÄ¹¦ÄÜ£¬¶þÊǽâ¾öһЩÒÑÖªµÄ°²È«Â©¶´¡£Èç ......

qdisk(5) Linux man page

QDisk 1.2 - a disk-based quorum daemon for CMAN / Linux-Cluster
1. Overview
1.1 Problem
In some situations, it may be necessary or desirable to sustain a majority node failure of a cluster without introducing the need for asymmetric cluster configurations (e.g. client-server, or heavily-weighted ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ