// JsonElement returns a JSON encoding of the EthHdr struct.
JsonElement returns a JSON encoding of the EthHdr struct.
// JsonElement returns a JSON encoding of the EthHdr struct .
func (h *EthHdr) JsonElement() string {
	return fmt.Sprintf("\"ether_header\":{\"ether_shost\":\"%s\",\"ether_dhost\":\"%s\",\"ether_type\":%d}",
		h.SrcAddr.String(),
		h.DstAddr.String(),
		h.EtherType)
}
func ( h * EthHdr ) JsonElement ( ) string { return fmt . Sprintf ( " \" \" \" \" \" \" \" \" \" \" \" \" " , h . SrcAddr . String ( ) , h . DstAddr . String ( ) , h . EtherType ) }
JsonElement returns a JSON encoding of the EthHdr struct.
JsonElement returns a JSON encoding of the EthHdr struct .