Codebase list golang-github-farsightsec-go-nmsg / 119fac34-eb99-4b89-bd10-103c2c0ce46f/main nmsg_base / ncap.proto
119fac34-eb99-4b89-bd10-103c2c0ce46f/main

Tree @119fac34-eb99-4b89-bd10-103c2c0ce46f/main (Download .tar.gz)

ncap.proto @119fac34-eb99-4b89-bd10-103c2c0ce46f/mainraw · history · blame

syntax = "proto2";
package nmsg.base;
option go_package = "github.com/farsightsec/go-nmsg/nmsg_base";

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

    enum NcapLegacyType {
        UDP = 0;
        TCP = 1;
        ICMP = 2;
    }

    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;
}