OCT 1. 更新 OpenDHCP 1.83 版本文档
2. 移植vCPE相关业务到 OpenDHCP 1.83 中
This commit is contained in:
parent
c4f9f026e9
commit
244add89c5
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -76,6 +76,21 @@ typedef struct in_pktinfo IN_PKTINFO;
|
||||||
|
|
||||||
#define STR2INT(val) ((int)strtol((val), nullptr, 10))
|
#define STR2INT(val) ((int)strtol((val), nullptr, 10))
|
||||||
|
|
||||||
|
#define logDHCPMess(logBuff, logLevel) \
|
||||||
|
do { \
|
||||||
|
switch ((logLevel)) { \
|
||||||
|
case 2: \
|
||||||
|
dzlog_debug("%s\n", logBuff); \
|
||||||
|
break; \
|
||||||
|
case 0: \
|
||||||
|
dzlog_error("%s\n", logBuff); \
|
||||||
|
break; \
|
||||||
|
default: \
|
||||||
|
dzlog_info("%s\n", logBuff); \
|
||||||
|
break; \
|
||||||
|
} \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
CTYPE_NONE,
|
CTYPE_NONE,
|
||||||
CTYPE_DHCP_ENTRY,
|
CTYPE_DHCP_ENTRY,
|
||||||
|
@ -691,13 +706,13 @@ MYBYTE pInt(void *, MYDWORD);
|
||||||
MYBYTE pUInt(void *raw, MYDWORD data);
|
MYBYTE pUInt(void *raw, MYDWORD data);
|
||||||
MYBYTE pUShort(void *, MYWORD);
|
MYBYTE pUShort(void *, MYWORD);
|
||||||
MYBYTE addServer(MYDWORD *, MYBYTE, MYDWORD);
|
MYBYTE addServer(MYDWORD *, MYBYTE, MYDWORD);
|
||||||
char getRangeInd(MYDWORD);
|
int getRangeInd(MYDWORD);
|
||||||
char *myTrim(char *, char *);
|
char *myTrim(char *, char *);
|
||||||
char *myGetToken(char *, MYBYTE);
|
char *myGetToken(char *, MYBYTE);
|
||||||
char *cloneString(char *);
|
char *cloneString(char *);
|
||||||
char *getHexValue(MYBYTE *, char *, MYBYTE *);
|
char *getHexValue(MYBYTE *, char *, MYBYTE *);
|
||||||
char *genHostName(char *, MYBYTE *, MYBYTE);
|
char *genHostName(char *, const MYBYTE *, MYBYTE);
|
||||||
char *hex2String(char *, MYBYTE *, MYBYTE);
|
char *hex2String(char *, const MYBYTE *, MYBYTE);
|
||||||
char *IP2String(char *, MYDWORD);
|
char *IP2String(char *, MYDWORD);
|
||||||
char *IP2arpa(char *, MYDWORD);
|
char *IP2arpa(char *, MYDWORD);
|
||||||
char *IP62String(char *, MYBYTE *);
|
char *IP62String(char *, MYBYTE *);
|
||||||
|
@ -729,9 +744,7 @@ void getSecondary();
|
||||||
void *init(void *);
|
void *init(void *);
|
||||||
void lockOptions(FILE *);
|
void lockOptions(FILE *);
|
||||||
void loadOptions(FILE *, const char *, data20 *);
|
void loadOptions(FILE *, const char *, data20 *);
|
||||||
void logDHCPMess(char *, MYBYTE);
|
void mySplit(char *, char *, const char *, char);
|
||||||
void logDHCPMess(const char *title, const char *mess);
|
|
||||||
void mySplit(char *, char *, char *, char);
|
|
||||||
void *sendHTTP(void *);
|
void *sendHTTP(void *);
|
||||||
void procHTTP(data19 *);
|
void procHTTP(data19 *);
|
||||||
void pvdata(data9 *, data3 *);
|
void pvdata(data9 *, data3 *);
|
||||||
|
|
Loading…
Reference in New Issue