FD.io VPP  v18.01.2-1-g9b554f3
Vector Packet Processing
icmp_proto.h
Go to the documentation of this file.
1 /*
2  *------------------------------------------------------------------
3  * Copyright (c) 2017 Cisco and/or its affiliates.
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  */
17 
18 #ifndef _ICMP_PROTO_H_
19 #define _ICMP_PROTO_H_
20 
21 int resolve_packet (void *in_pck, ssize_t in_size, void *out_pck,
22  uint32_t * out_size, uint8_t ip_addr[4]);
23 
24 int generate_packet (void *pck, uint32_t * size, uint8_t saddr[4],
25  uint8_t daddr[4], uint8_t hw_daddr[6], uint32_t seq);
26 
27 int print_packet (void *pck);
28 
29 #endif /* _ICMP_PROTO_H_ */
int generate_packet(void *pck, uint32_t *size, uint8_t saddr[4], uint8_t daddr[4], uint8_t hw_daddr[6], uint32_t seq)
Definition: icmp_proto.c:313
int print_packet(void *pck)
Definition: icmp_proto.c:72
int resolve_packet(void *in_pck, ssize_t in_size, void *out_pck, uint32_t *out_size, uint8_t ip_addr[4])
Definition: icmp_proto.c:207
u64 size
Definition: vhost-user.h:76