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

linuxÏÂд³ÌÐò¼ì²âip³åÍ»(ARP)

Ô­ÀíÆäʵºÜ¼òµ¥£¬ÄǾÍÊǹ㲥һ¸öarp°ü£¬È»ºórecv£¬Èç¹ûûÓÐÊý¾Ý(ÕâÀïÒªÉèÖÃÑÓʱ)£¬ÄÇô˵Ã÷Õâ¸öipÊÇ¿ÉÓõ쬷ñÔò¾Í¼ì²âÕâ¸öÊý¾ÝÊÇ·ñΪ»Ø¸´ÎÒÃÇ·¢³öµÄarpµÄÓ¦´ð°ü.Èç¹ûÊÇÔòÖ¤Ã÷ipÒѱ»Ê¹Ó㬷ñÔò¼ÌÐøµÈ´ý.
ÕâÀï¿ÉÒÔ¿´ÏÂbusyboxµÄdhcpÖеļì²â³ÌÐò¡£
networking/udhcp/arpping.c
C´úÂë
/* vi: set sw=4 ts=4: */  
/*  
 * arpping.c  
 *  
 * Mostly stolen from: dhcpcd - DHCP client daemon  
 * by Yoichi Hariguchi <yoichi@fore.com>  
 */  
  
#include <netinet/if_ether.h>   
#include <net/if_arp.h>   
  
#include "common.h"   
#include "dhcpd.h"   
  
//ÕâÀïÊÇarp°üµÄ¸ñʽ,ÆäÖеÄÊý¾Ý¸ñʽ¶¼ÊǺêÁË£¬±ÈÈçuint_8_tΪÎÞ·ûchar.   
struct arpMsg {   
    /* Ethernet header */  
    uint8_t  h_dest[6];     /* 00 destination ether addr */  
    uint8_t  h_source[6];   /* 06 source ether addr */  
    uint16_t h_proto;       /* 0c packet type ID field */  
  
    /* ARP packet */  
    uint16_t htype;         /* 0e hardware type (must be ARPHRD_ETHER) */  
    uint16_t ptype;         /* 10 protocol type (must be ETH_P_IP) */  
    uint8_t  hlen;   &nb


Ïà¹ØÎĵµ£º

ʵս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Çý¶¯¿ª·¢Ñ§Ï°µÄһЩ±ØÒª²½Öè

 1. ѧ»áд¼òµ¥µÄmakefile
2. ±àһЩӦÓÃ
³ÌÐò
£¬¿ÉÒÔÓÃmakefileÅÜÆðÀ´
3. ѧ»áдÇý¶¯
µÄmakefile
4. дһ¼òµ¥charÇý¶¯£¬makefile±àÒëͨ¹ý£¬¿ÉÒÔinsmod£¬ lsmod£¬ rmmod. ÔÚÇý¶¯µÄinitº¯ÊýÀï´òÓ¡hello world£¬insmodºóÓ¦¸ÃÄܹ»Í¨¹ýdmesg¿´µ½Êä³ö
¡£
5. дһÍêÕûÇý¶¯£¬ ¼ÓÉÏread£¬ write£¬ ioctl£¬ pollingµÈ¸ ......

LinuxÏÂÎļþ¼Ð²Ù×÷³£ÓÃÃüÁî

1.ɾ³ýÎļþ¼ÐÓãºrmdir Îļþ¼ÐÃû
  µ«ÊÇrmdir²»ÄÜɾ³ý·Ç¿ÕµÄÎļþ¼Ð£¬ÄÇÈçºÎɾ³ý·Ç¿ÕÎļþ¼ÐÄØ£º
2.ͨ³£Çé¿öÏ£¬É¾³ýÎļþÓãºrm ÎļþÃû
   -d»ò--directory ¡¡Ö±½Ó°ÑÓûɾ³ýµÄĿ¼µÄÓ²Á¬½ÓÊý¾Ýɾ³É0£¬É¾³ý¸ÃĿ¼¡£ 
¡¡-f»ò--force ¡¡Ç¿ÖÆÉ¾³ýÎļþ»òĿ¼¡£ 
¡¡-i»ò--interactive  ......

[Linux]GNU×Ô¶¯»¯¹¤¾ß£¨automake¹¤¾ßÁ´£©


 
Filename
£º
[Linux]GNU
×Ô¶¯»¯¹¤¾ß£¨
automake
¹¤¾ßÁ´£©
Version
£º
V1.0
Date
£º
12/01/2009
Author
£º
S.C.Leon <leonsc@126.com>
=====================================================================
GNU
×Ô¶¯»¯¹¤¾ß£¨
automake
¹¤¾ßÁ´£©
Ò»¡¢
Makefile
½éÉÜ
Makefile
ÊÇ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ