blob: 801f2fbdb0ef6108f0d3a41497cc2b950ca88046 (
plain)
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
|
/* See the file COPYING for licensing information. */
#if defined HAVE_CONFIG_H
#include <config.h>
#endif
#include <stdio.h>
#include <assert.h>
#include <freeradius/libradius.h>
#include <radsec/radsec.h>
#include <radsec/radsec-impl.h>
#include "debug.h"
void
rs_dump_packet (const struct rs_packet *pkt)
{
const RADIUS_PACKET *p = pkt->rpkt;
assert(p);
fprintf (stderr, "\tCode: %u, Identifier: %u, Lenght: %u\n",
p->code,
p->id,
p->data_len);
}
void
rs_dump_attr (const struct rs_attr *attr)
{
vp_printlist (stderr, attr->vp);
}
|