// CsvElement returns a CSV encoding of the IpHdr struct.
// The string "IP4" signifies the beginning of the IpHdr.
CsvElement returns a CSV encoding of the IpHdr struct.
The string "IP4" signifies the beginning of the IpHdr.
// CsvElement returns a CSV encoding of the IpHdr struct . // The string " IP4 " signifies the beginning of the IpHdr .
func (h *IpHdr) CsvElement() string {
	return fmt.Sprintf("\"IP4\",\"%s\",\"%s\",%d",
		h.SrcAddr.String(),
		h.DstAddr.String(),
		h.Protocol)
}
func ( h * IpHdr ) CsvElement ( ) string { return fmt . Sprintf ( " \" \" \" \" \" \" " , h . SrcAddr . String ( ) , h . DstAddr . String ( ) , h . Protocol ) }
CsvElement returns a CSV encoding of the IpHdr struct.
CsvElement returns a CSV encoding of the IpHdr struct .