1 /******************************************************************************
2 ###############################################################################
3 # Copyright (c) [2017-2020] [ICT/CAS] #
4 # Licensed under the ORAN Software License v1.0 (License) #
5 ###############################################################################
6 ******************************************************************************/
14 #include <netinet/ip.h>
15 #include <netinet/if_ether.h>
16 #include <netinet/udp.h>
17 #include <arpa/inet.h>
18 #include <sys/ioctl.h>
25 #include <stdio.h> /* for the printf() function */
27 /* includes required to create a fake IP packet */
28 #include <netinet/ip.h> /* for the IPv4 header */
29 #include <string.h> /* for the strlen() */
30 #include <rohc/rohc_buf.h> /* for the rohc_buf_*() functions */
32 /* includes required to use the compression part of the ROHC library */
33 #include <time.h> /* required by time() */
34 #include <rohc/rohc_comp.h> /* for rohc_comp_*() functions */
37 struct rohc_comp * create_compressor();
38 bool compress_with_callback(struct rohc_comp *const compressor,struct rohc_buf uncomp_packet,struct rohc_buf *const packet);