File: packet.proto

package info (click to toggle)
golang-github-farsightsec-go-nmsg 0.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental, forky, sid, trixie
  • size: 500 kB
  • sloc: sh: 21; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 490 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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;
}