aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cnat/cnat_maglev.h
blob: a71dd3ce796f241dbadbdfbd961d946173a721b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* SPDX-License-Identifier: Apache-2.0
 * Copyright(c) 2022 Cisco Systems, Inc.
 */

#ifndef __CNAT_MAGLEV_H__
#define __CNAT_MAGLEV_H__

#include <cnat/cnat_types.h>
#include <cnat/cnat_translation.h>

typedef struct
{
  /* offset & skip used for sorting, should be first */
  u32 offset;
  u32 skip;
  u32 index;
} cnat_maglev_perm_t;

extern void cnat_translation_init_maglev (cnat_translation_t *ct);

#endif