summaryrefslogtreecommitdiffhomepage
path: root/dhcpv6/dhcpv6relay.go
diff options
context:
space:
mode:
Diffstat (limited to 'dhcpv6/dhcpv6relay.go')
-rw-r--r--dhcpv6/dhcpv6relay.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcpv6/dhcpv6relay.go b/dhcpv6/dhcpv6relay.go
index 1506dc4..02ed9bb 100644
--- a/dhcpv6/dhcpv6relay.go
+++ b/dhcpv6/dhcpv6relay.go
@@ -57,7 +57,7 @@ func (r *RelayMessage) Summary() string {
func (r *RelayMessage) ToBytes() []byte {
buf := uio.NewBigEndianBuffer(make([]byte, 0, RelayHeaderSize))
buf.Write8(byte(r.MessageType))
- buf.Write8(byte(r.HopCount))
+ buf.Write8(r.HopCount)
buf.WriteBytes(r.LinkAddr.To16())
buf.WriteBytes(r.PeerAddr.To16())
buf.WriteBytes(r.Options.ToBytes())