mirror of
https://github.com/nmap/nmap.git
synced 2025-12-23 07:59:03 +00:00
Removes trailing spaces in 69 files. Closes #971.
This commit is contained in:
@@ -146,7 +146,7 @@
|
||||
class IPv6Header : public NetworkLayerElement {
|
||||
|
||||
private:
|
||||
|
||||
|
||||
/* IPv6 Header Format:
|
||||
0 1 2 3
|
||||
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2
|
||||
@@ -172,14 +172,14 @@ class IPv6Header : public NetworkLayerElement {
|
||||
| |
|
||||
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|
||||
*/
|
||||
|
||||
|
||||
struct nping_ipv6_hdr {
|
||||
u8 ip6_start[4]; /* Version, Traffic and Flow */
|
||||
u16 ip6_len; /* Payload length */
|
||||
u8 ip6_nh; /* Next Header */
|
||||
u8 ip6_hopl; /* Hop Limit */
|
||||
u8 ip6_src[16]; /* Source IP Address */
|
||||
u8 ip6_dst[16]; /* Destination IP Address */
|
||||
u8 ip6_dst[16]; /* Destination IP Address */
|
||||
}__attribute__((__packed__));
|
||||
|
||||
typedef struct nping_ipv6_hdr nping_ipv6_hdr_t;
|
||||
@@ -187,7 +187,7 @@ class IPv6Header : public NetworkLayerElement {
|
||||
nping_ipv6_hdr_t h;
|
||||
|
||||
public:
|
||||
|
||||
|
||||
/* Misc */
|
||||
IPv6Header();
|
||||
~IPv6Header();
|
||||
@@ -200,7 +200,7 @@ class IPv6Header : public NetworkLayerElement {
|
||||
|
||||
/* IP version */
|
||||
int setVersion();
|
||||
int setVersion(u8 val);
|
||||
int setVersion(u8 val);
|
||||
u8 getVersion() const;
|
||||
|
||||
/* Traffic class */
|
||||
@@ -210,27 +210,27 @@ class IPv6Header : public NetworkLayerElement {
|
||||
/* Flow Label */
|
||||
int setFlowLabel(u32 val);
|
||||
u32 getFlowLabel() const;
|
||||
|
||||
|
||||
/* Payload Length */
|
||||
int setPayloadLength(u16 val);
|
||||
int setPayloadLength();
|
||||
u16 getPayloadLength() const;
|
||||
|
||||
|
||||
/* Next Header */
|
||||
int setNextHeader(u8 val);
|
||||
int setNextHeader(const char *p);
|
||||
u8 getNextHeader() const;
|
||||
|
||||
|
||||
/* Hop Limit */
|
||||
int setHopLimit(u8 val);
|
||||
u8 getHopLimit() const;
|
||||
|
||||
|
||||
/* Source Address */
|
||||
int setSourceAddress(u8 *val);
|
||||
int setSourceAddress(struct in6_addr val);
|
||||
const u8 *getSourceAddress() const;
|
||||
struct in6_addr getSourceAddress(struct in6_addr *result) const;
|
||||
|
||||
|
||||
/* Destination Address*/
|
||||
int setDestinationAddress(u8 *val);
|
||||
int setDestinationAddress(struct in6_addr val);
|
||||
|
||||
Reference in New Issue
Block a user