mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 18:28:25 +00:00
Fix fail to build when NO_SCRIPT set.
This commit is contained in:
@@ -1161,11 +1161,6 @@ int main (int argc, char **argv)
|
|||||||
while (do_tftp_script_run());
|
while (do_tftp_script_run());
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
# ifdef HAVE_DHCP6
|
|
||||||
while (helper_buf_empty() && do_snoop_script_run());
|
|
||||||
# endif
|
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1681,7 +1681,9 @@ void relay_upstream6(struct dhcp_relay *relay, ssize_t sz, struct in6_addr *peer
|
|||||||
u32 scope_id, time_t now);
|
u32 scope_id, time_t now);
|
||||||
|
|
||||||
int relay_reply6( struct sockaddr_in6 *peer, ssize_t sz, char *arrival_interface);
|
int relay_reply6( struct sockaddr_in6 *peer, ssize_t sz, char *arrival_interface);
|
||||||
|
# ifdef HAVE_SCRIPT
|
||||||
int do_snoop_script_run(void);
|
int do_snoop_script_run(void);
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* dhcp-common.c */
|
/* dhcp-common.c */
|
||||||
|
|||||||
@@ -2277,9 +2277,9 @@ int relay_reply6(struct sockaddr_in6 *peer, ssize_t sz, char *arrival_interface)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_SCRIPT
|
||||||
int do_snoop_script_run(void)
|
int do_snoop_script_run(void)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_SCRIPT
|
|
||||||
struct dhcp_relay *relay;
|
struct dhcp_relay *relay;
|
||||||
struct snoop_record *snoop;
|
struct snoop_record *snoop;
|
||||||
|
|
||||||
@@ -2293,9 +2293,9 @@ int do_snoop_script_run(void)
|
|||||||
queue_relay_snoop(&snoop->client, relay->iface_index, &snoop->prefix, snoop->prefix_len);
|
queue_relay_snoop(&snoop->client, relay->iface_index, &snoop->prefix, snoop->prefix_len);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user