mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
constify the pointer passed to magic_tcpudp_cksum.
This commit is contained in:
parent
9e6a88ad67
commit
177e2cd4a2
2 changed files with 2 additions and 2 deletions
2
tcpip.cc
2
tcpip.cc
|
|
@ -1012,7 +1012,7 @@ unsigned short in_cksum(u16 *ptr,int nbytes) {
|
|||
sections 3.2, 11.3, and 17.3. */
|
||||
unsigned short magic_tcpudp_cksum(const struct in_addr *src,
|
||||
const struct in_addr *dst,
|
||||
u8 proto, u16 len, char *hstart)
|
||||
u8 proto, u16 len, const void *hstart)
|
||||
{
|
||||
struct pseudo {
|
||||
struct in_addr src;
|
||||
|
|
|
|||
2
tcpip.h
2
tcpip.h
|
|
@ -481,7 +481,7 @@ unsigned short in_cksum(u16 *ptr,int nbytes);
|
|||
|
||||
unsigned short magic_tcpudp_cksum(const struct in_addr *src,
|
||||
const struct in_addr *dst,
|
||||
u8 proto, u16 len, char *hstart);
|
||||
u8 proto, u16 len, const void *hstart);
|
||||
|
||||
/* Build and send a raw tcp packet. If TTL is -1, a partially random
|
||||
(but likely large enough) one is chosen */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue