| 557 | |
| 558 | |
| 559 | static inline int dm_peer_send_msg(struct dm_message *msg) |
| 560 | { |
| 561 | aaa_message *am = msg->am; |
| 562 | |
| 563 | switch (am->type) { |
| 564 | case AAA_AUTH: |
| 565 | return dm_send_auth(msg); |
| 566 | case AAA_ACCT: |
| 567 | return dm_send_acct(msg); |
| 568 | case AAA_CUSTOM_REQ: |
| 569 | return dm_send_custom_req(msg); |
| 570 | case AAA_CUSTOM_RPL: |
| 571 | return dm_send_custom_rpl(msg); |
| 572 | default: |
| 573 | LM_ERR("unsupported AAA message type (%d), skipping\n", am->type); |
| 574 | } |
| 575 | |
| 576 | return -1; |
| 577 | } |
| 578 | |
| 579 | |
| 580 | static int dm_prepare_globals(void) |
no test coverage detected