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

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

תÌù×Ô£ºhttp://alexanderlaw.blog.hexun.com/8968960_d.html
Æß¡¢ target Æ¥Åä
7.1 ipt_targetºÍipt_entry_target½á¹¹      ip_tables.h
ipt_targetºÍipt_match½á¹¹ÀàËÆ£º
struct ipt_target
{
      struct list_head list;
 
      const char name[IPT_FUNCTION_MAXNAMELEN];
 
/* ÔÚʹÓñ¾MatchµÄ¹æÔò×¢Èë±íÖÐ֮ǰµ÷Ó㬽øÐÐÓÐЧÐÔ¼ì²é£¬Èç¹û·µ»Ø0£¬¹æÔò¾Í²»»á¼ÓÈëiptablesÖÐ */
      int (*checkentry)(const char *tablename,
                   const struct ipt_entry *e,
                   void *targinfo,
                   unsigned int targinfosize,
                   unsigned int hook_mask);
 
/* ÔÚ°üº¬±¾TargetµÄ¹æÔò´Ó±íÖÐɾ³ýʱµ÷Óã¬ÓëcheckentryÅäºÏ¿ÉÓÃÓÚ¶¯Ì¬ÄÚ´æ·ÖÅäºÍÊÍ·Å */
      void (*destroy)(void *targinfo, unsigned int targinfosize);
 
/* targetµÄÄ£¿éº¯Êý£¬Èç¹ûÐèÒª¼ÌÐø´¦ÀíÔò·µ»ØIPT_CONTINUE£¨-1£©£¬·ñÔò·µ»ØNF_ACCEPT¡¢NF_DROPµÈÖµ£¬ËüµÄµ÷ÓÃÕ߸ù¾ÝËüµÄ·µ»ØÖµÀ´ÅжÏÈçºÎ´¦ÀíËü´¦Àí¹ýµÄ±¨ÎÄ*/
      unsigned int (*target)(struct sk_buff **pskb,
                        const struct net_device *in,
                        const struct net_device *out,
                        unsigned int hooknum,
        &n


Ïà¹ØÎĵµ£º

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

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

ʵսLinux Bluetooth±à³Ì(Áù) L2CAP±à³ÌʵÀý

ÀýÒ»£º·¢ËÍSignaling Packet£º
Signaling CommandÊÇ2¸öBluetoothʵÌåÖ®¼äµÄL2CAP²ãÃüÁî´«Êä¡£ËùÒÔµÃSignaling CommandʹÓÃCID 0x0001.
¶à¸öCommand¿ÉÒÔÔÚÒ»¸öC-frame£¨control frame£©Öз¢ËÍ¡£
 Èç¹ûÒªÖ±½Ó·¢ËÍSignaling Command.ÐèÒª½¨Á¢SOCK_RAWÀàÐ͵ÄL2CAPÁ¬½ÓSocket¡£ÕâÑù²ÅÓлú»á×Ô¼ºÌî³äCommand Code£¬Identi ......

Linux»·¾³½ø³Ì¼äͨÐÅ£¨Èý£©


Linux»·¾³½ø³Ì¼äͨÐÅ£¨Èý£©
ÏûÏ¢¶ÓÁÐ
ÎĵµÑ¡Ïî
<tr
valign="top"><td width="8"><img alt="" height="1" width="8"
src="//www.ibm.com/i/c.gif"/></td><td width="16"><img alt="" width=" ......

ÔÚSuse Linux Enterprise 10 ϰ²×°IBM MQ

     ÓÉÓÚ¹¤×÷ÓÐÐèÒªºÍµÚÈý·½MQͨÐÅ£¬ÒòΪÒÔǰûÓÐÕû¹ýMQ£¬ËùÒÔ¶ÔÓÚÎÒÀ´ËµºÜİÉú¡£ÔÚÍøÉÏÒ²²é¿´ÁËһЩ¾­Ñ飬ÔÙ¼ÓÉϸöÈ˵Äʵ¼ù£¬Ð¡×ܽáÈçÏ£º
     MQµÄ°²×°°üÊÇISO£¬ËùÒÔÐèÒª½«ISOÎļþmountµ½LinuxµÄÒ»¸öĿ¼ÏÂÃæ£¬¾ßÌå²Ù×÷ÈçÏ£º
     ¼ÙÈçÄãÑ¡¶¨µÄmountÄ¿ ......

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


Îå¡¢ ipt_do_table()º¯Êý£¬Êý¾Ý°üµÄ¹ýÂË
 
5.1          ipt_entry Ïà¹Ø½á¹¹  ip_tables.h
ipt_entry½á¹¹Ç°ÃæÓйýÁË£¬ÔÙ¿´Ò»±é
struct ipt_entry
{
struct ipt_ip ip;
/* ËùҪƥÅäµÄ±¨ÎĵÄIPÍ·ÐÅÏ¢ */
unsigned int nfcache;
/* λÏòÁ¿£¬±êʾ±¾¹æÔò¹ØÐÄ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ