FD.io VPP  v21.06-3-gbb25fbf28
Vector Packet Processing
nat_syslog.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2020 Cisco and/or its affiliates.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at:
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 /**
16  * @file
17  * @brief NAT syslog logging
18  */
19 #ifndef __included_nat_syslog_h__
20 #define __included_nat_syslog_h__
21 
22 #include <nat/lib/lib.h>
23 
24 void nat_syslog_nat44_apmadd (u32 ssubix, u32 sfibix, ip4_address_t * isaddr,
25  u16 isport, ip4_address_t * xsaddr, u16 xsport,
27 
28 void nat_syslog_nat44_apmdel (u32 ssubix, u32 sfibix, ip4_address_t * isaddr,
29  u16 isport, ip4_address_t * xsaddr, u16 xsport,
31 
32 void
33 nat_syslog_dslite_apmadd (u32 ssubix, ip6_address_t * sv6enc,
34  ip4_address_t * isaddr, u16 isport,
35  ip4_address_t * xsaddr, u16 xsport,
37 
38 void
39 nat_syslog_dslite_apmdel (u32 ssubix, ip6_address_t * sv6enc,
40  ip4_address_t * isaddr, u16 isport,
41  ip4_address_t * xsaddr, u16 xsport,
43 
44 void nat_syslog_nat44_sadd (u32 ssubix, u32 sfibix, ip4_address_t * isaddr,
45  u16 isport, ip4_address_t * idaddr, u16 idport,
46  ip4_address_t * xsaddr, u16 xsport,
47  ip4_address_t * xdaddr, u16 xdport,
48  nat_protocol_t proto, u8 is_twicenat);
49 
50 void nat_syslog_nat44_sdel (u32 ssubix, u32 sfibix, ip4_address_t * isaddr,
51  u16 isport, ip4_address_t * idaddr, u16 idport,
52  ip4_address_t * xsaddr, u16 xsport,
53  ip4_address_t * xdaddr, u16 xdport,
54  nat_protocol_t proto, u8 is_twicenat);
55 
56 void nat_syslog_nat64_sadd (u32 sfibix, ip6_address_t * isaddr, u16 isport,
57  ip4_address_t * xsaddr, u16 xsport,
58  ip4_address_t * xdaddr, u16 xdport,
60 
61 void nat_syslog_nat64_sdel (u32 sfibix, ip6_address_t * isaddr, u16 isport,
62  ip4_address_t * xsaddr, u16 xsport,
63  ip4_address_t * xdaddr, u16 xdport,
65 
66 #endif /* __included_nat_syslog_h__ */
67 /*
68  * fd.io coding-style-patch-verification: ON
69  *
70  * Local Variables:
71  * eval: (c-set-style "gnu")
72  * End:
73  */
lib.h
NAT port/address allocation lib.
nat_syslog_nat44_sadd
void nat_syslog_nat44_sadd(u32 ssubix, u32 sfibix, ip4_address_t *isaddr, u16 isport, ip4_address_t *idaddr, u16 idport, ip4_address_t *xsaddr, u16 xsport, ip4_address_t *xdaddr, u16 xdport, nat_protocol_t proto, u8 is_twicenat)
Definition: nat_syslog.c:197
nat_protocol_t
nat_protocol_t
Definition: lib.h:63
u16
unsigned short u16
Definition: types.h:57
nat_syslog_nat64_sdel
void nat_syslog_nat64_sdel(u32 sfibix, ip6_address_t *isaddr, u16 isport, ip4_address_t *xsaddr, u16 xsport, ip4_address_t *xdaddr, u16 xdport, nat_protocol_t proto)
Definition: nat_syslog.c:273
nat_syslog_nat44_apmdel
void nat_syslog_nat44_apmdel(u32 ssubix, u32 sfibix, ip4_address_t *isaddr, u16 isport, ip4_address_t *xsaddr, u16 xsport, nat_protocol_t proto)
Definition: nat_syslog.c:116
nat_syslog_dslite_apmdel
void nat_syslog_dslite_apmdel(u32 ssubix, ip6_address_t *sv6enc, ip4_address_t *isaddr, u16 isport, ip4_address_t *xsaddr, u16 xsport, nat_protocol_t proto)
Definition: nat_syslog.c:135
nat_syslog_nat64_sadd
void nat_syslog_nat64_sadd(u32 sfibix, ip6_address_t *isaddr, u16 isport, ip4_address_t *xsaddr, u16 xsport, ip4_address_t *xdaddr, u16 xdport, nat_protocol_t proto)
Definition: nat_syslog.c:263
ip4_address_t
Definition: ip4_packet.h:50
nat_syslog_nat44_apmadd
void nat_syslog_nat44_apmadd(u32 ssubix, u32 sfibix, ip4_address_t *isaddr, u16 isport, ip4_address_t *xsaddr, u16 xsport, nat_protocol_t proto)
Definition: nat_syslog.c:107
nat_syslog_nat44_sdel
void nat_syslog_nat44_sdel(u32 ssubix, u32 sfibix, ip4_address_t *isaddr, u16 isport, ip4_address_t *idaddr, u16 idport, ip4_address_t *xsaddr, u16 xsport, ip4_address_t *xdaddr, u16 xdport, nat_protocol_t proto, u8 is_twicenat)
Definition: nat_syslog.c:209
u32
unsigned int u32
Definition: types.h:88
nat_syslog_dslite_apmadd
void nat_syslog_dslite_apmadd(u32 ssubix, ip6_address_t *sv6enc, ip4_address_t *isaddr, u16 isport, ip4_address_t *xsaddr, u16 xsport, nat_protocol_t proto)
Definition: nat_syslog.c:125
u8
unsigned char u8
Definition: types.h:56
proto
vl_api_ip_proto_t proto
Definition: acl_types.api:51