Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
D
Dnsmasq
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Dnsmasq
Commits
7dbe193b
Commit
7dbe193b
authored
Apr 05, 2012
by
Giovanni Bajo
Committed by
Simon Kelley
Aug 20, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add run-time options to activate dnssec validation.
parent
a669f012
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
src/dnsmasq.h
src/dnsmasq.h
+2
-1
src/option.c
src/option.c
+9
-1
No files found.
src/dnsmasq.h
View file @
7dbe193b
...
@@ -222,7 +222,8 @@ struct event_desc {
...
@@ -222,7 +222,8 @@ struct event_desc {
#define OPT_CLEVERBIND 39
#define OPT_CLEVERBIND 39
#define OPT_TFTP 40
#define OPT_TFTP 40
#define OPT_FAST_RA 41
#define OPT_FAST_RA 41
#define OPT_LAST 42
#define OPT_DNSSEC_VALIDATE 42
#define OPT_LAST 43
/* extra flags for my_syslog, we use a couple of facilities since they are known
/* extra flags for my_syslog, we use a couple of facilities since they are known
not to occupy the same bits as priorities, no matter how syslog.h is set up. */
not to occupy the same bits as priorities, no matter how syslog.h is set up. */
...
...
src/option.c
View file @
7dbe193b
...
@@ -129,11 +129,13 @@ struct myoption {
...
@@ -129,11 +129,13 @@ struct myoption {
#define LOPT_AUTHPEER 318
#define LOPT_AUTHPEER 318
#define LOPT_IPSET 319
#define LOPT_IPSET 319
#define LOPT_SYNTH 320
#define LOPT_SYNTH 320
#define LOPT_SEC_VALID 321
#ifdef OPTION6_PREFIX_CLASS
#ifdef OPTION6_PREFIX_CLASS
#define LOPT_PREF_CLSS 32
1
#define LOPT_PREF_CLSS 32
2
#endif
#endif
#define LOPT_FAST_RA 322
#define LOPT_FAST_RA 322
#ifdef HAVE_GETOPT_LONG
#ifdef HAVE_GETOPT_LONG
static
const
struct
option
opts
[]
=
static
const
struct
option
opts
[]
=
#else
#else
...
@@ -267,6 +269,7 @@ static const struct myoption opts[] =
...
@@ -267,6 +269,7 @@ static const struct myoption opts[] =
{
"auth-peer"
,
1
,
0
,
LOPT_AUTHPEER
},
{
"auth-peer"
,
1
,
0
,
LOPT_AUTHPEER
},
{
"ipset"
,
1
,
0
,
LOPT_IPSET
},
{
"ipset"
,
1
,
0
,
LOPT_IPSET
},
{
"synth-domain"
,
1
,
0
,
LOPT_SYNTH
},
{
"synth-domain"
,
1
,
0
,
LOPT_SYNTH
},
{
"dnssec"
,
0
,
0
,
LOPT_SEC_VALID
},
#ifdef OPTION6_PREFIX_CLASS
#ifdef OPTION6_PREFIX_CLASS
{
"dhcp-prefix-class"
,
1
,
0
,
LOPT_PREF_CLSS
},
{
"dhcp-prefix-class"
,
1
,
0
,
LOPT_PREF_CLSS
},
#endif
#endif
...
@@ -402,6 +405,7 @@ static struct {
...
@@ -402,6 +405,7 @@ static struct {
{
LOPT_FAST_RA
,
OPT_FAST_RA
,
NULL
,
gettext_noop
(
"Always send frequent router-advertisements"
),
NULL
},
{
LOPT_FAST_RA
,
OPT_FAST_RA
,
NULL
,
gettext_noop
(
"Always send frequent router-advertisements"
),
NULL
},
{
LOPT_DUID
,
ARG_ONE
,
"<enterprise>,<duid>"
,
gettext_noop
(
"Specify DUID_EN-type DHCPv6 server DUID"
),
NULL
},
{
LOPT_DUID
,
ARG_ONE
,
"<enterprise>,<duid>"
,
gettext_noop
(
"Specify DUID_EN-type DHCPv6 server DUID"
),
NULL
},
{
LOPT_HOST_REC
,
ARG_DUP
,
"<name>,<address>"
,
gettext_noop
(
"Specify host (A/AAAA and PTR) records"
),
NULL
},
{
LOPT_HOST_REC
,
ARG_DUP
,
"<name>,<address>"
,
gettext_noop
(
"Specify host (A/AAAA and PTR) records"
),
NULL
},
<<<<<<<
HEAD
{
LOPT_RR
,
ARG_DUP
,
"<name>,<RR-number>,[<data>]"
,
gettext_noop
(
"Specify arbitrary DNS resource record"
),
NULL
},
{
LOPT_RR
,
ARG_DUP
,
"<name>,<RR-number>,[<data>]"
,
gettext_noop
(
"Specify arbitrary DNS resource record"
),
NULL
},
{
LOPT_CLVERBIND
,
OPT_CLEVERBIND
,
NULL
,
gettext_noop
(
"Bind to interfaces in use - check for new interfaces"
),
NULL
},
{
LOPT_CLVERBIND
,
OPT_CLEVERBIND
,
NULL
,
gettext_noop
(
"Bind to interfaces in use - check for new interfaces"
),
NULL
},
{
LOPT_AUTHSERV
,
ARG_ONE
,
"<NS>,<interface>"
,
gettext_noop
(
"Export local names to global DNS"
),
NULL
},
{
LOPT_AUTHSERV
,
ARG_ONE
,
"<NS>,<interface>"
,
gettext_noop
(
"Export local names to global DNS"
),
NULL
},
...
@@ -412,6 +416,10 @@ static struct {
...
@@ -412,6 +416,10 @@ static struct {
{
LOPT_AUTHPEER
,
ARG_DUP
,
"<ipaddr>[,<ipaddr>...]"
,
gettext_noop
(
"Peers which are allowed to do zone transfer"
),
NULL
},
{
LOPT_AUTHPEER
,
ARG_DUP
,
"<ipaddr>[,<ipaddr>...]"
,
gettext_noop
(
"Peers which are allowed to do zone transfer"
),
NULL
},
{
LOPT_IPSET
,
ARG_DUP
,
"/<domain>/<ipset>[,<ipset>...]"
,
gettext_noop
(
"Specify ipsets to which matching domains should be added"
),
NULL
},
{
LOPT_IPSET
,
ARG_DUP
,
"/<domain>/<ipset>[,<ipset>...]"
,
gettext_noop
(
"Specify ipsets to which matching domains should be added"
),
NULL
},
{
LOPT_SYNTH
,
ARG_DUP
,
"<domain>,<range>,[<prefix>]"
,
gettext_noop
(
"Specify a domain and address range for sythesised names"
),
NULL
},
{
LOPT_SYNTH
,
ARG_DUP
,
"<domain>,<range>,[<prefix>]"
,
gettext_noop
(
"Specify a domain and address range for sythesised names"
),
NULL
},
{
LOPT_SEC_VALID
,
OPT_DNSSEC_VALIDATE
,
NULL
,
gettext_noop
(
"Activate DNSSEC validation"
),
NULL
},
#ifdef HAVE_DNSSEC
{
LOPT_SEC_VALID
,
OPT_DNSSEC_VALIDATE
,
NULL
,
gettext_noop
(
"Activate DNSSEC validation"
),
NULL
},
#endif
#ifdef OPTION6_PREFIX_CLASS
#ifdef OPTION6_PREFIX_CLASS
{
LOPT_PREF_CLSS
,
ARG_DUP
,
"set:tag,<class>"
,
gettext_noop
(
"Specify DHCPv6 prefix class"
),
NULL
},
{
LOPT_PREF_CLSS
,
ARG_DUP
,
"set:tag,<class>"
,
gettext_noop
(
"Specify DHCPv6 prefix class"
),
NULL
},
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment