Documentation
¶
Overview ¶
Package p4gen provides P4 programmable switch code generation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct {
Name string `json:"name"`
Fields map[string]int `json:"fields"` // field name → bit width
}
Header represents a P4 header definition.
type Program ¶
type Program struct {
Protocol string `json:"protocol"`
Headers []Header `json:"headers"`
Tables []Table `json:"tables"`
}
Program represents a P4 program.
Click to show internal directories.
Click to hide internal directories.