Codebase list golang-github-farsightsec-go-nmsg / upstream/0.0_git20190917.04d2174 nmsg_base / ncap.proto
upstream/0.0_git20190917.04d2174

Tree @upstream/0.0_git20190917.04d2174 (Download .tar.gz)

ncap.proto @upstream/0.0_git20190917.04d2174

11a49f8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
syntax = "proto2";
package nmsg.base;

enum NcapType {
    IPV4 = 0;
    IPV6 = 1;
    Legacy = 2;
}

enum NcapLegacyType {
    Ncap_UDP = 0;
    Ncap_TCP = 1;
    Ncap_ICMP = 2;
}

message Ncap {
    required NcapType       type = 1;
    required bytes          payload = 2;

    // legacy NCAP fields
    optional NcapLegacyType ltype = 3;
    optional bytes          srcip = 4;
    optional bytes          dstip = 5;
    optional uint32         lint0 = 6;
    optional uint32         lint1 = 7;
}