Package list golang-github-farsightsec-go-nmsg / b42ffe10-85cc-4b60-bb2b-1564e215832c/main nmsg_base / packet.proto
b42ffe10-85cc-4b60-bb2b-1564e215832c/main

Tree @b42ffe10-85cc-4b60-bb2b-1564e215832c/main (Download .tar.gz)

packet.proto @b42ffe10-85cc-4b60-bb2b-1564e215832c/mainraw · history · blame

syntax = "proto2";
package nmsg.base;

enum PacketType {
    // An IPv4 or IPv6 packet. The packet begins immediately with the IP
    // header and contains the complete packet payload. Distinguishing between
    // IPv4 and IPv6 packets is done by examining the IP version field in the
    // IP header.
    IP = 1;
}

message Packet {
    required PacketType     payload_type = 1;
    required bytes          payload = 2;
}