mirror of
https://github.com/nmap/nmap.git
synced 2025-12-26 09:29:01 +00:00
Make various accessors and parameters const.
This commit is contained in:
10
tcpip.h
10
tcpip.h
@@ -421,7 +421,7 @@ unsigned short in_cksum(u16 *ptr,int nbytes);
|
||||
|
||||
|
||||
/* Send a pre-built IPv4 or IPv6 packet */
|
||||
int send_ip_packet(int sd, struct eth_nfo *eth, u8 *packet,
|
||||
int send_ip_packet(int sd, const struct eth_nfo *eth, const u8 *packet,
|
||||
unsigned int packetlen);
|
||||
|
||||
/* Builds an IP packet (including an IP header) by packing the fields
|
||||
@@ -466,7 +466,7 @@ u8 *build_tcp_raw_ipv6(const struct in6_addr *source,
|
||||
|
||||
/* Build and send a raw tcp packet. If TTL is -1, a partially random
|
||||
(but likely large enough) one is chosen */
|
||||
int send_tcp_raw( int sd, struct eth_nfo *eth,
|
||||
int send_tcp_raw( int sd, const struct eth_nfo *eth,
|
||||
const struct in_addr *source, const struct in_addr *victim,
|
||||
int ttl, bool df,
|
||||
u8* ipopt, int ipoptlen,
|
||||
@@ -475,7 +475,7 @@ int send_tcp_raw( int sd, struct eth_nfo *eth,
|
||||
u8 *options, int optlen,
|
||||
char *data, u16 datalen);
|
||||
|
||||
int send_tcp_raw_decoys( int sd, struct eth_nfo *eth,
|
||||
int send_tcp_raw_decoys( int sd, const struct eth_nfo *eth,
|
||||
const struct in_addr *victim,
|
||||
int ttl, bool df,
|
||||
u8* ipopt, int ipoptlen,
|
||||
@@ -502,14 +502,14 @@ u8 *build_udp_raw_ipv6(const struct in6_addr *source,
|
||||
u8 hoplimit, u16 sport, u16 dport,
|
||||
char *data, u16 datalen, u32 *packetlen);
|
||||
|
||||
int send_udp_raw( int sd, struct eth_nfo *eth,
|
||||
int send_udp_raw( int sd, const struct eth_nfo *eth,
|
||||
struct in_addr *source, const struct in_addr *victim,
|
||||
int ttl, u16 ipid,
|
||||
u8* ipopt, int ipoptlen,
|
||||
u16 sport, u16 dport,
|
||||
char *data, u16 datalen);
|
||||
|
||||
int send_udp_raw_decoys( int sd, struct eth_nfo *eth,
|
||||
int send_udp_raw_decoys( int sd, const struct eth_nfo *eth,
|
||||
const struct in_addr *victim,
|
||||
int ttl, u16 ipid,
|
||||
u8* ipops, int ip,
|
||||
|
||||
Reference in New Issue
Block a user