資源簡介
在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的圖形文件系統完整過程
評論
共有 條評論