mirror of
https://github.com/zeek/zeek.git
synced 2025-10-06 00:28:21 +00:00
Significant edit pass over ICMPv6 code.
Matti, more per mail.
This commit is contained in:
parent
cb64bb6874
commit
50181edd84
10 changed files with 424 additions and 719 deletions
|
@ -88,12 +88,14 @@ extern int ones_complement_checksum(const void* p, int b, uint32 sum);
|
|||
|
||||
extern int tcp_checksum(const struct ip* ip, const struct tcphdr* tp, int len);
|
||||
extern int udp_checksum(const struct ip* ip, const struct udphdr* up, int len);
|
||||
extern int icmp_checksum(const struct icmp* icmpp, int len);
|
||||
|
||||
#ifdef BROv6
|
||||
extern int udp6_checksum(const struct ip6_hdr* ip, const struct udphdr* up,
|
||||
int len);
|
||||
extern int icmp6_checksum(const struct icmp* icmpp, const struct ip6_hdr* ip6, int len);
|
||||
extern int icmp6_checksum(const struct icmp* icmpp, const struct ip6_hdr* ip6,
|
||||
int len);
|
||||
#endif
|
||||
extern int icmp_checksum(const struct icmp* icmpp, int len);
|
||||
|
||||
// Given an address in host order, returns its "classical network prefix",
|
||||
// also in host order.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue