aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2011-10-17 12:09:29 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2011-10-17 12:09:29 +0200
commit4b83212dfb6cde3eef02ac964db020c06d7fdd93 (patch)
tree468187a43a8dd1190b6f574b23e6675c898d6c9a /src
parent6c3c279489da076366d1c2459debfc815df89f7b (diff)
datagram: reconfiguration is only required if address and port change
We allow to change the callback and data pointers in runtime safely without the need to reconfig.
Diffstat (limited to 'src')
-rw-r--r--src/datagram.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/datagram.c b/src/datagram.c
index fe515c6..8f74a79 100644
--- a/src/datagram.c
+++ b/src/datagram.c
@@ -118,7 +118,6 @@ void
osmo_dgram_client_conn_set_data(struct osmo_dgram_client_conn *conn, void *data)
{
conn->data = data;
- conn->flags |= OSMO_DGRAM_CLIENT_F_RECONFIG;
}
void osmo_dgram_client_conn_destroy(struct osmo_dgram_client_conn *conn)
@@ -253,7 +252,6 @@ void osmo_dgram_server_conn_set_read_cb(struct osmo_dgram_server_conn *conn,
int (*read_cb)(struct osmo_dgram_server_conn *conn, struct msgb *msg))
{
conn->cb = read_cb;
- conn->flags |= OSMO_DGRAM_SERVER_F_RECONFIG;
}
void osmo_dgram_server_conn_destroy(struct osmo_dgram_server_conn *conn)