📄 522.htm
字号:
u_short orig_id, u_short orig_frag, <br>
u_char orig_ttl, u_char orig_prot, <br>
u_long orig_saddr, u_long orig_daddr, <br>
const u_char *payload, int payload_len <br>
, <br>
u_char *packet_buf); <br>
ICMP协议数据包(ICMP_TIMEXCEED): <br>
int libnet_build_icmp_timeexceed(u_char type, u_char code, <br>
u_short orig_len, u_char orig_tos, <br>
u_short orig_id, u_short orig_frag, <br>
<br>
u_char orig_ttl, u_char orig_prot, <br>
u_long orig_saddr, u_long orig_dadd <br>
r, <br>
const u_char *payload, int payload_ <br>
len, <br>
len, <br>
u_char *packet_buf); <br>
ICMP协议数据包(ICMP_REDIRECT): <br>
int libnet_build_icmp_redirect(u_char type, u_char code, u_long gate <br>
way, <br>
u_short orig_len, u_char orig_tos, <br>
u_short orig_id, u_short orig_frag, <br>
u_char orig_ttl, u_char orig_prot, <br>
u_long orig_saddr, u_long orig_daddr, <br>
<br>
const u_char *payload, int payload_le <br>
n, <br>
u_char *packet_buf); <br>
ICMP协议数据包(ICMP_TSTAMP / ICMP_TSTAMPREPLY): <br>
int libnet_build_icmp_timestamp(u_char type, u_char code, u_short id <br>
, <br>
u_short seq, n_time otime, n_time rt <br>
ime, <br>
n_time ttime, const u_char *payload, <br>
<br>
int payload_len, u_char *packet_buf) <br>
; <br>
IGMP协议数据包: <br>
int libnet_build_igmp(u_char type, u_char code, u_long ip, <br>
const u_char *payload, int payload_len, <br>
u_char *packet_buf); <br>
IP协议数据包: <br>
int libnet_build_ip(u_short len, u_char tos, u_short ip_id, u_short <br>
frag, <br>
u_char ttl, u_char protocol, u_long saddr, <br>
u_long daddr, const u_char *payload, int payload <br>
_len, <br>
u_char *packet_buf); <br>
OSPF路由协议数据包: <br>
int libnet_build_ospf(u_short len, u_char type, u_long router_id, <br>
u_long area_id, u_short auth_type, <br>
const char *payload, int payload_s, u_char *bu <br>
f); <br>
OSPF路由协议数据包(Hello): <br>
int libnet_build_ospf_hello(u_long netmask, u_short interval, <br>
u_char options, u_char priority, <br>
u_int dead_interval, u_long des_router, <br>
u_long backup, u_long neighbor, <br>
const char *payload, int payload_s, <br>
u_char *buf); <br>
OSPF路由协议数据包(DataBase Description (DBD)): <br>
int libnet_build_ospf_dbd(u_short len, u_char options, u_char type, <br>
u_int sequence_num, const char *payload, <br>
int payload_s, u_char *buf); <br>
OSPF路由协议数据包(Link State Request (LSR)): <br>
int libnet_build_ospf_lsr(u_int type, u_int ls_id, u_long adv_router <br>
, <br>
const char *payload, int payload_s, <br>
u_char *buf); <br>
OSPF路由协议数据包(Link State Update (LSU)): <br>
int libnet_build_ospf_lsu(u_int num, const char *payload, <br>
int payload_s, u_char *buf); <br>
OSPF路由协议数据包(Link State Acknowledgement (LSA)): <br>
int libnet_build_ospf_lsa(u_short age, u_char options, u_char type, <br>
u_int ls_id, u_long adv_router, <br>
u_int sequence_num, u_short len, <br>
const char *payload, int payload_s, <br>
u_char *buf); <br>
OSPF路由协议数据包(OSPF Link Sate NetworkLink State Router): <br>
int libnet_build_ospf_lsa_net(u_long netmask, u_int router_id, <br>
const char *payload, int payload_s, <br>
u_char *buf); <br>
OSPF路由协议数据包(Link State Router): <br>
int libnet_build_ospf_lsa_rtr(u_short flags, u_short num, u_int id, <br>
u_int data, u_char type, u_char tos, <br>
u_short metric, const char *payload, <br>
int payload_s, u_char *buf); <br>
OSPF路由协议数据包(Link State Summary): <br>
int libnet_build_ospf_lsa_sum(u_long netmask, u_int metric, u_int to <br>
s, <br>
const char *payload, int payload_s, <br>
u_char *buf); <br>
OSPF路由协议数据包(Link State AS External): <br>
int libnet_build_ospf_lsa_as(u_long netmask, u_int metric, <br>
u_long fwd_addr, u_int tag, <br>
const char *payload, int payload_s, <br>
u_char *buf); <br>
RIP路由协议数据包: <br>
int libnet_build_rip(u_char cmd, u_char ver, u_short domain, <br>
u_short addr_fam, u_short route_tag, u_long ip, <br>
<br>
u_long mask, u_long next_hop, u_long metric, <br>
const u_char *payload, int payload_len, <br>
u_char *packet_buf); <br>
TCP协议数据包: <br>
int libnet_build_tcp(u_short th_sport, u_short th_dport, u_long th_s <br>
eq, <br>
u_long th_ack, u_char th_flags, u_short th_win, <br>
<br>
u_short th_urg, const u_char *payload, <br>
int payload_len, u_char *packet_buf); <br>
UDP协议数据包: <br>
int libnet_build_udp(u_short sport, u_short dport, const u_char *pay <br>
load, <br>
int payload_len, u_char *packet_buf); <br>
IP协议数据包选项: <br>
int libnet_insert_ipo(struct ipoption *opt, u_char opt_len, <br>
u_char *packet_buf); <br>
TCP协议数据包选项: <br>
int libnet_insert_tcpo(struct tcpoption *opt, u_char opt_len, <br>
u_char *packet_buf); <br>
<<< 待续 >>> <br>
绿色兵团版权所有。未经允许,严禁转载! <br>
=== 说难不难,说易不易。=== <br>
</small><hr>
<p align="center">[<a href="index.htm">回到开始</a>][<a href="518.htm">上一层</a>][<a href="523.htm">下一篇</a>]
<p align="center"><a href="http://cterm.163.net">欢迎访问Cterm主页</a></p>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -