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

4.1. Introduction to Linux Routing


4.1. Introduction to Linux Routing
The design of IP routing allows for very simple route definitions for small networks, while not hindering the flexibility of routing in complex environments. A key concept in IP routing is the ability to define what addresses are locally reachable as opposed to not directly known destinations. Every IP capable host knows about at least three classes of destination: itself, locally connected computers and everywhere else.
Most fully-featured IP-aware networked operating systems (all unix-like operating systems with IP stacks, modern Macintoshes, and modern Windows) include support for the loopback device and IP. This is an IP and range configured on the host machine itself which allows the machine to talk to itself. Linux systems can communicate over IP on any locally configured IP address, whether on the loopback device or not. This is the first class of destinations: locally hosted addresses.
The second class of IP addresses are addresses in the locally connected network segment. Each machine with a connection to an IP network can reach a subset of the entire IP address space on its directly connected network interface.
All other hosts or destination IPs fall into a third range. Any IP which is not on the machine itself or locally reachable (i.e. connected to the same media segment) is only reachable through an IP routing device. This routing device must have an IP address in a locally reachable IP address range.
All IP networking is a permutation of these three fundamental concepts of reachability. This list summarizes the three possible classifications for reachability of destination IP addresses from any single source machine.
The IP address is reachable on the machine itself. Under linux this is considered scope host and is used for IPs bound to any network device including loopback devices, and the network range for the loopback device. Addresses of this nature are called local IPs or locally hosted IPs.
T


Ïà¹ØÎĵµ£º

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

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

LinuxÉ豸ģÐÍÖ®input×ÓϵͳÏê½â

Ò»£ºÇ°ÑÔ
×î½üÔÚÑо¿androidµÄsensor driver£¬Ö÷ÒªÊÇE-compass£¬ÆäÖÐÓõ½ÁËLinux input×Óϵͳ.ÔÚÍøÉÏÒ²¿´Á˺ܶàÕâ·½ÃæµÄ×ÊÁÏ£¬¸Ð¾õ»¹ÊÇÕâƪ·ÖÎöµÄ±È½ÏϸÖÂ͸³¹£¬Òò´ËתÔØÒ»ÏÂÒÔ±ã×Ô¼ºÑ§Ï°£¬Í¬Ê±ºÍ´ó¼Ò·ÖÏí£¡
£¨Õâƪ²©¿ÍÖ÷ÒªÊÇÒÔ¼üÅÌÇý¶¯ÎªÀýµÄ£¬²»¹ý½²½âµÄÊÇLinux Input Subsystem£¬¿ÉÒÔ×ÐϸµÄÑо¿Ò»Ï£¡£©
¼üÅÌÇý¶¯½«¼ì ......

linuxÖеĶ¯¾²Á´½Ó¿â

Éú³É¾²Ì¬¿â£º
¡¡¡¡¼ÙÈçÓÐÎļþ¡¡¡¡main.c¡¢1.c¡¢2.c    ½«1.cºÍ2.cÉú³ÉÒ»¸ö¾²Ì¬¿âµÄ·½·¨Îª£¬±àдMakefile£º
¡¡¡¡¡¡mylib.a:1.c 2.c
¡¡¡¡ ¡¡¡¡¡¡¡¡$(CC) -c $<¡¡¡¡¡¡¡¡# $<±íʾËùÓÐ×îеÄÒÀÀµÏÈôûÓоɵÄÔòÊÇÈ«²¿ÒÀÀµÏî
¡¡¡¡¡¡¡¡¡¡¡¡ ar crv  libmy.a 1.o 2.o¡¡¡¡¡¡# 1.o 2.oΪ1.cºÍ2. ......

Moto LinuxÓ¦Óÿª·¢£¨ËÄ£©£ºA1200¹Ù·½SDK

½ñÌìÖÕÓÚÄõ½moto¹Ù·½SDK£¬ÊÇfor A1200µÄ£¬°üÀ¨toolchianºÍEZX¿â¼°Í·Îļþ£¬¸ÃSDKÒ²ÊÊÓÃÓÚmoto E6. °´ÕÕ°²×°Ö¸µ¼Îĵµ°²×°ºÃSDK²¢Ö´Ðнű¾ÉèÖúû·¾³±äÁ¿ºó£¬Ê×ÏÈÊÇbuildÒ»¸ö×î¼òµ¥µÄsample³ÌÐòhello£¬ÒÔÑéÖ¤SDKÊÇ·ñ°²×°ÕýÈ·¡£ÔËÐÐqmakeÈ´³öÏÖÈçÏ´íÎó£º
~/workspace/devtools/moto-sdk/sample/gui/hello$ qmake hello.pro&n ......

LinuxÓëwindows C++¿ª·¢Òìͬ


1) Ê¹ÓõĿⲻͬ¡£windowsÏÂͼÐοª·¢Ò»°ãÓÃ΢ÈíµÄMFC»ò.net¿â£¬¶øLinuxÏÂÔò³£ÓÃqt¿â¡£C/C++ͨÓÿ⣨c¿â£¬STL¿â£©µÄ½Ó¿ÚÏàͬ£¬µ«ÄÚ²¿ÊµÏÖ²»Í¬¡£
2) ±àÒëÆ÷²»Í¬¡£windowsÏÂÓõÄÊÇ΢Èí±àÒëÆ÷VC»ò.net£¬¶øLinuxÏÂÔòÓÃgcc¡£
3) ¿ª·¢»·¾³²»Í¬¡£windowsµÄ±àÒëÆ÷×Ô¶¯Éú³Émakefile£¬¶øLinuxÔòÐèÒªÊÖ¶¯±àдmakefil ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ