Skip to content

By the way, I grafed this patch onto dhcp-4.2.5 (well it just patched fine...) and we can.... #4

@rshutt

Description

@rshutt

By the way, I grafted this patch onto dhcp-4.2.5 (well it just patched fine...) and I can request a prefix length now with a pd hint

PD Pref Patch Page
The Patch

Oh and the specfile diff is below as well.

It just rpmbuild -bb's clean and then we have to edit the args to dhclient.

Finally, we add -Pl 60 to the WAN_DHCLIENT_OPTIONS in the wan def.

Jul 14 17:54:08 router.[REDACTED] ipv6-prefix-dhc[1220]: DBG: nmg_daemon: dhclient -P -nw -sf /usr/local/sbin/dhclient-ipv6-prefix -pf /run/nmutils/dhclient-ipv6-prefix-enp1s0.pid -lf /var/lib/dhclient/ipv6-prefix-enp1s0.leases -Pl 60 enp1s0
Jul 14 17:54:08 router.[REDACTED] ipv6-prefix-dhc[1223]: DBG: echo 1222 > /sys/fs/cgroup/systemd/system.slice/NetworkManager.service/tasks
Jul 14 17:54:08 router.[REDACTED] ipv6-prefix-dhc[1233]: DBG: interface: enp1s0 reason: PREINIT6
Jul 14 17:54:08 router.[REDACTED] ipv6-prefix-dhc[1234]: DBG: old:  new:  life:
Jul 14 17:54:09 router.[REDACTED] dhclient[1235]: XMT: Rebind on enp1s0, interval 970ms.
Jul 14 17:54:09 router.[REDACTED] dhclient[1235]: RCV: Reply message on enp1s0 from fe80::[REDACTED]:b046.
Jul 14 17:54:09 router.[REDACTED] ipv6-prefix-dhc[1244]: DBG: interface: enp1s0 reason: REBIND6
Jul 14 17:54:09 router.[REDACTED] ipv6-prefix-dhc[1245]: DBG: old: 2601:[REDACTED]:a160::/60 new: 2601:[REDACTED]:a160::/60 life: 3167
Jul 14 17:54:09 router.[REDACTED] ipv6-prefix-dhc[1266]: DBG: echo 2601:[REDACTED]:7255/64 > /run/nmutils/ipv6-prefix-enp1s0.state

*** dhcp.spec.orig	2019-07-14 16:55:06.029872196 -0400
--- dhcp.spec	2019-07-14 17:10:46.994198263 -0400
***************
*** 18,24 ****
  Summary:  Dynamic host configuration protocol software
  Name:     dhcp
  Version:  4.2.5
! Release:  68%{?dist}.1
  # NEVER CHANGE THE EPOCH on this package.  The previous maintainer (prior to
  # dcantrell maintaining the package) made incorrect use of the epoch and
  # that's why it is at 12 now.  It should have never been used, but it was.
--- 18,24 ----
  Summary:  Dynamic host configuration protocol software
  Name:     dhcp
  Version:  4.2.5
! Release:  68%{?dist}.2wanted_plen
  # NEVER CHANGE THE EPOCH on this package.  The previous maintainer (prior to
  # dcantrell maintaining the package) made incorrect use of the epoch and
  # that's why it is at 12 now.  It should have never been used, but it was.
***************
*** 109,114 ****
--- 109,115 ----
  # CVE-2018-5733
  Patch70:  dhcp-4.2.5-reference_count_overflow.patch
  Patch71:  dhcp-4.2.5-centos-branding.patch
+ Patch72:  dhcp-ia_pd-wanted_plen.patch
  
  
  BuildRequires: autoconf
***************
*** 439,444 ****
--- 440,447 ----
  %patch70 -p1 -b .reference_overflow
  %patch71 -p1
  
+ %patch72 -p0 -F2
+ 
  # Update paths in all man pages
  for page in client/dhclient.conf.5 client/dhclient.leases.5 \
              client/dhclient-script.8 client/dhclient.8 ; do

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions