| 1 | /* |
| 2 | * This file is part of the go-nft project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | * |
| 16 | * Copyright 2021 Red Hat, Inc. |
| 17 | * |
| 18 | */ |
| 19 | |
| 20 | package schema |
| 21 | |
| 22 | // Table Address Families |
| 23 | const ( |
| 24 | FamilyIP = "ip" // IPv4 address AddressFamily. |
| 25 | FamilyIP6 = "ip6" // IPv6 address AddressFamily. |
| 26 | FamilyINET = "inet" // Internet (IPv4/IPv6) address AddressFamily. |
| 27 | FamilyARP = "arp" // ARP address AddressFamily, handling IPv4 ARP packets. |
| 28 | FamilyBridge = "bridge" // Bridge address AddressFamily, handling packets which traverse a bridge device. |
| 29 | FamilyNETDEV = "netdev" // Netdev address AddressFamily, handling packets from ingress. |
| 30 | ) |
| 31 | |
| 32 | type Table struct { |
| 33 | Family string `json:"family"` |
| 34 | Name string `json:"name"` |
| 35 | } |