实例介绍
libnet是一个小型的接口函数库,主要用C语言写成,提供了低层网络数据包的构造、处理和发送功能。libnet的开发目的是:建立一个简单统一的网络编程接口以屏蔽不同操作系统底层网络编程的差别,使得程序员将精力集中在解决关键问题上。 该源码包已经经过测试,可正常使用!
【实例截图】
【核心代码】
libnet-1.0.2a.tar
└── Libnet-1.0.2a
├── acconfig.h
├── acinclude.m4
├── aclocal.m4
├── config.guess
├── config.sub
├── config.sub-new
├── configure
├── configure.in
├── doc
│ ├── Ancillary
│ │ ├── README.asn.1
│ │ ├── README.bpf
│ │ ├── README.legacy-applications
│ │ ├── README.libnet-config
│ │ ├── README.linux
│ │ └── README.rawsockets
│ ├── CHANGELOG
│ ├── CHANGELOG-NEWFUNCTIONS
│ ├── COPYING
│ ├── libnet.3
│ ├── README
│ ├── TODO-1.0
│ └── TODO-1.1
├── ensure-dir.sh
├── example
│ ├── libnet-example-1.c
│ ├── libnet-example-2.c
│ ├── libnet-example-3.c
│ ├── libnet-example-4.c
│ └── Makefile.in
├── include
│ ├── bpf.h
│ ├── config.h.in
│ ├── gnuc.h
│ ├── ifaddrlist.h
│ ├── libnet
│ │ ├── libnet-asn1.h
│ │ ├── libnet-functions.h
│ │ ├── libnet-headers.h
│ │ ├── libnet-macros.h
│ │ ├── libnet-ospf.h
│ │ └── libnet-structures.h
│ └── libnet.h
├── install-sh
├── libnet-config.in
├── Makefile.in
├── misc
│ └── libnet.s2h
├── ports
│ ├── Linux
│ │ └── Redhat-RPM
│ │ └── libnet.spec
│ └── OpenBSD-FreeBSD
│ └── Libnet
│ ├── files
│ │ ├── CVS
│ │ │ ├── Entries
│ │ │ ├── Repository
│ │ │ └── Root
│ │ └── md5
│ ├── Makefile
│ ├── patches
│ │ └── CVS
│ │ ├── Entries
│ │ ├── Repository
│ │ └── Root
│ ├── pkg
│ │ ├── COMMENT
│ │ ├── CVS
│ │ │ ├── Entries
│ │ │ ├── Repository
│ │ │ └── Root
│ │ ├── DESCR
│ │ └── PLIST
│ └── work
│ └── CVS
│ ├── Entries
│ ├── Repository
│ └── Root
├── README
├── src
│ ├── CVS
│ │ ├── Entries
│ │ ├── Repository
│ │ └── Root
│ ├── libnet_asn1.c
│ ├── libnet_build_arp.c
│ ├── libnet_build_dns.c
│ ├── libnet_build_ethernet.c
│ ├── libnet_build_icmp.c
│ ├── libnet_build_igmp.c
│ ├── libnet_build_ip.c
│ ├── libnet_build_ospf.c
│ ├── libnet_build_rip.c
│ ├── libnet_build_snmp.c
│ ├── libnet_build_tcp.c
│ ├── libnet_build_udp.c
│ ├── libnet_build_vrrp.c
│ ├── libnet_checksum.c
│ ├── libnet_error.c
│ ├── libnet_hex_dump.c
│ ├── libnet_if_addr.c
│ ├── libnet_insert_ipo.c
│ ├── libnet_insert_tcpo.c
│ ├── libnet_link_bpf.c
│ ├── libnet_link_dlpi.c
│ ├── libnet_link_nit.c
│ ├── libnet_link_pf.c
│ ├── libnet_link_snit.c
│ ├── libnet_link_snoop.c
│ ├── libnet_link_sockpacket.c
│ ├── libnet_packet_mem.c
│ ├── libnet_port_list.c
│ ├── libnet_prand.c
│ ├── libnet_resolve.c
│ ├── libnet_socket.c
│ ├── libnet_version.c
│ └── libnet_write_ip.c
├── support
│ └── bpf-lkm
│ ├── FreeBSD
│ │ ├── 4.0-ether.diff
│ │ ├── CVS
│ │ │ ├── Entries
│ │ │ ├── Repository
│ │ │ └── Root
│ │ ├── diff.if_ethersubr.c
│ │ ├── ether_mod.c
│ │ ├── ether_mod_load.c
│ │ ├── Makefile
│ │ └── README
│ └── OpenBSD
│ ├── configure.in
│ ├── CVS
│ │ ├── Entries
│ │ ├── Repository
│ │ └── Root
│ ├── ether_mod-2.4.c
│ ├── ether_mod-2.5.c
│ ├── ether_mod-2.6.c
│ ├── ether_mod-2.7.c
│ ├── ether_mod_load.c
│ ├── etherspoof-kernel-2.7.diff
│ ├── Makefile.in
│ └── README
├── test
│ ├── Ethernet
│ │ ├── arp.c
│ │ ├── CVS
│ │ │ ├── Entries
│ │ │ ├── Repository
│ │ │ └── Root
│ │ ├── get_address.c
│ │ ├── icmp_mask.c
│ │ ├── Makefile.in
│ │ ├── poink.c
│ │ └── tcp.c
│ ├── ICMP
│ │ ├── CVS
│ │ │ ├── Entries
│ │ │ ├── Repository
│ │ │ └── Root
│ │ ├── icmp_echo.c
│ │ ├── icmp_timestamp.c
│ │ ├── icmp_timexceed.c
│ │ ├── icmp_unreach.c
│ │ ├── Makefile.in
│ │ ├── ping_of_death.c
│ │ └── silvertongue.c
│ ├── IP
│ │ ├── CVS
│ │ │ ├── Entries
│ │ │ ├── Repository
│ │ │ └── Root
│ │ └── Makefile.in
│ ├── libnet_test.h
│ ├── Makefile.in
│ ├── OSPF
│ │ ├── CVS
│ │ │ ├── Entries
│ │ │ ├── Repository
│ │ │ └── Root
│ │ ├── Makefile.in
│ │ ├── ospf_hello.c
│ │ ├── ospf_lsa.c
│ │ └── ospf_request.c
│ ├── Random
│ │ ├── CVS
│ │ │ ├── Entries
│ │ │ ├── Repository
│ │ │ └── Root
│ │ ├── hook.c
│ │ ├── Makefile.in
│ │ └── prand_trials.c
│ ├── TCP
│ │ ├── CVS
│ │ │ ├── Entries
│ │ │ ├── Repository
│ │ │ └── Root
│ │ ├── Makefile.in
│ │ ├── syn-flood.c
│ │ ├── tcp.c
│ │ ├── tcp+data.c
│ │ └── tcp+data+ipopt.c
│ ├── test-step.sh
│ └── UDP
│ ├── CVS
│ │ ├── Entries
│ │ ├── Repository
│ │ └── Root
│ ├── Makefile.in
│ ├── udp.c
│ └── udp+data.c
├── util
│ ├── Get-mac
│ │ ├── get_mac.c
│ │ └── Makefile.in
│ ├── Makefile.in
│ └── README
└── VERSION
45 directories, 176 files
标签:
小贴士
感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。
- 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
- 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
- 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
- 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。
关于好例子网
本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明
网友评论
我要评论