Project

General

Profile

Actions

Feature #7416

closed

DHCPv4 client does not support ``supersede`` statement for option 54

Added by Fabian Kurtz over 7 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
DHCP (IPv4)
Target version:
Start date:
03/21/2017
Due date:
% Done:

0%

Estimated time:
2.00 h
Plus Target Version:
22.01
Release Notes:

Description

The German cable internet provider Unitymedia uses DHCP relays which only answer to broadcasts. Dhclient renews WAN leases by sending unicasts to the relay, which doesn't forward them to the DHCP server. If, in the rebind phase, the broadcast packet is lost, the WAN IP expires, all connections are dropped and Dhclient needs to aquire a new lease. This is discussed in [[https://forum.pfsense.org/index.php?topic=127023.0]].

The problem can be avoided by setting DHCP option 54 (dhcp-server-identifier) to 255.255.255.255 via Interfaces->WAN->Advanced configuration->Option Modifiers. However, the required supersede statement for this option is not implemented in dhclient.c. Thus the DHCP client of Pfsense does not use the option and the value given by the DHCP server remains in effect (which points to the IP of the relay), which then results in the observed problem.

To solve this a section which checks if "supersede dhcp-server-identifier" is set has been added to dhclient.c (see "Start of the updated section" at line 855 in the attached file).


Files

dhclient.c (75.2 KB) dhclient.c Fabian Kurtz, 03/21/2017 08:53 AM
Actions

Also available in: Atom PDF