nat: Add support for traps to the nat

This commit is contained in:
Daniel Willmann 2011-07-22 18:09:36 +02:00 committed by Holger Hans Peter Freyther
parent 721f0325b5
commit d79da3baac
1 changed files with 7 additions and 0 deletions

View File

@ -1224,6 +1224,13 @@ static int handle_ctrlif_msg(struct bsc_connection *bsc, struct msgb *msg)
cmd->variable = var;
}
/* We have to handle TRAPs before matching pending */
if (cmd->type == CTRL_TYPE_TRAP) {
ctrl_cmd_send_to_all(bsc->nat->ctrl, cmd);
talloc_free(cmd);
return 0;
}
/* Find the pending command */
pending = bsc_get_pending(bsc, cmd->id);
if (pending) {