FreeBSD Bugzilla – Attachment 193518 Details for
Bug 206721
FreeBSDs DHCP client(dhclient) does not support the interface-mtu option(option 26).
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
allow to supersede interface-mtu
dhclient_interface_mtu_supersede.diff (text/plain), 681 bytes, created by
Roman Bogorodskiy
on 2018-05-18 17:10:46 UTC
(
hide
)
Description:
allow to supersede interface-mtu
Filename:
MIME Type:
Creator:
Roman Bogorodskiy
Created:
2018-05-18 17:10:46 UTC
Size:
681 bytes
patch
obsolete
>diff --git a/sbin/dhclient/dhclient.c b/sbin/dhclient/dhclient.c >index 070fcf5374f..652f99c214a 100644 >--- a/sbin/dhclient/dhclient.c >+++ b/sbin/dhclient/dhclient.c >@@ -828,7 +828,13 @@ bind_lease(struct interface_info *ip) > > opt = &ip->client->new->options[DHO_INTERFACE_MTU]; > if (opt->len == sizeof(u_int16_t)) { >- u_int16_t mtu = be16dec(opt->data); >+ u_int16_t mtu = 0; >+ if (ip->client->config->default_actions[DHO_INTERFACE_MTU] == >+ ACTION_SUPERSEDE) >+ mtu = getUShort(ip->client->config->defaults[DHO_INTERFACE_MTU].data); >+ else >+ mtu = be16dec(opt->data); >+ > if (mtu < MIN_MTU) > warning("mtu size %u < %d: ignored", (unsigned)mtu, MIN_MTU); > else
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 206721
: 193518