Codebase list golang-github-farsightsec-go-nmsg / 77242633-0eb2-4fc5-8b62-1e286e797302/main nmsg_base / packet.proto
77242633-0eb2-4fc5-8b62-1e286e797302/main

Tree @77242633-0eb2-4fc5-8b62-1e286e797302/main (Download .tar.gz)

packet.proto @77242633-0eb2-4fc5-8b62-1e286e797302/main

11a49f8
 
bd29207
11a49f8
 
 
 
 
 
 
 
 
 
 
 
 
syntax = "proto2";
package nmsg.base;
option go_package = "github.com/farsightsec/go-nmsg/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;
}