Fix header include guards to not use leading underscores.
This commit is contained in:
@ -1,5 +1,5 @@
|
|||||||
#ifndef _CLIENTPACKET_H
|
#ifndef CLIENTPACKET_H_
|
||||||
#define _CLIENTPACKET_H
|
#define CLIENTPACKET_H_
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#ifndef _DHCPC_H
|
#ifndef DHCPC_H_
|
||||||
#define _DHCPC_H
|
#define DHCPC_H_
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
INIT_SELECTING,
|
INIT_SELECTING,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* options.h */
|
/* options.h */
|
||||||
#ifndef _OPTIONS_H
|
#ifndef OPTIONS_H_
|
||||||
#define _OPTIONS_H
|
#define OPTIONS_H_
|
||||||
|
|
||||||
#include "packet.h"
|
#include "packet.h"
|
||||||
|
|
||||||
@ -35,6 +35,5 @@ int end_option(unsigned char *optionptr);
|
|||||||
int add_option_string(unsigned char *optionptr, unsigned char *string);
|
int add_option_string(unsigned char *optionptr, unsigned char *string);
|
||||||
int add_simple_option(unsigned char *optionptr, unsigned char code, uint32_t data);
|
int add_simple_option(unsigned char *optionptr, unsigned char code, uint32_t data);
|
||||||
struct option_set *find_option(struct option_set *opt_list, char code);
|
struct option_set *find_option(struct option_set *opt_list, char code);
|
||||||
/* void attach_option(struct option_set **opt_list, struct dhcp_option *option, char *buffer, int length); */
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#ifndef _PACKET_H
|
#ifndef PACKET_H_
|
||||||
#define _PACKET_H
|
#define PACKET_H_
|
||||||
|
|
||||||
#include <netinet/udp.h>
|
#include <netinet/udp.h>
|
||||||
#include <netinet/ip.h>
|
#include <netinet/ip.h>
|
||||||
@ -20,7 +20,7 @@ struct dhcpMessage {
|
|||||||
uint8_t sname[64];
|
uint8_t sname[64];
|
||||||
uint8_t file[128];
|
uint8_t file[128];
|
||||||
uint32_t cookie;
|
uint32_t cookie;
|
||||||
uint8_t options[308]; /* 312 - cookie */
|
uint8_t options[308]; /* 312 - cookie */
|
||||||
};
|
};
|
||||||
|
|
||||||
struct udp_dhcp_packet {
|
struct udp_dhcp_packet {
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#ifndef _SCRIPT_H
|
#ifndef SCRIPT_H_
|
||||||
#define _SCRIPT_H
|
#define SCRIPT_H_
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
SCRIPT_DECONFIG = 0,
|
SCRIPT_DECONFIG = 0,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* socket.h */
|
/* socket.h */
|
||||||
#ifndef _SOCKET_H
|
#ifndef SOCKET_H_
|
||||||
#define _SOCKET_H
|
#define SOCKET_H_
|
||||||
|
|
||||||
int read_interface(char *interface, int *ifindex, uint32_t *addr, unsigned char *arp);
|
int read_interface(char *interface, int *ifindex, uint32_t *addr, unsigned char *arp);
|
||||||
int listen_socket(unsigned int ip, int port, char *inf);
|
int listen_socket(unsigned int ip, int port, char *inf);
|
||||||
|
Reference in New Issue
Block a user