File: packetparser.h

package info (click to toggle)
tinyssh 20250501-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,388 kB
  • sloc: ansic: 20,245; sh: 1,582; python: 1,449; makefile: 913
file content (33 lines) | stat: -rw-r--r-- 1,828 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef PACKETPARSER_H____
#define PACKETPARSER_H____

#include "crypto_uint32.h"
#include "crypto_uint8.h"

extern long long packetparser_uint8_(const char *, unsigned long long,
                                     const unsigned char *, long long,
                                     long long, crypto_uint8 *);
extern long long packetparser_uint32_(const char *, unsigned long long,
                                      const unsigned char *, long long,
                                      long long, crypto_uint32 *);
extern long long packetparser_copy_(const char *, unsigned long long,
                                    const unsigned char *, long long, long long,
                                    unsigned char *, long long);
extern long long packetparser_skip_(const char *, unsigned long long,
                                    const unsigned char *, long long, long long,
                                    long long);
extern long long packetparser_end_(const char *, unsigned long long,
                                   const unsigned char *, long long, long long);

#define packetparser_uint8(a, b, cc, d)                                        \
    packetparser_uint8_(__FILE__, __LINE__, (a), (b), (cc), (d))
#define packetparser_uint32(a, b, cc, d)                                       \
    packetparser_uint32_(__FILE__, __LINE__, (a), (b), (cc), (d))
#define packetparser_copy(a, b, cc, d, e)                                      \
    packetparser_copy_(__FILE__, __LINE__, (a), (b), (cc), (d), (e))
#define packetparser_skip(a, b, cc, d)                                         \
    packetparser_skip_(__FILE__, __LINE__, (a), (b), (cc), (d))
#define packetparser_end(a, b, cc)                                             \
    packetparser_end_(__FILE__, __LINE__, (a), (b), (cc))

#endif