summaryrefslogtreecommitdiffhomepage
path: root/dhcpv4
diff options
context:
space:
mode:
authorChristopher Koch <c@chrisko.ch>2019-01-20 21:50:04 +0000
committerChris K <c@chrisko.ch>2019-01-20 13:58:45 -0800
commit2be5cae32d33f01ddecf6f167a9c0e5290e6d58f (patch)
tree66a364bede7e9ec9a104f6a2b38f283f8c681dbb /dhcpv4
parentd2b44fc606e0383a8d81f9dfe1c57f14f22f90fb (diff)
dhcpv4: fix TransactionID in Summary
Diffstat (limited to 'dhcpv4')
-rw-r--r--dhcpv4/dhcpv4.go20
1 files changed, 10 insertions, 10 deletions
diff --git a/dhcpv4/dhcpv4.go b/dhcpv4/dhcpv4.go
index 1aa2603..bbb2f37 100644
--- a/dhcpv4/dhcpv4.go
+++ b/dhcpv4/dhcpv4.go
@@ -356,19 +356,19 @@ func (d *DHCPv4) String() string {
func (d *DHCPv4) Summary() string {
ret := fmt.Sprintf(
"DHCPv4\n"+
- " opcode=%v\n"+
- " hwtype=%v\n"+
+ " opcode=%s\n"+
+ " hwtype=%s\n"+
" hopcount=%v\n"+
- " transactionid=0x%08x\n"+
+ " transactionid=%s\n"+
" numseconds=%v\n"+
" flags=%v (0x%02x)\n"+
- " clientipaddr=%v\n"+
- " youripaddr=%v\n"+
- " serveripaddr=%v\n"+
- " gatewayipaddr=%v\n"+
- " clienthwaddr=%v\n"+
- " serverhostname=%v\n"+
- " bootfilename=%v\n",
+ " clientipaddr=%s\n"+
+ " youripaddr=%s\n"+
+ " serveripaddr=%s\n"+
+ " gatewayipaddr=%s\n"+
+ " clienthwaddr=%s\n"+
+ " serverhostname=%s\n"+
+ " bootfilename=%s\n",
d.OpCode,
d.HWType,
d.HopCount,