ÁíÒ»¸öLinuxÉ豸¹«Ë¾Òѱ»ÊÕ¹º
ij¸öÈÕ¼ûÖØÒªµÄÍøÂçоƬ¹«Ë¾¼´½«ÊÕ¹ºÒ»¼Ò×îÔçµãÉÌÒµ»¯Ç¶ÈëʽLinux µÄ¹«Ë¾¡£ Cavium ¹«Ë¾ÒÑͬÒâÖ§¸¶5000 ÍòÃÀÔª¸øÒѾ¶ÀÁ¢ÔËÐÐÊ®ÄêÖ®¾ÃµÄ MontaVista ¹«Ë¾¡£
ÕâÊǽñÄêµÚ¶þÀýǶÈëʽLinux ²Ù×÷ϵͳ¡¢¹¤¾ß¼°·þÎñÊг¡µÄ²¢¹º°¸Àý¡£µÚÒ»ÀýÊÇÔÚ½ñÄêÎåÔ£¬µ±Ê±Ó¢Ìضû»¨·Ñ 88400 ÍòÃÀÔªÊÕ¹º Wind River ϵͳ¹«Ë¾¡£ÈçͬWind River ÊÕ¹º°¸Ò»Ñù£¬ MontaVista ¹«Ë¾Éù³ÆÊÕ¹ººó½«±£ÁôÆäÉ̱êÃû³Æ£¬²¢¼ÌÐø¶ÀÁ¢ÔËÐС£
ËÊÇ Cavium £¿
CaviumÊÇ»ùÓÚ MIPS64 ¼Ü¹¹¿Í»§ÑÜÉú°æ×îÖªÃûµÄ¶àºËÍøÂç´¦ÀíÆ÷³§ÉÌ¡£ÆäÆì½¢²úÆ· Octeon ´¦ÀíÆ÷¼Ò×å°üº¬µ¥ºËµ½Ê®ÁùºËµÈ¸÷ÖÖģʽ£¬ÆäÈí¼þ¼æÈÝÐÔºá¿çÕâЩƽ̨¡£×ÔÍøÂç½øÈëµ½ËùÓеÄÐÎʽºÍ´óСºó£¬ÕâÊÇÒ»¸ö¾Þ´óµÄÂôµã¡£ÔÚ´óÐÍÍøÂçµ±ÖУ¬ ÈçµçÐÅ»ù´¡ÉèÊ©£¬¸ßÃܶȺ͵ÍÄܺÄ/ ζȽáºÏ¶àºË¼Ü¹¹ÊÇÁíÒ»´óÁÁµã¡£½õÉÏÌí»¨µÄÊÇ£¬ Cavium µÄоƬ ³£»áÌṩºÜ¶à¶¨ÖÆÓ²¼þÒýÇæ £¬ÀýÈç´ÓÖ÷CPU ÖÐжÏ TCP/IP ´¦Àí¡¢¼ÓÃܺʹ洢´¦ÀíÈÎÎñ¡£
Cavium ±³ÒÀÂíÈøÖîÈûÖÝ£¬Éù³ÆÆä°ìÊ´¦Ëù¹ÍÓ¶µÄÖ÷Òª¹¤³Ìʦ¶¼ÊÇÀ´×Ô´ÓÇ°DEC ¹«Ë¾´«ËµÖÐµÄ Alpha оƬÍŶӡ£¸Ã¹«Ë¾Ò²±£ÁôÁË´óÁ¿Ó¡¶ÈµÄÑз¢»ú¹¹¡£
ËÊÇ MontaVista £¿
MontaVista ÔÚ“õçõÇѧ²½”Öгɹ¦µØ×ß¹ýÁ˹ýȥʮÄê¡£2003 Ä꣬ÔÚǶÈë Linux µÄ³õÆÚ£¬¾³£ÓÐÈËÔÚ½«¸Ã¹«Ë¾ÁÐÈ듶¥¼¶Ë½È˳ֹɵĹ«Ë¾”Ãûµ¥£¬Í¬Ê±ºÜ¶à²úÒµ¹Û²ì¼ÒÒ²ÍƲâÆä¼´½«“ÉÏÊД¡£ÕâЩÄêÀ´£¬´«ÎÅÓÐÒâ²ÎÓëÕß»¹°üÀ¨ÁËĦÍÐÂÞÀ¡¢ Sun ¡¢ Enea ºÍ RedHat µÈµÈ¡£
MontaVista¹«Ë¾¸ºÔðÈË×ÜÊÇŬÁ¦µØÌá¸ßÀûÈóÂÊ£¬´Ó²»¸ß̸À«ÂÛÔ¤²â“ÕýÏòÏÖ½ðÁ÷”Ä¿±ê¡£¾¡¹ÜÈç´Ë£¬¸Ã¹«Ë¾»¹ÊÇ˳ÀûµÃµ½×ÊÖú¡£Èç¹ûÎÒûÓÐ¼Ç´í£¬ÕâÊǼ¸ÄêÇ°Ò»¸ö“ K ”ÂÖ£¨£¡£©¡£
ͬʱ£¬MontaVista ¹«Ë¾¹¤³ÌʦÃǵÄÑз¢È¡µÃÁËÁîÈËÐÀϲµÄ³É¹¦¡£ËûÃÇ·¢²¼µÄ Linux ¶ÑÕ»¼¸ºõÓÃÓÚËùÓÐÔçÆÚ Linux ÊÖ»ú£¬°üÀ¨Ä¦ÍÐÂÞÀ¡¢ËÉÏ¡¢ NEC ¡¢ÈýÐǵÈÆ·ÅÆ¡£ÔÚÐéÄâ²úÆ·ÏßµÄÄ©¶Ë£¬´Ó 2003 ÄêÆ𣬠MontaVista ¹«Ë¾¿ªÊ¼Ñз¢µçÐż¶ Linux ¡£¸Ã¹«Ë¾»¹´óÁ¦·¢Õ¹Ïû·Ñµç×Ó¡¢ÊµÊ± / ¹¤Òµ¡¢¾üÊ / º½¿ÕºÍÆóÒµ¼¶ÍøÂç´òÓ¡²Ù×÷ϵͳÊг¡¡£
×î½ü¼¸Ä꣬MontaVista ¹«Ë¾Óë Wind River ¹«Ë¾µÄÕýÃ澺ÕùÔ½À´Ô½¶à£¬¸÷¹«Ë¾¶¼ÔÚ»®·ÖLinux ºÍ VxWorks RTOS £¨ÊµÊ±²Ù×÷ϵͳ£©µÄרÓÐȨ¡£²»¹ýÏÖÔÚ£¬ Wind River ¹«Ë¾ÓëÓ¢Ìضû¹«Ë¾µÄºÏ×÷¸øÁËMontaVista ¹«Ë¾¹ÜÀíÈËÔ±Ò»¸ö×îºó³·³ö²ßÂԵijɹ¦·¶Àý¡£
MontaVista¹«Ë¾ºÜ¶à³¤ÆÚÊܼ尾µÄͶ×ÊÕߺ͹ɶ«Ó¦¸Ã¿ÉÒÔËÉÒ»¿ÚÆøÁË¡£ÁíÒ»·½Ã棬ÕâЩÄêÀ´¹«Ë¾
Ïà¹ØÎĵµ£º
£¨L2CAPÐÒé¼ò½é£¬L2CAPÔÚBlueZÖеÄʵÏÖÒÔ¼°L2CAP±à³Ì½Ó¿Ú£©
Ò»£ºL2CAPÐÒé¼ò½é£º
Logical Link Control and Adaptation Protocol(L2CAP)
Âß¼Á¬½Ó¿ØÖƺÍÊÊÅäÐÒé (L2CAP) ΪÉϲãÐÒéÌṩÃæÏòÁ¬½ÓºÍÎÞÁ¬½ÓµÄÊý¾Ý·þÎñ£¬²¢Ìṩ¶àÐÒ鹦ÄܺͷָîÖØ×é²Ù×÷¡£L2CAP ³äÐíÉϲãÐÒéºÍÓ¦ÓÃÈí¼þ´«ÊäºÍ½ÓÊÕ×î´ó³¤¶ÈΪ 64K µÄ L2CAP Ê ......
Service Discovery Protocol(SDP)ÌṩһÖÖÄÜÁ¦£¬ÈÃÓ¦ÓóÌÐòÓз½·¨·¢ÏÖÄÄÖÖ·þÎñ¿ÉÓÃÒÔ¼°ÕâÖÖ·þÎñµÄÌØÐÔ¡£
·þÎñ·¢ÏÖÐÒé(SDP»òBluetooth SDP)ÔÚÀ¶ÑÀÐÒéÕ»ÖжÔÀ¶ÑÀ»·¾³ÖеÄÓ¦ÓóÌÐòÓÐÌØÊâµÄº¬Ò⣬·¢ÏÖÄĸö·þÎñÊÇ¿ÉÓõĺÍÈ·¶¨ÕâЩ¿ÉÓ÷þÎñµÄÌØÕ÷¡£SDP¶¨ÒåÁËbluetooth client·¢ÏÖ¿ÉÓÃbluetooth server·þÎñºÍËüÃǵÄÌØÕ÷µÄ·½·¨¡£ ......
ronÊÇÒ»¸ölinuxϵĶ¨Ê±Ö´Ðй¤¾ß£¬¿ÉÒÔÔÚÎÞÐèÈ˹¤¸ÉÔ¤µÄÇé¿öÏÂÔËÐÐ×÷Òµ¡£ÓÉÓÚCron ÊÇLinuxµÄÄÚÖ÷þÎñ£¬µ«Ëü²»×Ô¶¯ÆðÀ´£¬¿ÉÒÔÓÃÒÔϵķ½·¨Æô¶¯¡¢¹Ø±ÕÕâ¸ö·þÎñ:
¡¡¡¡/sbin/service crond start //Æô¶¯·þÎñ
¡¡¡¡/sbin/service crond stop //¹Ø±Õ·þÎñ
¡¡¡¡/sbin/service crond restart //ÖØÆô·þÎñ
¡¡¡¡/sbin/service crond ......
1.1.1 iptablesÔÀí
1.1.2 ÒÔ±¾µØΪԴµÄ°ü·¾¶
Step
Table
Chain
Comment
1
±¾µØ³ÌÐò£¨±ÈÈ磬·þÎñ³ÌÐò»ò¿Í»§³ÌÐò£©
2
·ÓÉÅжϣ¬ÒªÊ¹ÓÃÔ´µØÖ·£¬Íâ³ö½Ó¿Ú£¬»¹ÓÐÆäËûһЩÐÅÏ¢¡£
3
mangle
OUTPUT
ÔÚÕâ¶ù¿ÉÒÔmangle°ü¡£½¨Òé²»ÒªÔÚÕâ¶ù×ö¹ýÂË£¬¿ ......
/*
×¢Ò⣺
Õâ´ÎÖ÷Òª¸ÄÁ˺¯Êýsend_tcpÀïµÄ´úÂ룬¾ÉµÄ´úÂëÔÚÌî³äip°üʱÓÐÎÊÌâ¡£
*/
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/ip.h>
#include <netinet/tcp.h>
#include <stdlib.h>
#include <errno.h>
#include <unistd.h>
#include <st ......