Linux·ÀÖ¹ipÊײ¿id×ֶλØÈƵIJßÂÔ
IPÊײ¿µÄid×Ö¶ÎÓÃÀ´±êʶ²»Í¬µÄ·â°ü£¨¶ø²»ÊÇ·ÖƬ£¬Ò»¸ö·â°üµÄËùÓзÖƬӵÓÐÏàͬµÄid£©
Õâ¸ö×Ö¶ÎÖ»Õ¼ÓÃ16룬Òò´ËÔÚÒ»¸ö¿ìËÙµÄÍøÂçÉϺܿì¾Í»á»ØÈÆ£¬ÕâÊǾͿÉÄÜÔì³ÉÐÒéÕ»¶Ôip±¨ÎÄʶ±ð»ìÂÒ¡£
LinuxÄں˲ÉÈ¡Á˲ßÂÔÀ´¼õ»ºÆä»ØÈÆËٶȡ£
²»Ê¹ÓÃÈ«¾ÖµÄid±äÁ¿£¬¶øÊǶÔÿ¸öipʹÓÃÒ»¸öµ¥¶ÀµÄ¼ÆÊýÆ÷À´¼ÆËãÆäid£¬
µ«ÊÇipµØÖ·ÊǺܶàµÄ£¬³¤Ê±¼ä²»ÇåÀïµÄ»°ºÜ¿ì»á°ÑÄÚ´æÕ¼Âú£¬
ÓÚÊÇÉèÖÃÒ»¸öÈ«¾Ö¶¨Ê±Æ÷peer_periodic_timer£¬¶¨Ê±µ÷ÓÃpeer_check_expireº¯Êý£¬
˵ÊǶ¨Ê±£¬ÆäʵҲ²»ÄÇô׼ʱ£¬µÚÒ»´ÎÒ»°ãÉèÖÃʱ¼äΪinet_peer_gc_maxtime£¨2·ÖÖÓ£©ÔÙ¼Ó¼õÒ»¸öËæ»úÖµ
UNLI˵ÕâÊÇΪÁË·ÀÖ¹Ó뿪»úʱÆô¶¯µÄÆäËû¶¨Ê±Æ÷³åÍ»¡£
ÒÔºóÖØÐÂÉèÖõÄʱ¼äÒ²²»ÊǶ¨Öµ£¬¶øÊÇÒª¸ù¾Ýinet_peerµÄÊýÁ¿ÔÚ10Ãëµ½120ÃëÖ®¼ä±ä»¯£¬
inet_peerÊýÁ¿Ô½¶à£¬µ½ÆÚʱ¼äÔ½¶Ì£¬ÕâºÜºÃÀí½â£¬¸ºÔØÔ½ÖØԽҪƵ·±ÇåÀí¡£
ÔÚpeer_check_expireº¯ÊýÖÐËù×öµÄ¾ÍÊǸù¾Ý¸ºÔØÇé¿öÀ´É¾³ýÒ»¶¨ÊýÁ¿µÄpeer
Èç¹ûpeerÊýÁ¿´óÓÚinet_peer_threshold£¬ÄÇô»áɾ³ýδÓÃʱ¼ä³¬¹ýinet_peer_minttl(120s)µÄpeer
·ñÔò¸ù¾Ý¸ºÔØÇé¿öɾ³ýδÓÃʱ¼äÔÚinet_peer_minttlµ½inet_peer_maxttl(10min)Ö®¼äµÄij¸öÖµÒÔÉϵÄpeer
Ò»°ãÒ²²»ÊÇÈ«²¿É¾³ý£¬¶øÊÇÔËÐÐ1¸öHZ£¬É¾¶àÉÙËã¶àÉÙ£¬
ɾ³ý²Ù×÷Êǵ÷ÓÃcleanup_onceÍê³ÉµÄ£¬Ëü½ÓÊÜÒ»¸ö²ÎÊýn±íʾɾ³ýδÓÃʱ¼ä´óÓÚnµÄpeer£¬ËüÒ»´Îֻɾ³ýÒ»¸ö
³¬¹ý1HZÖ®ºóÈç¹û»¹Ã»ÓÐÇåÀíÍ꣬ÔòÉèÖÃÀ¬»øÊÕ¼¯¶¨Ê±Æ÷Ϊ×îСֵ10sºóÔÙ´ÎÇåÀí
·ñÔòÒ²ÊÇÉèÖÃΪ10sµ½120sÖ®¼äµÄÖµ
ÓпÉÄÜÌí¼ÓpeerµÄµã£º
1.ip_defragÖд´½¨ÐÂinet_frag_queueʱ»áµ÷ÓÃconstructor£¬¶ÔÓÚipv4ÊÇip4_frag_init£¬
ÕâÆäÖлáµ÷ÓÃinet_getpeer(arg->iph->saddr, 1)¡£
2.µ÷ÓÃip_select_identΪÍâ³ö·â°üÑ¡Ôñidʱ£¬Èç¹û´Ë·â°üµÄÄ¿µÄip²»ÔÚpeersÖУ¬
rt_bind_peer(rt, 1);»áµ÷Óô´½¨Ò»¸öpeer²¢ÇÒÓërtable°ó¶¨¡£
3.tcp_v4_remember_stampµÈ¼¸¸öº¯ÊýÖÐÒ²»áµ÷ÓÃrt_bind_peer»òÕßÖ±½Óµ÷inet_getpeer£¬
ÔÝʱ²»ÖªµÀÕâЩÊÇ×öʲôÓõÄ
Ïà¹ØÎĵµ£º
1. HCI²ãÐÒé¸ÅÊö£º
HCIÌṩһÌ×ͳһµÄ·½·¨À´·ÃÎÊBluetoothµ×²ã¡£ÈçͼËùʾ£º
´ÓͼÉÏ¿ÉÒÔ¿´³ö£¬Host Controller Interface(HCI) ¾ÍÊÇÓÃÀ´¹µÍ¨HostºÍModule¡£Hostͨ³£¾ÍÊÇPC£¬ ModuleÔòÊÇÒÔ¸÷ÖÖÎïÀíÁ¬½ÓÐÎʽ£¨USB,serial,pc-cardµÈ£©Á¬½Óµ½PCÉϵÄbluetooth Dongle¡£
ÔÚHostÕâÒ»¶Ë£ºapplication,SDP,L2capµÈÐÒé ......
from: http://www.pcstu.com/system/Linux/20090804/65873.html
±¾ÎĽéÉÜÏÂlinux atÃüÁîµÄÁíÒ»¸ö×÷ÓãºlinuxÏÂʹÓÃlinux atÃüÁʱ¹Ø»ú¡£
Ê×ÏÈ´´½¨Ò»¸öÎļþ,дÈ룺
#!/bin/sh
shutdown -h now
±£´æΪpowerÎļþ.Ö®ºó
chmod +x powerÖ®ºó¾ÍÄÜʹÓÃlinux atÃüÁʱ¹Ø»úÁË.
µ«ÊÇÐèÒªÓÐrootȨÏÞ²ÅÄܹػú,
ËùÒÔÐè ......
¶ÔÐí¶àÓû§À´Ëµ£¬ÔÚDOSºÍWindows»·¾³ÏÂÀûÓù¤¾ßÈí¼þWinZip¡¢ARJµÈѹËõ»ò½âѹÎļþÊDZȽÏÈÝÒ×µÄÊ¡£µ«ÊÇ£¬ÔÚLinuxÖÐÈçºÎ¶ÔÎļþ½øÐÐѹËõÓë½âѹÄØ£¿
ÓÃtar½¨Á¢´æµµ
tarÊÇ“tape archive”(´Å´ø´æµµ)µÄ¼ò³Æ£¬Ëü³öÏÖÔÚ»¹Ã»ÓÐÈíÅÌÇý¶¯Æ÷¡¢Ó²Å̺͹âÅÌÇý¶¯Æ÷µ ......
linux½Ì³Ì:MountÃüÁLinuxÍâÖô洢½éÖʹÒÔØ·½·¨
¡¡LinuxϵͳÔÚʹÓùâÅÌ¡¢ÈíÅÌ»òUÅÌʱ£¬±ØÐëÏÈÖ´ÐйÒÔØ£¨mount£©ÃüÁî¡£¹ÒÔØÃüÁî»á½«ÕâЩ´æ´¢½éÖÊÖ¸¶¨³ÉϵͳÖеÄij¸öĿ¼£¬ÒÔºóÖ±½Ó·ÃÎÊÏàӦĿ¼¼´¿É¶Áд´æ´¢½éÖÊÉϵÄÊý¾Ý¡£
¡¡¡¡1.¹ÒÔعâÅÌ
¡¡¡¡¹ÒÔعâÅ̵ÄÃüÁîÈçÏ£º
¡¡¡¡# mount -t is09660 /dev/cdrom /mnt/cdr ......
1 linuxÄÚºË
²¢²»Çø·ÖÏ̺߳ͽø³Ì¡£¶ÔÓÚÄÚºËÀ´Ëµ£¬ËùÓеÄÏ̺߳ͽø³Ì¶¼Ò»Ñù£¬Ö»ÊÇÆäÖеÄһЩ¹²Ïí×ÊÔ´¶øÒÑ¡£
2 Äں˿ª·¢Ìص㣺
2.1 linuxÄں˿ª·¢²»ÄÜʹÓÃcº¯Êý¿â£¬ÒòΪc¿âÐèÒª²Ù×÷ϵͳµÄÖ§³Ö£¬¶øÇÒc¿âµÄ´óСºÍЧÂÊÒ²ÊÇÄں˿ª·¢Ëù²»ÄÜÈÝÈ̵ģ»
......