Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dnsmasq to 2.91rc2 #2179

Merged
merged 15 commits into from
Feb 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
pihole-FTL*

# Versioning files (generated by Makefile)
version.h
version.c
version~

# CMake files generated during compilation
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ set(CMAKE_C_STANDARD 17)

project(PIHOLE_FTL C)

set(DNSMASQ_VERSION pi-hole-v2.91test10)
set(DNSMASQ_VERSION pi-hole-v2.91rc2)

add_subdirectory(src)
3 changes: 1 addition & 2 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -264,11 +264,10 @@ set(sources
timers.h
vector.c
vector.h
version.c
version.h
)

set_source_files_properties(version.h PROPERTIES GENERATED TRUE)

add_custom_target(
gen_version ALL
COMMAND ${CMAKE_COMMAND} -DCMAKE_C_COMPILER=${CMAKE_C_COMPILER} -P ${CMAKE_CURRENT_SOURCE_DIR}/gen_version.cmake
Expand Down
4 changes: 2 additions & 2 deletions src/api/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -823,9 +823,9 @@ int get_version_obj(struct ftl_conn *api, cJSON *version)
fclose(fp);

// Add remaining properties to ftl object
JSON_REF_STR_IN_OBJECT(ftl_local, "branch", GIT_BRANCH);
JSON_REF_STR_IN_OBJECT(ftl_local, "branch", git_branch());
JSON_REF_STR_IN_OBJECT(ftl_local, "version", get_FTL_version());
JSON_REF_STR_IN_OBJECT(ftl_local, "date", GIT_DATE);
JSON_REF_STR_IN_OBJECT(ftl_local, "date", git_date());

cJSON *core = JSON_NEW_OBJECT();
JSON_ADD_NULL_IF_NOT_EXISTS(core_local, "branch");
Expand Down
14 changes: 7 additions & 7 deletions src/args.c
Original file line number Diff line number Diff line change
Expand Up @@ -810,10 +810,10 @@ void parse_args(int argc, char *argv[])
yellow, bold, normal);
printf("Version: %s%s%s%s\n",
green, bold, get_FTL_version(), normal);
printf("Branch: " GIT_BRANCH "\n");
printf("Commit: " GIT_HASH " (" GIT_DATE ")\n");
printf("Architecture: " FTL_ARCH "\n");
printf("Compiler: " FTL_CC "\n");
printf("Branch: %s\n", git_branch());
printf("Commit: %s (%s)",git_hash(), git_date());
printf("Architecture: %s\n", ftl_arch());
printf("Compiler: %s\n", ftl_cc());
#if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
printf("GLIBC version: %d.%d\n\n", __GLIBC__, __GLIBC_MINOR__);
#else
Expand Down Expand Up @@ -920,20 +920,20 @@ void parse_args(int argc, char *argv[])
if(strcmp(argv[i], "-t") == 0 ||
strcmp(argv[i], "tag") == 0)
{
printf("%s\n",GIT_TAG);
printf("%s\n", git_tag());
exit(EXIT_SUCCESS);
}

if(strcmp(argv[i], "-b") == 0 ||
strcmp(argv[i], "branch") == 0)
{
printf("%s\n",GIT_BRANCH);
printf("%s\n", git_branch());
exit(EXIT_SUCCESS);
}

if(strcmp(argv[i], "--hash") == 0)
{
printf("%s\n",GIT_HASH);
printf("%s\n", git_hash());
exit(EXIT_SUCCESS);
}

Expand Down
2 changes: 1 addition & 1 deletion src/database/message-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -1597,7 +1597,7 @@ void log_verify_message(const char *expected, const char *actual)
log_crit("%s", buf);

// Log to database
add_message(VERIFY_MESSAGE, buf, expected, actual, GIT_HASH, FTL_ARCH);
add_message(VERIFY_MESSAGE, buf, expected, actual, git_hash(), ftl_arch());

}

Expand Down
2 changes: 1 addition & 1 deletion src/database/query-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -1230,7 +1230,7 @@ void DB_read_queries(void)
if(type < 100)
{
// Mapped query type
if(type >= TYPE_A && type < TYPE_MAX)
if(type >= TYPE_NONE && type < TYPE_MAX)
query->type = type;
else
{
Expand Down
7 changes: 4 additions & 3 deletions src/dnsmasq/dnsmasq.h
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@ struct event_desc {
#define OPT_CACHE_RR 71
#define OPT_LOCALHOST_SERVICE 72
#define OPT_LOG_PROTO 73
#define OPT_LAST 74
#define OPT_NO_0x20 74
#define OPT_LAST 75

#define OPTION_BITS (sizeof(unsigned int)*8)
#define OPTION_SIZE ( (OPT_LAST/OPTION_BITS)+((OPT_LAST%OPTION_BITS)!=0) )
Expand Down Expand Up @@ -788,12 +789,13 @@ struct dyndir {
#define FREC_DO_QUESTION 64
#define FREC_HAS_PHEADER 128
#define FREC_GONE_TO_TCP 256
#define FREC_ANSWER 512

struct frec {
struct frec_src {
union mysockaddr source;
union all_addr dest;
unsigned int iface, log_id;
unsigned int iface, log_id, encode_bitmap, *encode_bigmap;
int fd;
unsigned short orig_id, udp_pkt_size;
struct frec_src *next;
Expand All @@ -804,7 +806,6 @@ struct frec {
int forwardall, flags;
time_t time;
u32 forward_timestamp;
unsigned int encode_bitmap;
int forward_delay;
struct blockdata *stash; /* saved query or saved reply, whilst we validate */
size_t stash_len;
Expand Down
Loading
Loading