63,7 → 63,7 |
.remove_callback = pending_call_remove_callback |
}; |
|
static void connection_set(int phone, int server, proto_t *proto) |
void ipcp_connection_set(int phone, int server, proto_t *proto) |
{ |
if (phone <0 || phone >= MAX_PHONE) return; |
connections[phone].server = server; |
71,7 → 71,7 |
have_conn[phone] = 1; |
} |
|
static void connection_clear(int phone) |
void ipcp_connection_clear(int phone) |
{ |
have_conn[phone] = 0; |
connections[phone].server = 0; |
172,7 → 172,7 |
cphone = IPC_GET_ARG5(*answer); |
printf("registering connection (phone %d, protocol: %s)\n", cphone, |
proto->name); |
connection_set(cphone, 0, proto); |
ipcp_connection_set(cphone, 0, proto); |
} |
} |
|
221,7 → 221,7 |
void ipcp_hangup(int phone, int rc) |
{ |
printf("hangup phone %d -> %d\n", phone, rc); |
connection_clear(phone); |
ipcp_connection_clear(phone); |
} |
|
/** @} |