O-CU-UP
[scp/ocu/5gnr.git] / Include / pdcpComprohc.h
1 /******************************************************************************
2 ###############################################################################
3 #   Copyright (c) [2017-2020] [ICT/CAS]                                        #
4 #   Licensed under the ORAN Software License v1.0 (License)             #
5 ###############################################################################
6 ******************************************************************************/
7 #include <errno.h>
8 #include <signal.h>
9 #include <netdb.h>
10 #include <unistd.h>
11 #include <ucontext.h>
12 #include <stdlib.h>
13 #include <net/if.h>
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>
19 #include <execinfo.h> 
20 #include <getopt.h>
21 #include <pthread.h>
22 #include <memory.h> 
23 #include <regex.h> 
24
25 #include <stdio.h>  /* for the printf() function */
26  
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 */
31  
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 */
35
36
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);