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·¢Ðа涼֧³ÖUTF-8±àÂ룬µ±Ç°ÏµÍ³µÄÓïÑÔºÍ×Ö·û±àÂëÉèÖñ£´æÔÚһЩ»·¾³±äÁ¿ÖУ¬¿ÉÒÔͨ¹ýlocaleÃüÁî²é¿´£º
$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPE ......
GTK
----------------------------------------------
GTK(GIMP-The GNU Image Manipulation Program[ͼÐαà¼Èí¼þ]¹¤¾ßÏ䣬GIMP
ToolKit)ÊÇÒ»¸ö¹¦ÄÜÇ¿´ó¶øÇÒ¿ì½ÝµÄ¿ª·ÅÔ´ÂëͼÐο⣬ÓÃÓÚUNIX/LinuxÉϵÄXWindowϵͳ£¬³ÌÐòÔ±¿ÉÒÔÓÃÀ´´´½¨°´Å¥¡¢²Ëµ¥¼°ÆäËüͼÐζÔ
Ïó£¬GTK×î³õÊÇGIMPµÄרÓÿª·¢¿â£¬ºóÀ´· ......
ÀûÓô®¿ÚÖÕ¶Ë×÷ΪLinux¿ØÖÆ̨£¬¿ÉÒÔÃâÈ¥¶îÍâµÄ¼üÅÌ£¬ÏÔʾ¿¨ºÍÏÔʾÆ÷£¬Í¬Ê±¿É½«LinuxÖ÷»ú×÷Ϊһ¸öÈÎÒâÓÃ;µÄǶÈëʽºÚÏ»¡£ ½«´®¿ÚÖÕ¶ËÁ¬½Óµ½¼ÆËã»úµÄ´®¿ÚÉϲ¢²»À§ÄÑ£¬¿ÉÒԲο¼LinuxµÄHOWTOÎĵµºÍÒÔ¼°inittabºÍagettyµÄ°ïÖúÐÅÏ¢¡£ÕâÀï¶óÒªµØ˵һÏ¡£
¡¡¡¡Ê×ÏÈ£¬×¼±¸ºÃÒ»¸ùnull modem µçÀÂ.
¡¡¡¡Æä´Î£¬ÔÚÎļþ/etc/inittab Ôö¼ ......
#!/bin/bash
yesterday=`date -d -1days "+%Y%m%d"`
cd /home/www/zdyzlog/
zgrep -P '.*CopyRightId\[A00009042202\].*ʵʱ²ßÂÔ¿ªÊ¼.*' /home/appusr/resin-3.0.18/log/log4j_daily_drmThreeWebService.log.$yesterday.gz >> /home/www/zdyzlog/zhongduancelivkaishi_$yesterday.txt
zgr ......