Skip to content
Snippets Groups Projects
Commit 2a609bb2 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

iniRead/Get/SetIpAddress() functions now return/accept network byte order

As a result of recent change to netwrap.c
parent db8bb221
No related branches found
No related tags found
No related merge requests found
Pipeline #8295 passed
...@@ -1019,7 +1019,7 @@ void ident_server_thread(void* arg) ...@@ -1019,7 +1019,7 @@ void ident_server_thread(void* arg)
memset(&server_addr, 0, sizeof(server_addr)); memset(&server_addr, 0, sizeof(server_addr));
server_addr.sin_addr.s_addr = htonl(ident_interface); server_addr.sin_addr.s_addr = ident_interface;
server_addr.sin_family = AF_INET; server_addr.sin_family = AF_INET;
server_addr.sin_port = htons(ident_port); server_addr.sin_port = htons(ident_port);
......
...@@ -212,6 +212,7 @@ DLLEXPORT str_list_t iniGetSection(str_list_t, const char *section); ...@@ -212,6 +212,7 @@ DLLEXPORT str_list_t iniGetSection(str_list_t, const char *section);
DLLEXPORT str_list_t iniCutSection(str_list_t, const char *section); DLLEXPORT str_list_t iniCutSection(str_list_t, const char *section);
#if !defined(NO_SOCKET_SUPPORT) #if !defined(NO_SOCKET_SUPPORT)
// These functions return/accept IP addresses in *network* byte order
DLLEXPORT uint32_t iniReadIpAddress(FILE*, const char* section, const char* key DLLEXPORT uint32_t iniReadIpAddress(FILE*, const char* section, const char* key
,uint32_t deflt); ,uint32_t deflt);
DLLEXPORT uint32_t iniGetIpAddress(str_list_t, const char* section, const char* key DLLEXPORT uint32_t iniGetIpAddress(str_list_t, const char* section, const char* key
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment