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()
¾ÍÊÇ
Ïà¹ØÎĵµ£º
¹¦ÄÜ˵Ã÷£ºÇãµ¹ÍøÂç´«ÊäÊý¾Ý¡£
Óï¡¡¡¡·¨£ºtcpdump [-adeflnNOpqStvx][-c<Êý¾Ý°üÊýÄ¿>][-dd][-ddd][-F<±í´ïÎļþ>][-i<ÍøÂç½çÃæ>][-r<Êý¾Ý°üÎļþ>][-s<Êý¾Ý°ü´óС>][-tt][-T<Êý¾Ý°üÀàÐÍ>][-vv][-w<Êý¾Ý°üÎļþ>][Êä³öÊý¾ÝÀ¸Î»]
²¹³ä˵Ã÷£ºÖ´ÐÐtcpdumpÖ¸Áî¿ÉÁгö¾¹ýÖ¸¶¨ÍøÂç½çÃæµ ......
from: http://yangsq.javaeye.com/blog/162649
ƽʱµÄÍŶӿª·¢£¬ÉÙ²»ÁËÒªÓÃÒ»¸öÐ×÷¹¤¾ß¡£¶ÔÓÚÒÔÇ°£¬ÎÞÒÉcvsÊǸöÎÞ´íµÄÑ¡Ôñ£¨ÏñIBMµÄÈ«Çò´úÂëά»¤£©¡£µ«ÊÇ£¬¿Æ¼¼ÔÚ·¢Õ¹Âð£¬ÏÖÔÚÓÐÁ˸üºÃµÄsvnÁË£¬ËùÒÔÖ±½Ó¾ÍÊÇsvn°É¡£ÓйØsvnµÄ¾ßÌåÐÅÏ¢¿ÉÒÔÉÏËüµÄ¹ÙÍø»òwww.subversion.org.cn
ÍøÉϹØÓÚsvnµÄÒ²²»ÉÙ£¬²»¹ý¸Ð¾õ´ó¶¼³ö× ......
×î½üͨ¶ÁÁËÒ»ÏÂÈí¼þµ÷ÊÔµÄÒÕÊõ£¨The art of debugging with gdb,ddd,eclipse£©£¬×ÜÌåÀ´ËµÊÇÒ»°ãÈëÃż¶µÄµ÷ÊÔÓÃÊé¡£ÎÒ¸öÈ˸оõ¶Ô³õѧgdbµÄÓÐÒ»¶¨µÄ×÷Óã¬ÓÐÀ¢ÓÚÌâÄ¿art¡£ÎÒ¼òµ¥µÄ×ö¸ö×ܽᣬ¹©ÈëÃŲο¼¡£Ö÷Òª½²ÁËgdbµÄ³£ÓÃÃüÁîÒÔ¼°³£¼ûbugµÄµ÷ÊÔ¡£
³£ÓÃÃüÁ
1. ÔÝÍ£»úÖÆ
a.¶ÏµãµÄʹÓÃ
& ......
Linux·þÎñÆ÷ËäÈ»Ïà¶ÔÀ´Ëµ±ÈWindwos·þÎñÆ÷ÒªÎȶ¨Ó밲ȫ¡£µ«ÊÇÎȶ¨°²È«µÄLinux·þÎñÆ÷£¬ÈÔÈ»Àë²»¿ªºÏÀíµÄ¼°Ê±µÄά»¤¹¤×÷¡£
¡¡¡¡Ò»¡¢ÈÃÈí¼þ°ü±£³Ö×îеİ汾
¡¡¡¡Linux·þÎñÆ÷µÄÈí¼þ°üÒ²ÈçͬWindwos²Ù×÷ϵͳµÄ²¹¶¡Ò»ÑùÔÚ²»¶ÏµÄÉý¼¶¡£Linux·þÎñÆ÷Èí¼þµÄÉý¼¶Ö÷ÒªÓÐÁ½¸öÄ¿µÄ¡£Ò»ÊÇÔöÇ¿Èí¼þµÄ¹¦ÄÜ£¬¶þÊǽâ¾öһЩÒÑÖªµÄ°²È«Â©¶´¡£Èç ......
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 ......