func (h RawHeader) Header() Header {
	var header Header
	header.Version = (h.VersionIHL >> 4) & 0x0F
	header.IHL = h.VersionIHL & 0x07
	header.ToS = h.ToS
	header.TotalLength = h.TotalLength
	header.Identification = h.Identification
	header.Flags = uint8(h.FlagsFragmentOffset>>13) & 0x0007
	header.FragmentOffset = h.FlagsFragmentOffset & 0x1FFF
	header.TTL = h.TTL
	header.Protocol = h.Protocol
	header.Checksum = h.Checksum
	header.Source = h.Source
	header.Destination = h.Destination
	return header
}
// Header converts the RawHeader to a logic Header.
Header converts the RawHeader to a logic Header.
// Header converts the RawHeader to a logic Header .
func (h RawHeader) Header() Header {
	var header Header
	header.Version = (h.VersionIHL >> 4) & 0x0F
	header.IHL = h.VersionIHL & 0x07
	header.ToS = h.ToS
	header.TotalLength = h.TotalLength
	header.Identification = h.Identification
	header.Flags = uint8(h.FlagsFragmentOffset>>13) & 0x0007
	header.FragmentOffset = h.FlagsFragmentOffset & 0x1FFF
	header.TTL = h.TTL
	header.Protocol = h.Protocol
	header.Checksum = h.Checksum
	header.Source = h.Source
	header.Destination = h.Destination
	return header
}
func ( h RawHeader ) Header ( ) Header { var header Header header . Version = ( h . VersionIHL >> 4 ) & 0x0F header . IHL = h . VersionIHL & 0x07 header . ToS = h . ToS header . TotalLength = h . TotalLength header . Identification = h . Identification header . Flags = uint8 ( h . FlagsFragmentOffset >> 13 ) & 0x0007 header . FragmentOffset = h . FlagsFragmentOffset & 0x1FFF header . TTL = h . TTL header . Protocol = h . Protocol header . Checksum = h . Checksum header . Source = h . Source header . Destination = h . Destination return header }
Header converts the RawHeader to a logic Header.
Header converts the RawHeader to a logic Header .