Functions to decode TFTP packets.
More...
#include <freeradius-devel/util/udp.h>
#include <freeradius-devel/io/test_point.h>
#include "tftp.h"
#include "attrs.h"
Go to the source code of this file.
Functions to decode TFTP packets.
- Id
- 106a0161b95d8eda0f0ec116748046c932ff947e
- Author
- Jorge Pereira jpere.nosp@m.ira@.nosp@m.freer.nosp@m.adiu.nosp@m.s.org
- Copyright
- 2021 The FreeRADIUS server project.
-
2021 Network RADIUS SAS (legal.nosp@m.@net.nosp@m.workr.nosp@m.adiu.nosp@m.s.com)
Definition in file decode.c.
◆ fr_tftp_ctx_t
Used as the decoder ctx.
Used as the encoder ctx.
Definition at line 275 of file decode.c.
◆ _decode_test_ctx()
◆ decode_test_ctx()
static int decode_test_ctx |
( |
void ** |
out, |
|
|
TALLOC_CTX * |
ctx |
|
) |
| |
|
static |
◆ fr_tftp_decode()
2 bytes 2 bytes
| Opcode | Block # |
Figure 5-3: ACK packet
2 bytes 2 bytes string 1 byte
| Opcode | ErrorCode | ErrMsg | 0 |
Figure 5-4: ERROR packet
Definition at line 74 of file decode.c.
◆ fr_tftp_decode_proto()
◆ tftp_tp_decode_proto
Initial value:= {
}
static ssize_t fr_tftp_decode_proto(TALLOC_CTX *ctx, fr_pair_list_t *out, uint8_t const *data, size_t data_len, UNUSED void *proto_ctx)
static int decode_test_ctx(void **out, TALLOC_CTX *ctx)
Definition at line 312 of file decode.c.