DHCP client/server ports incorrectly defined in constants file

Bug #1882588 reported by Brian Haley
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Brian Haley

Bug Description

The DHCP client and server port numbers are incorrectly defined in the constants file:

DHCP_CLIENT_PORT = 67
DHCP_RESPONSE_PORT = 68

IANA defines these the opposite - 68 for the client and 67 for the server.

Neutron uses them backwards, so will also need an update to work-around so a new release of neutron-lib doesn't break things.

Also, other plugins seemed to have noticed and worked around this already, at least Dragonflow and Cisco have defined them correctly locally:

http://codesearch.openstack.org/?q=DHCP_CLIENT_PORT&i=nope&files=&repos=

Tags: lib
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-lib (master)

Fix proposed to branch: master
Review: https://review.opendev.org/734181

Changed in neutron:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.opendev.org/734182

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-lib (master)

Reviewed: https://review.opendev.org/734181
Committed: https://git.openstack.org/cgit/openstack/neutron-lib/commit/?id=d7900610163705a624493a9924c72abfbc338b49
Submitter: Zuul
Branch: master

commit d7900610163705a624493a9924c72abfbc338b49
Author: Brian Haley <email address hidden>
Date: Mon Jun 8 15:27:20 2020 -0400

    Correctly define DHCP port numbers for IPv4

    The client and server DHCP port numbers are opposite
    of what they should be according to the IANA definitions.

    Change-Id: Iaa74ec5d569a3dee65f7e788394ffe063748bab6
    Closes-bug: #1882588

Changed in neutron:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron (master)

Fix proposed to branch: master
Review: https://review.opendev.org/738111

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on neutron (master)

Change abandoned by Brian Haley (<email address hidden>) on branch: master
Review: https://review.opendev.org/738111
Reason: Squashed into https://review.opendev.org/#/c/734182/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron (master)

Reviewed: https://review.opendev.org/734182
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=0ffaac1db23d916c7a73437b13fab56bb9f6b6da
Submitter: Zuul
Branch: master

commit 0ffaac1db23d916c7a73437b13fab56bb9f6b6da
Author: Brian Haley <email address hidden>
Date: Mon Jun 8 15:29:13 2020 -0400

    Use the correct value for the DHCP client port number

    Version 2.4.0 of neutron-lib has the DHCP port numbers
    correct, so start using them.

    Also updated other code in linux/dhcp.py to use the
    constants as well, instead of re-defining them.

    Closes-bug: #1882588

    Change-Id: I5dc1d8e7bcc94efd1fab68d980d60e3130d5e5bc

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.