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

Linux netfilterÔ´Âë·ÖÎö(3)

תÌù×Ô£ºhttp://alexanderlaw.blog.hexun.com/8968782_d.html
Èý¡¢ipt_table±íµÄ×¢²á
 
init£¨£©º¯Êý³õʼ»¯Ê±µ÷ÓÃÁËipt_register_tableº¯Êý½øÐбíµÄ×¢²á
 
3.1  ip_tables.c ±íµÄ×¢²á ipt_register_table
int ipt_register_table(struct ipt_table *table)
{
       int ret;
       struct ipt_table_info *newinfo;
       static struct ipt_table_info bootstrap
              = { 0, 0, 0, { 0 }, { 0 }, { } };
 
/*ºêMOD_INC_USE_COUNTÓÃÓÚÄ£¿é¼ÆÊýÆ÷ÀÛ¼Ó£¬Ö÷ÒªÊÇΪÁË·Àֹģ¿éÒ쳣ɾ³ý£¬¶ÔÓ¦µÄºêMOD_DEC_USE_COUNT¾ÍÊÇÀÛ¼õÁË*/
       MOD_INC_USE_COUNT;  
 
/*Ϊÿ¸öCPU·ÖÅä¹æÔò¿Õ¼ä*/
       newinfo = vmalloc(sizeof(struct ipt_table_info)
                       + SMP_ALIGN(table->table->size) * smp_num_cpus);
       if (!newinfo) {
              ret = -ENOMEM;
              MOD_DEC_USE_COUNT;
              return ret;
       }
 
/*½«¹æÔòÏ±´µ½Ð±íÏîµÄµÚÒ»¸öcpu¿Õ¼äÀïÃæ*/
       memcpy(newinfo->entries, table->table->entries, table->table->size);
 
/*translate_tableº¯Êý½«newinfo±íʾµÄtableµÄ¸÷¸ö¹æÔò½øÐб߽ç¼ì²é£¬È»ºó¶ÔÓÚnewinfoËùÖ¸µÄipt_talbe_info½á¹¹ÖеÄhook_entriesºÍunderflows¸³ÓèÕýÈ·µÄÖµ£¬×îºó½«±íÏîÏòÆäËûcpu¿½±´*/
       ret = translate_table(table->name, table->valid_hooks,
                 &


Ïà¹ØÎĵµ£º

ʵսLinux Bluetooth±à³Ì£¨ËÄ£© L2CAP²ã±à³Ì

£¨L2CAPЭÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPЭÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼­Á¬½Ó¿ØÖƺÍÊÊÅäЭÒé (L2CAP) ΪÉϲãЭÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àЭÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãЭÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......

ʵսLinux Bluetooth±à³Ì (Æß) SDPЭÒé

Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖЭÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀЭÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......

linuxÃüÁîÐÐÏÂÖÐÎÄÎļþÃûÂÒÂëµÄ½â¾ö·½·¨

linuxÃüÁîÐÐÏÂÖÐÎÄÎļþÃûÂÒÂëµÄ½â¾ö·½·¨
Ê×ÏȲéѯ֧³ÖµÄ±àÂë:
locale -a
Èç¹ûûÓÐÄãÐèÒªµÄ±àÂ룬ÀýÈçzh_CN.utf8
rootÔËÐÐ: #dpkg-reconfigure locales
Ñ¡ÔñÄãÐèÒªµÄ±àÂ룬ÓÿոñÑ¡ÖУ¬¿É¶àÑ¡¡£tabÑ¡Ôñ“OK”£¬»Ø³µ¡£
ĬÈϱàÂëÑ¡Ôñzh_CN.utf8
°²×°ÄãËùÐèÒªµÄ±àÂë¡£
ÐÞ¸Ä/etc/profile,
×¢Ê͵ô
export LC ......

Å̵ã2009£ºLinux·þÎñÆ÷Èí¼þ·¢Õ¹ÁÁµã¶à

Ó²¼þ¼¼ÊõÒ»Ö±ºÍÈí¼þ¼¼ÊõÏàÒÀÏàË棬Ëæ×Å·þÎñÆ÷Ó²¼þºÍоƬ¼¼ÊõµÄ½ø²½£¬Íƶ¯×Å·þÎñÆ÷²Ù×÷ϵͳ¼¼ÊõµÄ±ä¸ï¡£
¡¡¡¡Ð¾Æ¬¼¼ÊõµÄ·¢Õ¹£º´Óx86µ½Áúо
¡¡¡¡2009Ä꣬¸÷´óоƬ³§É̶¼ÍƳöÁ˶à¿îоƬ²úÆ·£ºÈçIntel¹«Ë¾»ùÓÚNehalem¼Ü¹¹·¢²¼µÄ×ÀÃæ¶ËоƬ²úÆ·¿áî£i7;AMD¹«Ë¾Ò²ÍƳöÁË»ù
ÓÚÐÂFioranoƽ̨µÄ´úºÅΪ“ÒÁ˹̹²¼¶û”µÄÁù ......

linux netstat ÃüÁî³£ÓÃÑ¡ÏîÏê½â

ת×Ô£ºhttp://hi.baidu.com/zhangdaoxie/blog/item/d9f49f4a991f412b08f7efff.html
NetstatÓÃÓÚÏÔʾÓëIP¡¢TCP¡¢UDPºÍICMPЭÒéÏà¹ØµÄͳ¼ÆÊý¾Ý£¬Ò»°ãÓÃÓÚ¼ìÑé±¾»ú¸÷¶Ë¿ÚµÄÍøÂçÁ¬½ÓÇé¿ö¡£
Èç¹ûÎÒÃǵļÆËã»úÓÐʱºò½ÓÊܵ½µÄÊý¾Ý±¨»áµ¼Ö³ö´íÊý¾Ýɾ³ý»ò¹ÊÕÏ£¬ÎÒÃDz»±Ø¸Ðµ½Ææ¹Ö£¬TCP/IP¿ÉÒÔÈÝÐíÕâЩÀàÐ͵ĴíÎ󣬲¢Äܹ»×Ô¶¯ÖØ·¢Êý ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ