1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-25 00:49:01 +00:00

Removes trailing spaces in 69 files. Closes #971.

This commit is contained in:
rewanth
2017-08-23 08:52:40 +00:00
parent 1c8e232bb3
commit 6ee953a5ff
69 changed files with 409 additions and 409 deletions

View File

@@ -155,24 +155,24 @@
*
* 1. Imagine we need to build an ICMP echo request message that includes some
* arbitrary data to be echoed. We could do the following:
*
*
* u8 final_packet[1024]; <-- Buffer to store the resulting packet
* u32 final_packet_len=0; <-- Length of the resulting packet
* ICMPv6Header header; <-- The ICMPv6 fixed-length part
* RawData data; <-- The data to append to the echo message
*
*
* header.setType(ICMPv6_ECHO); <-- Set ICMPv6 type to "Echo request"
* data.store("1234567890"); <-- Store data we need to send.
* header.setNextElement(&data); <-- Tell ICMPv6Header what's after it
* header.setSum(); <-- Compute the checksum
*
*
* final_packet_len=header.dumpToBinaryBuffer(fina_packet, 1024);
* send_packet(final_packet, final_packet_len)
*
* 2. If we are sending a parameter problem message and we need to include the
* invoking datagram, we can call setNextElement() passing an IPv6Header
* pointer.
*
*
* u8 final_packet[1024]; <-- Buffer to store the resulting packet
* u32 final_packet_len=0; <-- Length of the resulting packet
* ICMPv6Header header; <-- The ICMPv6 fixed-length part
@@ -186,7 +186,7 @@
*
* 3. If we are sending a router solicitation message, we'll call
* setNextElement() passing an IPv6Options Pointer.
*
*
* u8 final_packet[1024]; <-- Buffer to store the resulting packet
* u32 final_packet_len=0; <-- Length of the resulting packet
* ICMPv6Header header; <-- The ICMPv6 fixed-length part
@@ -217,11 +217,11 @@
* following IETF RFC documents: RFC 4443, RFC 2461, RFC 2894 */
/* ICMP types and codes.
* The following types and codes have been defined by IANA. A complete list
* The following types and codes have been defined by IANA. A complete list
* may be found at http://www.iana.org/assignments/icmpv6-parameters
*
* Definitions on the first level of indentation are ICMPv6 Types.
* Definitions on the second level of indentation (values enclosed in
* Definitions on the second level of indentation (values enclosed in
* parenthesis) are ICMPv6 Codes */
#define ICMPv6_UNREACH 1 /* Destination unreachable [RFC 2463, 4443] */
#define ICMPv6_UNREACH_NO_ROUTE (0) /* --> No route to destination */
@@ -335,7 +335,7 @@ class ICMPv6Header : public ICMPHeader {
}__attribute__((__packed__));
typedef struct nping_icmpv6_hdr nping_icmpv6_hdr_t;
/**********************************************************************/
/* ICMPv6 MESSAGE SPECIFIC HEADERS */
/**********************************************************************/
@@ -371,7 +371,7 @@ class ICMPv6Header : public ICMPHeader {
}__attribute__((__packed__));
typedef struct pkt_too_big_msg pkt_too_big_msg_t;
/* Time Exceeded Message
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
@@ -387,7 +387,7 @@ class ICMPv6Header : public ICMPHeader {
}__attribute__((__packed__));
typedef struct time_exceeded_msg time_exceeded_msg_t;
/* Parameter Problem Message
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
@@ -403,7 +403,7 @@ class ICMPv6Header : public ICMPHeader {
}__attribute__((__packed__));
typedef struct parameter_problem_msg parameter_problem_msg_t;
/* Echo Request/Response Messages
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
@@ -418,7 +418,7 @@ class ICMPv6Header : public ICMPHeader {
//u8 data[?];
}__attribute__((__packed__));
typedef struct echo_msg echo_msg_t;
/* Router Advertisement Message
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
@@ -441,7 +441,7 @@ class ICMPv6Header : public ICMPHeader {
}__attribute__((__packed__));
typedef struct router_advert_msg router_advert_msg_t;
/* Router Solicitation Message
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
@@ -538,7 +538,7 @@ class ICMPv6Header : public ICMPHeader {
}__attribute__((__packed__));
typedef struct redirect_msg redirect_msg_t;
/* Router Renumbering Header
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Type | Code | Checksum |
@@ -612,7 +612,7 @@ class ICMPv6Header : public ICMPHeader {
}__attribute__((__packed__));
typedef struct mld_msg mld_msg_t;
nping_icmpv6_hdr_t h;
/* Helper pointers */