The FreeRADIUS server $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Server pair manipulation macros. More...
Go to the source code of this file.
Macros | |
#define | pair_append_control(_attr, _da) fr_pair_append_by_da(request->control_ctx, _attr, &request->control_pairs, _da) |
Allocate and append a fr_pair_t to the control list. | |
#define | pair_append_reply(_attr, _da) fr_pair_append_by_da(request->reply_ctx, _attr, &request->reply_pairs, _da) |
Allocate and append a fr_pair_t to reply list. | |
#define | pair_append_request(_attr, _da) fr_pair_append_by_da(request->request_ctx, _attr, &request->request_pairs, _da) |
Allocate and append a fr_pair_t to the request list. | |
#define | pair_append_session_state(_attr, _da) fr_pair_append_by_da(request->session_state_ctx, _attr, &request->session_state_pairs, _da) |
Allocate and append a fr_pair_t to session-state list. | |
#define | pair_delete(_list, _pair_or_da) |
Delete one or move fr_pair_t in a list. | |
#define | pair_delete_control(_pair_or_da) pair_delete(&request->control_pairs, _pair_or_da) |
Delete a fr_pair_t in the control list. | |
#define | pair_delete_reply(_pair_or_da) pair_delete(&request->reply_pairs, _pair_or_da) |
Delete a fr_pair_t in the reply list. | |
#define | pair_delete_request(_pair_or_da) pair_delete(&request->request_pairs, _pair_or_da) |
Delete a fr_pair_t in the request list. | |
#define | pair_delete_session_state(_pair_or_da) pair_delete(&request->session_state_pairs, _pair_or_da) |
Delete a fr_pair_t in the session_state list. | |
#define | pair_prepend_control(_attr, _da) fr_pair_prepend_by_da(request->control_ctx, _attr, &request->control_pairs, _da) |
Allocate and prepend a fr_pair_t to the control list. | |
#define | pair_prepend_reply(_attr, _da) fr_pair_prepend_by_da(request->reply_ctx, _attr, &request->reply_pairs, _da) |
Allocate and prepend a fr_pair_t to reply list. | |
#define | pair_prepend_request(_attr, _da) fr_pair_prepend_by_da(request->request_ctx, _attr, &request->request_pairs, _da) |
Allocate and prepend a fr_pair_t to the request list. | |
#define | pair_prepend_session_state(_attr, _da) fr_pair_prepend_by_da(request->session_state_ctx, _attr, &request->session_state_pairs, _da) |
Allocate and prepend a fr_pair_t to session-state list. | |
#define | pair_update_control(_attr, _da) fr_pair_update_by_da_parent(request->control_ctx, _attr, _da) |
Return or allocate a fr_pair_t in the control list. | |
#define | pair_update_reply(_attr, _da) fr_pair_update_by_da_parent(request->reply_ctx, _attr, _da) |
Return or allocate a fr_pair_t in the reply list. | |
#define | pair_update_request(_attr, _da) fr_pair_update_by_da_parent(request->request_ctx, _attr, _da) |
Return or allocate a fr_pair_t in the request list. | |
#define | pair_update_session_state(_attr, _da) fr_pair_update_by_da_parent(request->session_state_ctx, _attr, _da) |
Return or allocate a fr_pair_t in the session_state list. | |
Server pair manipulation macros.
Definition in file pair.h.
#define pair_append_control | ( | _attr, | |
_da | |||
) | fr_pair_append_by_da(request->control_ctx, _attr, &request->control_pairs, _da) |
Allocate and append a fr_pair_t to the control list.
[in] | _attr | allocated. |
[in] | _da | fr_dict_attr_t of the pair to be found or allocated. |
#define pair_append_reply | ( | _attr, | |
_da | |||
) | fr_pair_append_by_da(request->reply_ctx, _attr, &request->reply_pairs, _da) |
Allocate and append a fr_pair_t to reply list.
[in] | _attr | allocated. |
[in] | _da | fr_dict_attr_t of the pair to be found or allocated. |
#define pair_append_request | ( | _attr, | |
_da | |||
) | fr_pair_append_by_da(request->request_ctx, _attr, &request->request_pairs, _da) |
Allocate and append a fr_pair_t to the request list.
[in] | _attr | allocated. |
[in] | _da | fr_dict_attr_t of the pair to be found or allocated. |
#define pair_append_session_state | ( | _attr, | |
_da | |||
) | fr_pair_append_by_da(request->session_state_ctx, _attr, &request->session_state_pairs, _da) |
Allocate and append a fr_pair_t to session-state list.
[in] | _attr | allocated. |
[in] | _da | fr_dict_attr_t of the pair to be found or allocated. |
#define pair_delete | ( | _list, | |
_pair_or_da | |||
) |
Delete one or move fr_pair_t in a list.
[in] | _list | to delete the pair from. |
[in] | _pair_or_da | To delete. May be a fr_pair_t or fr_dict_attr_t. |
#define pair_delete_control | ( | _pair_or_da | ) | pair_delete(&request->control_pairs, _pair_or_da) |
Delete a fr_pair_t in the control list.
[in] | _pair_or_da | To delete. May be a fr_pair_t or fr_dict_attr_t. |
#define pair_delete_reply | ( | _pair_or_da | ) | pair_delete(&request->reply_pairs, _pair_or_da) |
Delete a fr_pair_t in the reply list.
[in] | _pair_or_da | To delete. May be a fr_pair_t or fr_dict_attr_t. |
#define pair_delete_request | ( | _pair_or_da | ) | pair_delete(&request->request_pairs, _pair_or_da) |
Delete a fr_pair_t in the request list.
[in] | _pair_or_da | To delete. May be a fr_pair_t or fr_dict_attr_t. |
#define pair_delete_session_state | ( | _pair_or_da | ) | pair_delete(&request->session_state_pairs, _pair_or_da) |
Delete a fr_pair_t in the session_state list.
[in] | _pair_or_da | To delete. May be a fr_pair_t or fr_dict_attr_t. |
#define pair_prepend_control | ( | _attr, | |
_da | |||
) | fr_pair_prepend_by_da(request->control_ctx, _attr, &request->control_pairs, _da) |
Allocate and prepend a fr_pair_t to the control list.
[in] | _attr | allocated. |
[in] | _da | fr_dict_attr_t of the pair to be found or allocated. |
#define pair_prepend_reply | ( | _attr, | |
_da | |||
) | fr_pair_prepend_by_da(request->reply_ctx, _attr, &request->reply_pairs, _da) |
Allocate and prepend a fr_pair_t to reply list.
[in] | _attr | allocated. |
[in] | _da | fr_dict_attr_t of the pair to be found or allocated. |
#define pair_prepend_request | ( | _attr, | |
_da | |||
) | fr_pair_prepend_by_da(request->request_ctx, _attr, &request->request_pairs, _da) |
Allocate and prepend a fr_pair_t to the request list.
[in] | _attr | allocated. |
[in] | _da | fr_dict_attr_t of the pair to be found or allocated. |
#define pair_prepend_session_state | ( | _attr, | |
_da | |||
) | fr_pair_prepend_by_da(request->session_state_ctx, _attr, &request->session_state_pairs, _da) |
Allocate and prepend a fr_pair_t to session-state list.
[in] | _attr | allocated. |
[in] | _da | fr_dict_attr_t of the pair to be found or allocated. |
#define pair_update_control | ( | _attr, | |
_da | |||
) | fr_pair_update_by_da_parent(request->control_ctx, _attr, _da) |
Return or allocate a fr_pair_t in the control list.
[in] | _attr | allocated or found. |
[in] | _da | fr_dict_attr_t of the pair to be found or allocated. |
#define pair_update_reply | ( | _attr, | |
_da | |||
) | fr_pair_update_by_da_parent(request->reply_ctx, _attr, _da) |
Return or allocate a fr_pair_t in the reply list.
[in] | _attr | allocated or found. |
[in] | _da | fr_dict_attr_t of the pair to be found or allocated. |
#define pair_update_request | ( | _attr, | |
_da | |||
) | fr_pair_update_by_da_parent(request->request_ctx, _attr, _da) |
Return or allocate a fr_pair_t in the request list.
[in] | _attr | allocated or found. |
[in] | _da | fr_dict_attr_t of the pair to be found or allocated. |
#define pair_update_session_state | ( | _attr, | |
_da | |||
) | fr_pair_update_by_da_parent(request->session_state_ctx, _attr, _da) |
Return or allocate a fr_pair_t in the session_state list.
[in] | _attr | allocated or found. |
[in] | _da | fr_dict_attr_t of the pair to be found or allocated. |