spkt: correct some common header fields units
The following fields are not Bytes:
header length
current Info Field offset
current Hop Field offset
@@ -121,7 +121,7 @@ func (c *CmnHdr) HopFOffBytes() int {
func (c CmnHdr) String() string {
return fmt.Sprintf(
- "Ver:%d Dst:%s Src:%s TotalLen:%dB HdrLen: %dB CurrInfoF:%dB CurrHopF:%dB NextHdr:%s",
+ "Ver:%d Dst:%s Src:%s TotalLen:%dB HdrLen: %d CurrInfoF:%d CurrHopF:%d NextHdr:%s",
c.Ver, c.DstType, c.SrcType, c.TotalLen, c.HdrLen, c.CurrInfoF, c.CurrHopF, c.NextHdr,
)
}
