lsquic_parse_common.h revision 9626cfc2
1/* Copyright (c) 2017 - 2018 LiteSpeed Technologies Inc.  See LICENSE. */
2/*
3 * lsquic_parse_common.h
4 */
5
6#ifndef LSQUIC_PARSE_COMMON_H
7#define LSQUIC_PARSE_COMMON_H 1
8
9struct lsquic_packet_in;
10
11struct packin_parse_state {
12    const unsigned char     *pps_p;      /* Pointer to packet number */
13    unsigned                 pps_nbytes; /* Number of bytes in packet number */
14};
15
16int
17lsquic_parse_packet_in_begin (struct lsquic_packet_in *,
18                size_t length, int is_server, struct packin_parse_state *);
19
20int
21lsquic_iquic_parse_packet_in_begin (struct lsquic_packet_in *,
22                size_t length, int is_server, struct packin_parse_state *);
23
24#endif
25