$main::proto = "udp";
$dbh->do("insert into udppkt (pid, udp_sport, udp_dport, udp_len, udp_cksum)
values (LAST_INSERT_ID(),'$udp_obj->{src_port}','$udp_obj->{dest_port}','$udp_obj->{len}','$udp_obj->{cksum}')
");
}
# OSPF
elsif ($ip_obj->{proto}=="89")
{
$main::proto = "ospf";
}
# Other IP, Multicast, Unicast, etc...
else
{
# INTERNET MULTICAST ADDRESSES
# Reference: ftp://ftp.iana.org/assignments/multicast-addresses/
#
# Host Extensions for IP Multicasting [RFC1112] specifies the extensions
# required of a host implementation of the Internet Protocol (IP) to
# support multicasting. The multicast addressess are in the range
# 224.0.0.0 through 239.255.255.255. Current addresses are listed below.
#
# The range of addresses between 224.0.0.0 and 224.0.0.255, inclusive,
# is reserved for the use of routing protocols and other low-level
# topology discovery or maintenance protocols, such as gateway discovery
上一页 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2223 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 下一页
| 论坛热门帖子: | [lch203] 写得蛮好的linux学习笔记(10-21) [黑马制造] 学习java的30个目标(10-19) [笑傲股林] 做测试半年了,有点迷茫,应该再学些什么提高自己的测试水平和测试能力呢?(10-19) [udp8589] 大家用google的来吱一声? 用百度的~~也来报道下?(10-18) [沂偌掳兆] 本人总结的一些认为C++比较经典的书籍,希望对大家有用(10-18) |
| TAG标签: | 格式 图解 my ip_obj- eth_obj- main::proto ip- tcp- |
注册
个人空间
