Functions to decode DHCP options.
More...
#include <stdint.h>
#include <stddef.h>
#include <freeradius-devel/io/test_point.h>
#include <freeradius-devel/util/dns.h>
#include <freeradius-devel/util/proto.h>
#include <freeradius-devel/util/struct.h>
#include "dhcpv6.h"
#include "attrs.h"
Go to the source code of this file.
|
| static ssize_t | decode_option (TALLOC_CTX *ctx, fr_pair_list_t *out, fr_dict_attr_t const *parent, uint8_t const *data, size_t const data_len, void *decode_ctx) |
| |
| static ssize_t | decode_pair (TALLOC_CTX *ctx, fr_pair_list_t *out, NDEBUG_UNUSED fr_dict_attr_t const *parent, uint8_t const *data, size_t data_len, void *decode_ctx) |
| |
| static int | decode_test_ctx (void **out, TALLOC_CTX *ctx, UNUSED fr_dict_t const *dict, UNUSED fr_dict_attr_t const *root_da) |
| |
| static ssize_t | decode_tlv_trampoline (TALLOC_CTX *ctx, fr_pair_list_t *out, fr_dict_attr_t const *parent, uint8_t const *data, size_t const data_len, void *decode_ctx) |
| |
| static ssize_t | decode_value (TALLOC_CTX *ctx, fr_pair_list_t *out, fr_dict_attr_t const *parent, uint8_t const *data, size_t const data_len, void *decode_ctx) |
| |
| static ssize_t | decode_value_trampoline (TALLOC_CTX *ctx, fr_pair_list_t *out, fr_dict_attr_t const *parent, uint8_t const *data, size_t const data_len, void *decode_ctx) |
| | Handle arrays of DNS labels for fr_struct_from_network()
|
| |
| ssize_t | fr_dhcpv6_decode_foreign (TALLOC_CTX *ctx, fr_pair_list_t *out, uint8_t const *data, size_t data_len) |
| |
| ssize_t | fr_dhcpv6_decode_option (TALLOC_CTX *ctx, fr_pair_list_t *out, uint8_t const *data, size_t data_len, void *decode_ctx) |
| | Create a "normal" fr_pair_t from the given data.
|
| |
| static ssize_t | fr_dhcpv6_decode_proto (TALLOC_CTX *ctx, fr_pair_list_t *out, uint8_t const *data, size_t data_len, UNUSED void *proto_ctx) |
| |
Functions to decode DHCP options.
- Id
- 85e1cdf59923173579798d0f0ce5826c3386c2d8
- Author
- Arran Cudbard-Bell (a.cud.nosp@m.bard.nosp@m.b@fre.nosp@m.erad.nosp@m.ius.o.nosp@m.rg)
- Copyright
- 2018 The FreeRADIUS server project
-
2018 NetworkRADIUS SARL (legal.nosp@m.@net.nosp@m.workr.nosp@m.adiu.nosp@m.s.com)
Definition in file decode.c.
◆ DHCPV6_ORO_FORBIDDEN
Value: ((1ULL << 1) | \
(1ULL << 2) | \
(1ULL << 3) | \
(1ULL << 4) | \
(1ULL << 5) | \
(1ULL << 6) | \
(1ULL << 7) | \
(1ULL << 8) | \
(1ULL << 9) | \
(1ULL << 11) | \
(1ULL << 12) | \
(1ULL << 13) | \
(1ULL << 14) | \
(1ULL << 15) | \
(1ULL << 16) | \
(1ULL << 18) | \
(1ULL << 19) | \
(1ULL << 20) | \
(1ULL << 25) | \
(1ULL << 26))
Definition at line 44 of file decode.c.
◆ decode_option()
◆ decode_pair()
◆ decode_test_ctx()
◆ decode_tlv_trampoline()
◆ decode_value()
◆ decode_value_trampoline()
◆ fr_dhcpv6_decode_foreign()
◆ fr_dhcpv6_decode_option()
Create a "normal" fr_pair_t from the given data.
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | option-code | option-len | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Definition at line 483 of file decode.c.
◆ fr_dhcpv6_decode_proto()
◆ dhcpv6_tp_decode_pair
Initial value:= {
}
static int decode_test_ctx(void **out, TALLOC_CTX *ctx, UNUSED fr_dict_t const *dict, UNUSED fr_dict_attr_t const *root_da)
static ssize_t decode_pair(TALLOC_CTX *ctx, fr_pair_list_t *out, NDEBUG_UNUSED fr_dict_attr_t const *parent, uint8_t const *data, size_t data_len, void *decode_ctx)
Definition at line 575 of file decode.c.
◆ dhcpv6_tp_decode_proto
Initial value:= {
}
static ssize_t fr_dhcpv6_decode_proto(TALLOC_CTX *ctx, fr_pair_list_t *out, uint8_t const *data, size_t data_len, UNUSED void *proto_ctx)
Definition at line 581 of file decode.c.