资源简介
在linux先安装sebek往往缺少这个内核文件,内核版本2.6.18
代码片段和文件信息
/*
* INET An implementation of the TCP/IP protocol suite for the LINUX
* operating system. INET is implemented using the BSD Socket
* interface as the means of communication with the user level.
*
* PACKET - implements raw packet sockets.
*
* Version: $Id: af_packet.cv 1.61 2002/02/08 03:57:19 davem Exp $
*
* Authors: Ross Biro
* Fred N. van Kempen
* Alan Cox
*
* Fixes:
* Alan Cox : verify_area() now used correctly
* Alan Cox : new skbuff lists look ma no backlogs!
* Alan Cox : tidied skbuff lists.
* Alan Cox : Now uses generic datagram routines I
* added. Also fixed the peek/read crash
* from all old Linux datagram code.
* Alan Cox : Uses the improved datagram code.
* Alan Cox : Added NULL‘s for socket options.
* Alan Cox : Re-commented the code.
* Alan Cox : Use new kernel side addressing
* Rob Janssen : Correct MTU usage.
* Dave Platt : Counter leaks caused by incorrect
* interrupt locking and some slightly
* dubious gcc output. Can you read
* compiler: it said _VOLATILE_
* Richard Kooijman : Timestamp fixes.
* Alan Cox : New buffers. Use sk->mac.raw.
* Alan Cox : sendmsg/recvmsg support.
* Alan Cox : Protocol setting support
* Alexey Kuznetsov : Untied from IPv4 stack.
* Cyrus Durgin : Fixed kerneld for kmod.
* Michal Ostrowski : Module initialization cleanup.
* Ulises Alonso : frame number limit removal and
* packet_set_ring memory leak.
* Eric Biederman : Allow for > 8 byte hardware addresses.
* The convention is that longer addresses
* will simply extend the hardware address
* byte arrays at the end of sockaddr_ll
* and packet_mreq.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License or (at your option) any later version.
*
*/
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include “sebek.h“
#ifdef CONFIG_INET
#include
#endif
#define CONFIG_SOCK_PACKET 1
/*
Proposed replacement for SIOC{ADDDEL}MULTI and
IFF_PROMISC IFF_ALLMULTI flags.
It is more expensive but I believe
- 上一篇:基于B/S在线考试系统概要设计说明文档
- 下一篇:制作含qt的图形文件系统完整过程
评论
共有 条评论