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

ÔÚlinuxϲéѯ·ÓÉ

ÔÚlinux²éѯ·Óɵķ½·¨ÓкܶàÖÖ¡£ÏÂÃæ½éÉÜÒ»ÖÖ´Óiproute¿ªÔ´Èí¼þÖÐÌáÈ¡³öÀ´µÄÒ»ÖÖ·½·¨¡£ÔÚubuntu904ϱàÒ룬ÔËÐÐͨ¹ý¡£
±àÒë: gcc -o reqroute iproute_linux.c
ʹÓÃ: ./reqroute 1.2.3.4
½á¹û:source:1.3.4.5
       Gateway:192.168.1.3
       Dev:eth0
Ô´´úÂëÈçÏ£º
iproute_linux.h
typedef unsigned char __u8;
typedef short __s16;
typedef unsigned int __u32;
typedef struct{
 __u8 family;
 __u8 bytelen;
 __s16 bitlen;
 __u32 flags;
 __u32 data[8];
} inet_prefix;
static struct{
 int tb;
 int cloned;
 int flushed;
 char *flushb;
 int flushp;
 int flushe;
 struct rtnl_handle *rth;
 int protocol, protocolmask;
 int scope, scopemask;
 int type, typemask;
 int tos, tosmask;
 int iif, iifmask;
 int oif, oifmask;
 int realm, realmmask;
 inet_prefix rprefsrc;
 inet_prefix rvia;
 inet_prefix rdst;
 inet_prefix mdst;
 inet_prefix rsrc;
 inet_prefix msrc;
} filter;
struct dn_naddr{
        unsigned short a_len;
        unsigned char a_addr[20];
};
struct ipx_addr {
 u_int32_t ipx_net;
 u_int8_t  ipx_node[6];
};
struct idxmap{
 struct idxmap * next;
 unsigned index;
 int  type;
 int  alen;
 unsigned flags;
 unsigned char addr[20];
 char  name[16];
};
struct rtnl_handle{
 int   fd;
 struct sockaddr_nl local;
 struct sockaddr_nl peer;
 __u32   seq;
 __u32   dump;
};
ÁíÒ»¸öÎļþ£º
iproute_linux.c
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <syslog.h>
#include <fcntl.h>
#include <string.h>
#include <time.h>
#include <sys/time.h>
#includ


Ïà¹ØÎĵµ£º

/etc/hosts file in linux configure manual

Name
hosts - The static table lookup for host names
Synopsis
/etc/hosts
Description
This manual page describes the format of the /etc/hosts
file. This file is a simple text file that
associates IP addresses with hostnames, one line per IP address. For
each host a single line should be presen ......

linux ³£ÓõĻù±¾ÏµÍ³Êý¾ÝÀàÐÍ

       caddr_t //ºËÐĵØÖ·
clock_t //ʱÖӵδð¼ÆÊýÆ÷
compt_t //ѹËõµÄʱÖӵδð
dev_t //É豸ºÅ£¨Ö÷ºÍ´Î£©
fd_set //ÎļþÃèÊö·û¼¯
fpos_t //ÎļþλÖÃ
gid_t //ÊýÖµ×éID
ino_t //i½Úµã±àºÅ
mode_t //ÎļþÀ ......

Linux ubuntuÉèÖÃrootÃÜÂë

Ubuntu 7.10
ÔÚ°²×°Ê±£¬Ã»ÓÐÉèÖÃrootÃÜÂ룬ËùÒÔÕâ¾Í±ØÐëÔÚ°²×°Íê³ÉºóÉèÖà ÃüÁîÈçÏ£º
$ sudo passwd root
ÊäÈëÄãÏ£ÍûµÄrootÓû§µÄÃÜÂë
ÆäËüÃüÁ
Ò»¡¢°²×°Grub
$ grub
$ find /boot/grub/stage1
(hd0,*)
$ root (hd0,*)
$ setup (hd0,*)
$ quit
$ sudo dd if=/de ......

linux frame buffer grab

linuxµÄÇý¶¯¾ÍÊǸö×Ö·ûÉ豸£¬¿ÉÒÔÓÃread write ioctl mmap²Ù×÷£¬Í¨¹ý/dev/fbx¿ÉÒÔÏñÎļþÒ»ÑùÖ±½Ó¶Áд
½ØÆÁdd if=/dev/fb0 of=snapshot
»Ö¸´cat snapshot > /dev/fb0
¿ªÔ´µÄÓÐfbgrab¹¤¾ß£¬²»¹ýÊÇÉú³ÉpngÎļþ£¬ÎÒ×Ô¼ºÐ´ÁËÒ»¸öÉú³ÉbmpÎļþµÄ¹¤¾ß½Ðfbcap£¬Â¼ÖƳÉavi¸ñʽ£¬Í¨¹ýsocket»òserial°ÑÉ豸µÄ²Ù×÷·¢Ë͵½hostÉÏ£º£ ......

WINDOWS XPÏÂÓÃgrub_for_dos´ÓÓ²Å̰²×°FC6(linux)

 
·ÖÀࣺ²Ù×÷ϵͳ¼¼ÇÉ
windows
ϵͳͨ¹ý
GRUB
for dos Ó²Å̰²×°
FC6
Fedora
Core 6
ÕâÀï¸ø¸ögrub for
dos µÄÏÂÔØµØÖ·£º
http://nchc.dl.sourceforge.net/sourceforge/grub4dos/grub_for_dos-0.4.1.zip
½âѹ·ÅÈëC:ÅÌ
ÆäÖÐÁ½¸öÎļþ×îÖØÒª,°ÑËûÃǶ¼·ÅÔÚC:¸ùĿ¼Ï£º
1.C:\boot\grub
2.°Ñ grldr ·ÅÈë C: ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ