BIND 10 #2264: Pkt4::pack() and Pkt6::pack() should throw an exception on failure
BIND 10 Development
do-not-reply at isc.org
Fri Sep 14 10:32:27 UTC 2012
#2264: Pkt4::pack() and Pkt6::pack() should throw an exception on failure
-------------------------------------+-------------------------------------
Reporter: stephen | Owner:
Type: enhancement | Status: new
Priority: medium | Milestone: DHCP
Component: dhcp | 2012
Sensitive: 0 | Keywords:
Sub-Project: DHCP | Defect Severity:
Estimated Difficulty: 0 | Medium
Total Hours: 0 | Feature Depending on Ticket:
| Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
The pack() methods of Pkt4 and Pkt6 currently return a bool value, with
false indicating a failure. A failure can also be signalled by an
exception being thrown. This ticket removes the inconsistency: the
functions should be declared {{{void}}} and packing errors indicated by
the throwing of an exception. The code where they are used (in the
DHCP4/6 server) must be modified to handle the change.
For more details, see [comment:13:ticket:1545 this comment] on ticket
#1545.
--
Ticket URL: <http://bind10.isc.org/ticket/2264>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list