diff options
author | Pablo Mazzini <pmazzini@gmail.com> | 2022-10-01 13:35:30 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-01 13:35:30 +0100 |
commit | 5308ebe5334c1fbefc2a12a6fae01e3c75b3c2cf (patch) | |
tree | bf8f054c33dbfb5c7ef27a285dc2b410e90875b2 | |
parent | 17a7e45e47326931084145a08aaeb1470f6504dd (diff) | |
parent | ea8b2cd4dcf75da1cc1e9bebc85afe0761d858fd (diff) |
Merge pull request #481 from twelho/newinform-formatting-consistency
dhcpv4: make NewInform() formatting consistent with neighbors
-rw-r--r-- | dhcpv4/dhcpv4.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/dhcpv4/dhcpv4.go b/dhcpv4/dhcpv4.go index e2fd190..89c7184 100644 --- a/dhcpv4/dhcpv4.go +++ b/dhcpv4/dhcpv4.go @@ -222,8 +222,7 @@ func PrependModifiers(m []Modifier, other ...Modifier) []Modifier { // NewInform builds a new DHCPv4 Informational message with the specified // hardware address. func NewInform(hwaddr net.HardwareAddr, localIP net.IP, modifiers ...Modifier) (*DHCPv4, error) { - return New(PrependModifiers( - modifiers, + return New(PrependModifiers(modifiers, WithHwAddr(hwaddr), WithMessageType(MessageTypeInform), WithClientIP(localIP), |