00 02 2d 1d fa c0 00 06 25 ac 24 3c 88 8e 01 00 00 04 01 00 00 04 01 00 00 00 a0 62 fc b9 a1 2c 8c 57 88 9e 0d b3 e7 1e a3 13 00 00 00 00 00 00 00 00 01 d4 60 d5 82 b4 ce 35 59 5a 00 02 2d 1d fa c0eDestination MAC Address 00 06 25 ac 24 3ceSource MAC Address 88 8eePAE Ethernet Type 01eProtocol Version 00 ePacket Type 00 04ePacket Body Length 01eEAP-Packet Code 00eEAP-Identifier 00 04 eEAP-Length 01 eEAP-EAP Type 00 00 00 a0 62 fc b9 a1 2c 8c 57 88 9e 0d b3 e7 1e a3 13 00 00 00 00 00 00 00 00 01 d4 60 d5 82 b4 ce 35 59 5aeEAP-Type Data (2) EAPOL-Start(0x01)e EAPOL-Start,12bytesMAC Address,EAPOL0x888E Ethernet Type 00 06 25 ac 24 3c 00 02 2d 1d fa c0 88 8e 01 01 00 00 00 00 06 25 ac 24 3ceDestination MAC Address 00 02 2d 1d fa c0eSource MAC Address 88 8eePAE Ethernet Type 01eProtocol Version 01ePacket Type(0x01EAP-Start) 00 00ePacket Body Length EAPOL-LogOff(0x02)EAPOL, EAPOL-Key(0x03)Key EAPOL-Encapsulated-ASF-Alert(0x04. […]


sys_get_kernel_syms “struct kernel_sym *table”,User-ModeSystem Call,table0,table0,for for (mod = module_list, i = 0; […]


ABC VPNVirtual Prinate NetworkPPP SERVER () ()VPNVPNVPNPPTP(Point-to-Point Tunneling Protocol,RFC2637)VPN InternetVPN LinuxLinuxVPNVPNLinux ()Linux(LAN-to-LAN)LinuxVPN ServerKernel 2.4.17PPTP(Point-to-Point Tunneling Protocol)PPP(Point to Point Protocol)SSH(Secure Shell)ClientWindows 2000Windows 2000PCMS WindowsWindows 2000 ()LinuxVPN LinuxVPN ServerNAT (Network Address Translation)PPP2.4.17 * * Networking options * Network packet filtering (replaces ipchains) (CONFIG_NETFILTER) Network packet filtering debugging (CONFIG_NETFILTER_DEBUG) * *IP: Netfilter Configuration * Connection tracking (required for masq/NAT) (CONFIG_IP_NF_CONNTRACK) ( NEW) m FTP protocol support (CONFIG_IP_NF_FTP) (NEW) m IRC protocol support (CONFIG_IP_NF_IRC) (NEW) m IP tables support (required for filtering/masq/NAT) (CONFIG_IP_NF_IPTABLES) [N/y /m/?] (NEW) m limit match support (CONFIG_IP_NF_MATCH_LIMIT) (NEW) m MAC address match support (CONFIG_IP_NF_MATCH_MAC) (NEW) m netfilter MARK match support (CONFIG_IP_NF_MATCH_MARK) (NEW) m Multiple port match support (CONFIG_IP_NF_MATCH_MULTIPORT) (NEW) m TOS match support (CONFIG_IP_NF_MATCH_TOS) (NEW) m LENGTH match support (CONFIG_IP_NF_MATCH_LENGTH) (NEW) m TTL match support (CONFIG_IP_NF_MATCH_TTL) (NEW) m tcpmss match support (CONFIG_IP_NF_MATCH_TCPMSS) (NEW) m Connection state match support (CONFIG_IP_NF_MATCH_STATE) (NEW) m Packet filtering (CONFIG_IP_NF_FILTER) (NEW) m REJECT target support (CONFIG_IP_NF_TARGET_REJECT) (NEW) m Full NAT (CONFIG_IP_NF_NAT) (NEW) m MASQUERADE target support (CONFIG_IP_NF_TARGET_MASQUERADE) (NEW) m REDIRECT target support (CONFIG_IP_NF_TARGET_REDIRECT) (NEW) m Packet mangling (CONFIG_IP_NF_MANGLE) (NEW) m TOS target support (CONFIG_IP_NF_TARGET_TOS) (NEW) m MARK target support (CONFIG_IP_NF_TARGET_MARK) (NEW) m LOG target support (CONFIG_IP_NF_TARGET_LOG) (NEW) m TCPMSS target support (CONFIG_IP_NF_TARGET_TCPMSS) (NEW) m ipchains (2.2-style) support (CONFIG_IP_NF_COMPAT_IPCHAINS) (NEW) m ipfwadm (2.0-style) support (CONFIG_IP_NF_COMPAT_IPFWADM) (NEW) m * * Network device support * PPP (point-to-point protocol) support (CONFIG_PPP) m PPP support for async serial ports (CONFIG_PPP_ASYNC) (NEW) m PPP support for sync tty ports (CONFIG_PPP_SYNC_TTY) (NEW) m PPP Deflate compression (CONFIG_PPP_DEFLATE) (NEW) m PPP BSD-Compress compression (CONFIG_PPP_BSDCOMP) (NEW) m * * Kernel hacking * Kernel debugging (CONFIG_DEBUG_KERNEL) y …… […]


int MainDaemon(void *cpu_poing)MainDaemon0MainDaemon1QueueManagement DaemonMainDaemonint WaitForHeaders(CPUNR)(waitqueue_decode.bmp) int WaitForHeaders(CPUNR) 1.Http Request 2.kHttpdUser Mode Web Server int WaitForHeaders(CPUNR) 2DecodeHeader 4~8IsForUserSpace!=0UserspaceQueue 9~12IsForUserSpace==0DataSendingQueue static int DecodeHeader(const int CPUNR, struct http_request *Request) 2http 3URL 4Mime 5~10MimeUser Mode Web ServerIsForUserSpace 11~15URLUser Mode Web ServerIsForUserSpace 16~28kHttpdkHttpd 18~22cache 23~27ClientcacheClientcache (Request)MainDaemonint WaitForHeaders(CPUNR) 1.ClientcacheMainDaemon(stack_send_httpdheader.bmp)Send304()SendBuffer() 2.MainDaemonSendHTTPHeader(Request)HTTPDataSending(CPUNR)SendBuffer_async()(stack_send_httpheader.bmp) 3.MainDaemonint Userspace(const int CPUNR)User Mode Web Server int Userspace(const int CPUNR) 2AddSocketToAcceptQueueUser Mode Web Server 4User Mode Web Server 8~9User Mode Web ServerHttp static int AddSocketToAcceptQueue(struct socket *sock,const int Port) User Mode Web ServerUser Mode Web Server 4.kHttpd key inkHttpd(stop)(MainDaemon.bmp)sysctl_khttpd_stop1MainDaemon0MainDaemon1Management Daemonkey in(unload)(managementdaemon.bmp)Management Daemon 5. […]


LinuxLinux KernelLinux Kernel LinuxLinuxLinuxRAMDISKRAMDISKRAMDISK RAMDISK50%8MBFlashEmbedded QTSendMail ServerApache Server……16MB8MBFlashLinuxLinux16MBRAMDISK8MB Flash16MB RAMDISK16 MB8MBFlash LinuxCramFS CramFSLinus TorvaldsTransmetaLinux Kernel2.4.3Linux Kernellinux/fs/cramfsCramFSCramFSCramFSFlash CramFSRAMDISK8MBFlashFlashCramFSCramFSRAMDISKPII 350 RAMDISKCramFSRAMDISKRAMDISKLinux Kernel RAMDISK CramFSCramFSRAMDISK CramFS CramFSCramFS Compressed ROM file system support (CONFIG_CRAMFS) CramFSModuleCramFSLinux LinuxPDACramFSX86X86CramFSCramFS Linux linux/scripts/cramfsmkcramfs make mkcramfsmkcramfsLinuxCramFSCramFSmkcramfsSuperblock……CramFSCramFS CramFSCramFSSuperblock76 bytesCramFSinodecramfs_inode12 bytescramfs_inodecramfs_inode0x00 cramfs_inode + 4040cramfs_inode cramfs_inode + + cramfs_inode + + cramfs_inode + ……..CramFS CramFS CramFScheck_cramfsCramFScramfs_supercramfs_inodeSuperblockinode # ./check_cramfs /dev/hdc2 file len:835584 bytes size of superblock:76 bytes Suprtblock =============== magic:28cd3d45h size:10000h flags:0h future:0h signature: 43 6f 6d 70 72 65 73 73 C o m p r e s s 65 64 20 52 4f 4d 46 53 e d R O M F S fsid: 1b 27 36 d8 ce f2 43 f6 ‘ 6 C 0d 4c 90 17 09 b7 04 d4 L name: 43 6f 6d 70 72 65 73 73 C o m p r e s s 65 64 00 00 00 00 00 00 e d mode:41edh uid:0h size:188 gid:0h namelen:0 offset:19 mode:41edh uid:0h size:0 gid:0h namelen:3 offset:0 lost+found mode:41edh uid:0h size:1208 gid:0h namelen:1 offset:66 bin mode:45edh uid:0h size:3536 gid:f4h namelen:1 offset:368 dev mode:45edh uid:0h size:264 gid:f4h namelen:1 offset:1252 etc mode:41edh uid:0h size:184 gid:0h namelen:1 offset:1330 lib mode:a1ffh uid:0h size:9 gid:0h namelen:2 offset:163260 linuxrc mode:45edh uid:0h size:0 gid:f4h namelen:1 offset:0 proc mode:45edh uid:0h size:176 gid:f4h namelen:1 offset:1376 sbin mode:41edh uid:0h size:0 gid:0h namelen:1 offset:0 tmp mode:45edh uid:0h size:0 gid:f4h namelen:1 offset:0 usr mode:41edh uid:0h size:0 gid:0h namelen:1 offset:0 var magiccramfs.h #define CRAMFS_MAGIC 0x28cd3d45 magic0x28cd3d45size Superblockname C o m p r e s s e d Superblock struct cramfs_inode root; […]


LinuxLinuxLinuxLinuxLinuxLinuxLinux LinuxHAL Linux Hardware AbstractionLayer r LinuxHardware AbstractionLayer LinuxarchLinux # pwd /hal/linux/arch # ls alpha/ cris/ ia64/ mips/ parisc/ s390/ sh/ sparc64/ arm/ i386/ m68k/ mips64/ ppc/ s390x/ sparc/ # x86 i386 LinuxLinuxvmlinuxStrong ARM1110X86vmlinux i386 arch/i386/kernel/head.o arch/i386/kernel/init_task.o arch/i386/kernel/kernel.o arch/i386/mm/mm.o arch/i386/lib/lib.a lib/lib.a init/main.o init/version.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o drivers/block/block.o drivers/char/char.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/char/agp/agp.o drivers/char/drm/drm.o drivers/ide/idedriver.o drivers/cdrom/driver.o drivers/pci/driver.o drivers/pcmcia/pcmcia.o drivers/net/pcmcia/pcmcia_net.o drivers/pnp/pnp.o drivers/video/video.o net/network.o ARM arch/arm/kernel/head-armv.o arch/arm/kernel/init_task.o arch/arm/kernel/kernel.o arch/arm/mm/mm.o arch/arm/nwfpe/math-emu.o arch/arm/lib/lib.a lib/lib.a init/main.o init/version.o kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o drivers/block/block.o drivers/char/char.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/ide/idedriver.o drivers/sound/sounddrivers.o drivers/pcmcia/pcmcia.o drivers/net/pcmcia/pcmcia_net.o drivers/video/video.o drivers/usb/usbdrv.o net/network.o i386Strong ARMLinuxarchi386Strong ARM i386vmlinuxarch/i386/kernel/head.oarch/i386/kernel/init_task.oarch/i386/kernel/kernel.oarch/i386/mm/mm.oarch/i386/lib/lib.aStrong ARM 1110vmlinuxarch/arm/kernel/head-armv.oarch/arm/kernel/init_task.oarch/arm/kernel/kernel.oarch/arm/mm/mm.oarch/arm/nwfpe/math-emu.oarch/arm/lib/lib.aarchLinuxarch halLinuxLinux Windows 2000Windows2000hal.dll/winnt/systen32/hal.dllWindows 2000halhal.dll Windows 2000hal Linux Boxlibclibc Linux Linux LinuxCross-CompilerLinuxLinux ScriptRAMDISK Script MakeImagebaselinuxLinuxRAMDISKsyslinux.cfg Syslinux] # ls MakeImage* base/ linux* syslinux.cfg* # base # cd base # du 4.0k ./lost+found 92k ./bin 4.0k ./dev 12k ./etc/rc.d 72k ./etc 1.2M ./lib 4.0k ./proc 360k ./sbin 4.0k ./tmp 4.0k ./usr 4.0k ./var 1.8M . […]