summaryrefslogtreecommitdiff
path: root/accel-pppd/radius/packet.c
diff options
context:
space:
mode:
authorKozlov Dmitry <dima@server>2011-08-24 18:29:10 +0400
committerKozlov Dmitry <dima@server>2011-08-24 18:29:10 +0400
commit52223ac31751a5ec0bd8be3beb3fdd0559353b54 (patch)
tree5bd0f19bd0c7908b3adda362dfc0de0709559e34 /accel-pppd/radius/packet.c
parentfd88c1f5973cba63c3b001d02d2c668344c75736 (diff)
downloadaccel-ppp-52223ac31751a5ec0bd8be3beb3fdd0559353b54.tar.gz
accel-ppp-52223ac31751a5ec0bd8be3beb3fdd0559353b54.zip
radius: better radius server fails handling
Diffstat (limited to 'accel-pppd/radius/packet.c')
-rw-r--r--accel-pppd/radius/packet.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/accel-pppd/radius/packet.c b/accel-pppd/radius/packet.c
index 7f90a100..39541f7c 100644
--- a/accel-pppd/radius/packet.c
+++ b/accel-pppd/radius/packet.c
@@ -275,7 +275,7 @@ void rad_packet_free(struct rad_packet_t *pack)
mempool_free(pack);
}
-void rad_packet_print(struct rad_packet_t *pack, void (*print)(const char *fmt, ...))
+void rad_packet_print(struct rad_packet_t *pack, struct rad_server_t *s, void (*print)(const char *fmt, ...))
{
struct rad_attr_t *attr;
struct rad_dict_value_t *val;
@@ -285,7 +285,10 @@ void rad_packet_print(struct rad_packet_t *pack, void (*print)(const char *fmt,
uint16_t u16[4];
} ifid_u;
- print("[RADIUS ");
+ if (s)
+ print("[RADIUS(%i) ", s->id);
+ else
+ print("[RADIUS ");
switch(pack->code) {
case CODE_ACCESS_REQUEST:
print("Access-Request");