mirror of
https://github.com/nmap/nmap.git
synced 2025-12-21 23:19:03 +00:00
Finish r23021 (rename of tcpudp_cksum to ipv4_pseudoheader_cksum). I
accidentally left tcpip.cc out of the commit.
This commit is contained in:
4
tcpip.cc
4
tcpip.cc
@@ -512,7 +512,7 @@ u8 *build_tcp_raw(const struct in_addr *source,
|
|||||||
#if STUPID_SOLARIS_CHECKSUM_BUG
|
#if STUPID_SOLARIS_CHECKSUM_BUG
|
||||||
tcp->th_sum = sizeof(struct tcp_hdr) + tcpoptlen + datalen;
|
tcp->th_sum = sizeof(struct tcp_hdr) + tcpoptlen + datalen;
|
||||||
#else
|
#else
|
||||||
tcp->th_sum = tcpudp_cksum(source, victim, IPPROTO_TCP,
|
tcp->th_sum = ipv4_pseudoheader_cksum(source, victim, IPPROTO_TCP,
|
||||||
sizeof(struct tcp_hdr) + tcpoptlen +
|
sizeof(struct tcp_hdr) + tcpoptlen +
|
||||||
datalen, (char *) tcp);
|
datalen, (char *) tcp);
|
||||||
#endif
|
#endif
|
||||||
@@ -897,7 +897,7 @@ u8 *build_udp_raw(const struct in_addr *source, const struct in_addr *victim,
|
|||||||
#if STUPID_SOLARIS_CHECKSUM_BUG
|
#if STUPID_SOLARIS_CHECKSUM_BUG
|
||||||
udp->uh_sum = sizeof(struct udp_hdr) + datalen;
|
udp->uh_sum = sizeof(struct udp_hdr) + datalen;
|
||||||
#else
|
#else
|
||||||
udp->uh_sum = tcpudp_cksum(source, victim, IPPROTO_UDP,
|
udp->uh_sum = ipv4_pseudoheader_cksum(source, victim, IPPROTO_UDP,
|
||||||
sizeof(struct udp_hdr) + datalen,
|
sizeof(struct udp_hdr) + datalen,
|
||||||
(char *) udp);
|
(char *) udp);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user