mirror of
https://github.com/siderolabs/talos.git
synced 2025-10-28 23:11:37 +01:00
Implement initial set of backend controllers/resources to handle nftables chains/rules etc. Replace the KubeSpan nftables operations with controller-based. See #4421 Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
19 lines
466 B
Go
19 lines
466 B
Go
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
package nethelpers
|
|
|
|
//go:generate enumer -type=Protocol -linecomment -text
|
|
|
|
// Protocol is a inet protocol.
|
|
type Protocol uint8
|
|
|
|
// Protocol constants.
|
|
//
|
|
//structprotogen:gen_enum
|
|
const (
|
|
ProtocolTCP Protocol = 0x6 // tcp
|
|
ProtocolUDP Protocol = 0x11 // udp
|
|
)
|