1051 |
if (p = avl_find(m->req->request, DA_FRAMED_IP_ADDRESS)) { |
if (p = avl_find(m->req->request, DA_FRAMED_IP_ADDRESS)) { |
1052 |
/* termserver hint */ |
/* termserver hint */ |
1053 |
avl_add_pair(&m->user_reply, avp_dup(p)); |
avl_add_pair(&m->user_reply, avp_dup(p)); |
|
if (p = avl_find(m->req->request, |
|
|
DA_ADD_PORT_TO_IP_ADDRESS)) |
|
|
avl_add_pair(&m->user_reply, avp_dup(p)); |
|
1054 |
} |
} |
1055 |
} |
} |
1056 |
|
|
|
if ((p = avl_find(m->user_reply, DA_FRAMED_IP_ADDRESS)) && |
|
|
(tmp = avl_find(m->user_reply, DA_ADD_PORT_TO_IP_ADDRESS)) && |
|
|
tmp->avp_lvalue && |
|
|
(pp = avl_find(m->req->request, DA_NAS_PORT_ID))) |
|
|
/* NOTE: This only works because IP numbers are stored in |
|
|
* host order throughout the program. |
|
|
*/ |
|
|
p->avp_lvalue += pp->avp_lvalue; |
|
|
|
|
|
avl_delete(&m->user_reply, DA_ADD_PORT_TO_IP_ADDRESS); |
|
1057 |
} |
} |
1058 |
|
|
1059 |
void |
void |