00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef ROHC_COMP_UDP_H
00028 #define ROHC_COMP_UDP_H
00029
00030 #include "rohc_comp_internals.h"
00031
00032 #include <stdint.h>
00033 #include <stdbool.h>
00034
00035
00036
00037
00038
00039
00040 bool c_udp_check_profile(const struct rohc_comp *const comp,
00041 const struct net_pkt *const packet)
00042 __attribute__((warn_unused_result, nonnull(1, 2)));
00043
00044 bool c_udp_check_context(const struct rohc_comp_ctxt *context,
00045 const struct net_pkt *const packet)
00046 __attribute__((warn_unused_result, nonnull(1, 2), pure));
00047
00048 size_t udp_code_uo_remainder(const struct rohc_comp_ctxt *context,
00049 const uint8_t *next_header,
00050 uint8_t *const dest,
00051 const size_t counter)
00052 __attribute__((warn_unused_result, nonnull(1, 2, 3)));
00053
00054 size_t udp_code_static_udp_part(const struct rohc_comp_ctxt *const context,
00055 const uint8_t *const next_header,
00056 uint8_t *const dest,
00057 const size_t counter)
00058 __attribute__((warn_unused_result, nonnull(1, 2, 3)));
00059
00060 #endif
00061