Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
07923379
Commit
07923379
authored
Jan 18, 2016
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
services: properly hook up dhcp services
parent
8f09dd01
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
18 additions
and
8 deletions
+18
-8
diag_logs_dhcp.php
src/www/diag_logs_dhcp.php
+1
-1
fbegin.inc
src/www/fbegin.inc
+4
-1
services_dhcp.php
src/www/services_dhcp.php
+1
-1
services_dhcp_edit.php
src/www/services_dhcp_edit.php
+1
-1
services_dhcp_relay.php
src/www/services_dhcp_relay.php
+4
-3
services_dhcpv6.php
src/www/services_dhcpv6.php
+1
-0
services_dhcpv6_edit.php
src/www/services_dhcpv6_edit.php
+2
-0
services_dhcpv6_relay.php
src/www/services_dhcpv6_relay.php
+1
-0
status_dhcp_leases.php
src/www/status_dhcp_leases.php
+1
-1
status_dhcpv6_leases.php
src/www/status_dhcpv6_leases.php
+2
-0
No files found.
src/www/diag_logs_dhcp.php
View file @
07923379
...
@@ -10,6 +10,6 @@ function clear_hook()
...
@@ -10,6 +10,6 @@ function clear_hook()
}
}
require_once
'services.inc'
;
require_once
'services.inc'
;
$shortcut_section
=
'dhcp'
;
$shortcut_section
=
'dhcp
d
'
;
require_once
'diag_logs_template.inc'
;
require_once
'diag_logs_template.inc'
;
src/www/fbegin.inc
View file @
07923379
...
@@ -33,7 +33,10 @@ function find_service_by_shortcut($name)
...
@@ -33,7 +33,10 @@ function find_service_by_shortcut($name)
{
{
$shortcuts
=
array
();
$shortcuts
=
array
();
$shortcuts
[
'dhcp'
]
=
'dhcpd'
;
/* WIP unify mapping so "shortcuts" are no longer needed */
$shortcuts
[
'dhcpd'
]
=
'dhcpd'
;
$shortcuts
[
'dhcrelay'
]
=
'dhcrelay'
;
$shortcuts
[
'dhcrelay6'
]
=
'dhcrelay6'
;
$shortcuts
[
'forwarder'
]
=
'dnsmasq'
;
$shortcuts
[
'forwarder'
]
=
'dnsmasq'
;
$shortcuts
[
'gateways'
]
=
'apinger'
;
$shortcuts
[
'gateways'
]
=
'apinger'
;
$shortcuts
[
'ipsec'
]
=
'ipsec'
;
$shortcuts
[
'ipsec'
]
=
'ipsec'
;
...
...
src/www/services_dhcp.php
View file @
07923379
...
@@ -535,7 +535,7 @@ if ($act == "del") {
...
@@ -535,7 +535,7 @@ if ($act == "del") {
}
}
}
}
$shortcut_section
=
"dhcp"
;
$shortcut_section
=
'dhcpd'
;
$closehead
=
false
;
$closehead
=
false
;
include
(
"head.inc"
);
include
(
"head.inc"
);
...
...
src/www/services_dhcp_edit.php
View file @
07923379
...
@@ -306,7 +306,7 @@ if ($_POST) {
...
@@ -306,7 +306,7 @@ if ($_POST) {
}
}
}
}
$shortcut_section
=
"dhcp"
;
$shortcut_section
=
'dhcpd'
;
$closehead
=
false
;
$closehead
=
false
;
include
(
"head.inc"
);
include
(
"head.inc"
);
...
...
src/www/services_dhcp_relay.php
View file @
07923379
<?php
<?php
/*
/*
Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 2014-2015 Deciso B.V.
Copyright (C) 20
03-2004 Justin Ellison <justin@techadvise.com>.
Copyright (C) 20
10 Ermal Luçi
Copyright (C) 20
10 Ermal Luçi
Copyright (C) 20
03-2004 Justin Ellison <justin@techadvise.com>
All rights reserved.
All rights reserved.
Redistribution and use in source and binary forms, with or without
Redistribution and use in source and binary forms, with or without
...
@@ -94,7 +95,7 @@ if ($_POST) {
...
@@ -94,7 +95,7 @@ if ($_POST) {
}
}
}
}
$shortcut_section
=
"dhcp"
;
$shortcut_section
=
'dhcrelay'
;
$closehead
=
false
;
$closehead
=
false
;
include
(
"head.inc"
);
include
(
"head.inc"
);
...
...
src/www/services_dhcpv6.php
View file @
07923379
...
@@ -345,6 +345,7 @@ if ($_GET['act'] == "del") {
...
@@ -345,6 +345,7 @@ if ($_GET['act'] == "del") {
}
}
}
}
$shortcut_section
=
'dhcpd'
;
$closehead
=
false
;
$closehead
=
false
;
include
(
"head.inc"
);
include
(
"head.inc"
);
...
...
src/www/services_dhcpv6_edit.php
View file @
07923379
...
@@ -162,6 +162,8 @@ if ($_POST) {
...
@@ -162,6 +162,8 @@ if ($_POST) {
}
}
}
}
$shortcut_section
=
'dhcpd'
;
include
(
"head.inc"
);
include
(
"head.inc"
);
?>
?>
...
...
src/www/services_dhcpv6_relay.php
View file @
07923379
...
@@ -90,6 +90,7 @@ if ($_POST) {
...
@@ -90,6 +90,7 @@ if ($_POST) {
}
}
}
}
$shortcut_section
=
'dhcrelay6'
;
$closehead
=
false
;
$closehead
=
false
;
include
(
"head.inc"
);
include
(
"head.inc"
);
...
...
src/www/status_dhcp_leases.php
View file @
07923379
...
@@ -34,7 +34,7 @@ require_once("services.inc");
...
@@ -34,7 +34,7 @@ require_once("services.inc");
require_once
(
"pfsense-utils.inc"
);
require_once
(
"pfsense-utils.inc"
);
require_once
(
"interfaces.inc"
);
require_once
(
"interfaces.inc"
);
$shortcut_section
=
"dhcp"
;
$shortcut_section
=
'dhcpd'
;
$leasesfile
=
"
{
$g
[
'dhcpd_chroot_path'
]
}
/var/db/dhcpd.leases"
;
$leasesfile
=
"
{
$g
[
'dhcpd_chroot_path'
]
}
/var/db/dhcpd.leases"
;
...
...
src/www/status_dhcpv6_leases.php
View file @
07923379
...
@@ -74,6 +74,8 @@ if (($_GET['deleteip']) && (is_ipaddr($_GET['deleteip']))) {
...
@@ -74,6 +74,8 @@ if (($_GET['deleteip']) && (is_ipaddr($_GET['deleteip']))) {
// Load MAC-Manufacturer table
// Load MAC-Manufacturer table
$mac_man
=
load_mac_manufacturer_table
();
$mac_man
=
load_mac_manufacturer_table
();
$shortcut_section
=
'dhcpd'
;
include
(
"head.inc"
);
include
(
"head.inc"
);
?>
?>
...
...
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