aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-03-02 22:00:24 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-03-02 22:00:24 +0100
commit7e8ee3a4be86be614a6edd4e41d4d5bffdcf8a46 (patch)
treea8e48bebd5f52d614fbdd9c765bbd9239a1f8f27
parent5960ba387aa84574fc8b9df20ea98ca1594d1658 (diff)
sctp: Use the right link index when sending messages
Stop using the hardcoded link index and use the link index of the link.
-rw-r--r--src/sctp_m2ua.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sctp_m2ua.c b/src/sctp_m2ua.c
index 55aac91..6d80842 100644
--- a/src/sctp_m2ua.c
+++ b/src/sctp_m2ua.c
@@ -611,7 +611,7 @@ static int sctp_m2ua_write(struct mtp_link *link, struct msgb *msg)
m2ua->hdr.msg_class = M2UA_CLS_MAUP;
m2ua->hdr.msg_type = M2UA_MAUP_DATA;
- interface = htonl(0);
+ interface = htonl(mlink->link_index);
m2ua_msg_add_data(m2ua, MUA_TAG_IDENT_INT, 4, (uint8_t *) &interface);
m2ua_msg_add_data(m2ua, M2UA_TAG_DATA, msg->len, msg->data);