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
0a4a0496
Commit
0a4a0496
authored
May 15, 2016
by
Simon Kelley
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Final PXE tweak, and release-note to reflect changes.
parent
45cb8dd9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
4 deletions
+25
-4
CHANGELOG
CHANGELOG
+15
-0
src/rfc2131.c
src/rfc2131.c
+10
-4
No files found.
CHANGELOG
View file @
0a4a0496
...
...
@@ -84,6 +84,21 @@ version 2.76
Add ARM32_EFI and ARM64_EFI as valid architectures in
--pxe-service.
Fix PXE booting for UEFI architectures. Modify PXE boot
sequence in this case to force the client to talk to dnsmasq
over port 4011. This makes PXE and especially proxy-DHCP PXE
work with these archictectures.
Workaround problems with UEFI PXE clients. There exist
in the wild PXE clients which have problems with PXE
boot menus. To work around this, when there's a single
--pxe-service which applies to client, then that target
will be booted directly, rather then sending a
single-item boot menu.
Many thanks to Jarek Polok, Michael Kuron and Dreamcat4
for their work on the long-standing UEFI PXE problem.
version 2.75
Fix reversion on 2.74 which caused 100% CPU use when a
...
...
src/rfc2131.c
View file @
0a4a0496
...
...
@@ -864,7 +864,8 @@ size_t dhcp_reply(struct dhcp_context *context, char *iface_name, int int_index,
if
(
tmp
)
{
struct
dhcp_boot
*
boot
;
int
redirect4011
=
0
;
if
(
tmp
->
netid
.
net
)
{
tmp
->
netid
.
next
=
netid
;
...
...
@@ -882,8 +883,13 @@ size_t dhcp_reply(struct dhcp_context *context, char *iface_name, int int_index,
clear_packet
(
mess
,
end
);
/* Redirect the client to port 4011 */
mess
->
siaddr
=
tmp
->
local
;
/* Redirect EFI clients to port 4011 */
if
(
pxearch
>=
6
)
{
redirect4011
=
1
;
mess
->
siaddr
=
tmp
->
local
;
}
/* Returns true if only one matching service is available. On port 4011,
it also inserts the boot file and server name. */
workaround
=
pxe_uefi_workaround
(
pxearch
,
tagif_netid
,
mess
,
tmp
->
local
,
now
,
pxe
);
...
...
@@ -906,7 +912,7 @@ size_t dhcp_reply(struct dhcp_context *context, char *iface_name, int int_index,
option_put
(
mess
,
end
,
OPTION_SERVER_IDENTIFIER
,
INADDRSZ
,
htonl
(
tmp
->
local
.
s_addr
));
pxe_misc
(
mess
,
end
,
uuid
);
prune_vendor_opts
(
tagif_netid
);
if
(
pxe
&&
!
workaround
)
if
(
(
pxe
&&
!
workaround
)
||
!
redirect4011
)
do_encap_opts
(
pxe_opts
(
pxearch
,
tagif_netid
,
tmp
->
local
,
now
),
OPTION_VENDOR_CLASS_OPT
,
DHOPT_VENDOR_MATCH
,
mess
,
end
,
0
);
log_packet
(
"PXE"
,
NULL
,
emac
,
emac_len
,
iface_name
,
ignore
?
"proxy-ignored"
:
"proxy"
,
NULL
,
mess
->
xid
);
...
...
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