mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 06:01:28 +00:00
Rewrite is_response_icmp to give access to the encapsulated packet.
We will want to also get the ICMP ID from the packet. Remove the now-unused getDestAddrFromICMPPacket function.
This commit is contained in:
@@ -142,7 +142,6 @@ int send_packet(NpingTarget *target, int rawfd, u8 *pkt, size_t pktLen);
|
||||
int print_dnet_interface(const struct intf_entry *entry, void *arg) ;
|
||||
int print_interfaces_dnet();
|
||||
struct sockaddr_storage *getSrcSockAddrFromIPPacket(u8 *pkt, size_t pktLen);
|
||||
struct sockaddr_storage *getDestAddrFromICMPPacket(u8 *pkt, size_t pktLen);
|
||||
u8 *getUDPheaderLocation(u8 *pkt, size_t pktLen);
|
||||
u8 *getTCPheaderLocation(u8 *pkt, size_t pktLen);
|
||||
u8 getProtoFromIPPacket(u8 *pkt, size_t pktLen);
|
||||
|
||||
Reference in New Issue
Block a user