1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-29 21:14:28 +01:00

Modified header guards so they don't use reserved names containing double underscores.

This commit is contained in:
Matias Fontanini
2012-08-02 16:00:56 -03:00
parent cb81c65640
commit 383deb8641
19 changed files with 80 additions and 57 deletions

View File

@@ -20,8 +20,8 @@
*/
#ifndef __ARP_H
#define __ARP_H
#ifndef TINS_ARP_H
#define TINS_ARP_H
#include <string>
@@ -309,4 +309,4 @@ namespace Tins {
arphdr _arp;
};
};
#endif
#endif //TINS_ARP_H

View File

@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __BOOTP_H
#define __BOOTP_H
#ifndef TINS_BOOTP_H
#define TINS_BOOTP_H
#include <stdint.h>
#include <stdint.h>
@@ -318,4 +318,4 @@ namespace Tins {
};
};
#endif
#endif // TINS_BOOTP_H

View File

@@ -1,5 +1,26 @@
#ifndef __CONSTANTS_H
#define __CONSTANTS_H
/*
* libtins is a net packet wrapper library for crafting and
* interpreting sniffed packets.
*
* Copyright (C) 2011 Nasel
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef TINS_CONSTANTS_H
#define TINS_CONSTANTS_H
namespace Tins {
/**
@@ -125,4 +146,4 @@ namespace Tins {
};
#endif
#endif // TINS_CONSTANTS_H

View File

@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __DHCP_H
#define __DHCP_H
#ifndef TINS_DHCP_H
#define TINS_DHCP_H
#include <list>
@@ -413,4 +413,4 @@ namespace Tins {
};
};
#endif
#endif // TINS_DHCP_H

View File

@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __DNS_H
#define __DNS_H
#ifndef TINS_DNS_H
#define TINS_DNS_H
#include <stdint.h>
#include <list>
@@ -584,5 +584,5 @@ namespace Tins {
};
};
#endif // __DNS_H
#endif // TINS_DNS_H

View File

@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __DOT_11
#define __DOT_11
#ifndef TINS_DOT_11
#define TINS_DOT_11
#include <list>
#include <stdint.h>
@@ -3878,4 +3878,4 @@ namespace Tins {
#endif
#endif // TINS_DOT_11

View File

@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __EAPOL_H
#define __EAPOL_H
#ifndef TINS_EAPOL_H
#define TINS_EAPOL_H
#include "pdu.h"
@@ -559,4 +559,4 @@ namespace Tins {
};
};
#endif
#endif // TINS_EAPOL_H

View File

@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __ETHERNET_II_H
#define __ETHERNET_II_H
#ifndef TINS_ETHERNET_II_H
#define TINS_ETHERNET_II_H
#include <stdint.h>
#include <stdexcept>
@@ -225,4 +225,4 @@ namespace Tins {
};
#endif
#endif // TINS_ETHERNET_II_H

View File

@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __ICMP_H
#define __ICMP_H
#ifndef TINS_ICMP_H
#define TINS_ICMP_H
#include "pdu.h"
@@ -344,4 +344,4 @@ namespace Tins {
};
};
#endif
#endif // TINS_ICMP_H

View File

@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __IEEE802_3_H
#define __IEEE802_3_H
#ifndef TINS_IEEE802_3_H
#define TINS_IEEE802_3_H
#include <stdint.h>
#include <stdexcept>
@@ -218,4 +218,4 @@ namespace Tins {
};
#endif
#endif // TINS_IEEE802_3_H

View File

@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __IEEE8022_H
#define __IEEE8022_H
#ifndef TINS_IEEE8022_H
#define TINS_IEEE8022_H
#include <list>
#include <utility>
@@ -355,4 +355,4 @@ namespace Tins {
};
#endif
#endif // TINS_IEEE8022_H

View File

@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __PACKET_SENDER_H
#define __PACKET_SENDER_H
#ifndef TINS_PACKET_SENDER_H
#define TINS_PACKET_SENDER_H
#include <vector>
@@ -180,4 +180,4 @@ namespace Tins {
};
};
#endif
#endif // TINS_PACKET_SENDER_H

View File

@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __PDU_H
#define __PDU_H
#ifndef TINS_PDU_H
#define TINS_PDU_H
#include <stdint.h>
@@ -302,4 +302,4 @@ namespace Tins {
};
};
#endif
#endif // TINS_PDU_H

View File

@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __RADIOTAP_H
#define __RADIOTAP_H
#ifndef TINS_RADIOTAP_H
#define TINS_RADIOTAP_H
#include <stdexcept>
#include "pdu.h"
@@ -319,4 +319,5 @@ namespace Tins {
uint16_t _rx_flags;
};
};
#endif
#endif // TINS_RADIOTAP_H

View File

@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __RAWPDU_H
#define __RAWPDU_H
#ifndef TINS_RAWPDU_H
#define TINS_RAWPDU_H
#include "pdu.h"
@@ -87,4 +87,4 @@ namespace Tins {
};
#endif
#endif // TINS_RAWPDU_H

View File

@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __IEEE8022_H
#define __IEEE8022_H
#ifndef TINS_IEEE8022_H
#define TINS_IEEE8022_H
#include <stdint.h>
@@ -167,4 +167,4 @@ namespace Tins {
};
#endif
#endif // TINS_IEEE8022_H

View File

@@ -20,8 +20,8 @@
*/
#ifndef __SNIFFER_H
#define __SNIFFER_H
#ifndef TINS_SNIFFER_H
#define TINS_SNIFFER_H
#include <pcap.h>
@@ -152,4 +152,4 @@ namespace Tins {
};
};
#endif
#endif // TINS_SNIFFER_H

View File

@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __TCP_H
#define __TCP_H
#ifndef TINS_TCP_H
#define TINS_TCP_H
#include <list>
@@ -465,4 +465,4 @@ namespace Tins {
};
};
#endif
#endif // TINS_TCP_H

View File

@@ -19,8 +19,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __TINS_H
#define __TINS_H
#ifndef TINS_TINS_H
#define TINS_TINS_H
#include "arp.h"
#include "bootp.h"
@@ -39,5 +39,6 @@
#include "tcp.h"
#include "udp.h"
#include "utils.h"
#include "dns.h"
#endif
#endif // TINS_TINS_H