aboutsummaryrefslogtreecommitdiffstats
path: root/src/sctp_m2ua.c
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <zecke@selfish.org>2011-01-22 17:37:56 +0100
committerHolger Hans Peter Freyther <zecke@selfish.org>2011-01-22 21:33:18 +0100
commit36260e915a23892e5275866ef943783ec6a8e404 (patch)
tree9cafb893a7acd9ed1ba6ef7d8c1b6ef0b45fb739 /src/sctp_m2ua.c
parentddf8eae7da02b20dd4310af9428a1eb18b1dd57d (diff)
pcap: Classify the direction of such a message
Diffstat (limited to 'src/sctp_m2ua.c')
-rw-r--r--src/sctp_m2ua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sctp_m2ua.c b/src/sctp_m2ua.c
index 3f67665..65fde0b 100644
--- a/src/sctp_m2ua.c
+++ b/src/sctp_m2ua.c
@@ -327,7 +327,7 @@ static int m2ua_handle_data(struct sctp_m2ua_conn *conn,
memcpy(msg->l2h, data->dat, data->len);
link = &conn->trans->base;
- mtp_handle_pcap(link, msg->l2h, msgb_l2len(msg));
+ mtp_handle_pcap(link, NET_IN, msg->l2h, msgb_l2len(msg));
mtp_link_set_data(link, msg);
msgb_free(msg);
@@ -469,7 +469,7 @@ static int sctp_m2ua_write(struct mtp_link *link, struct msgb *msg)
if (!m2ua)
return -1;
- mtp_handle_pcap(link, msg->data, msg->len);
+ mtp_handle_pcap(link, NET_OUT, msg->data, msg->len);
m2ua->hdr.msg_class = M2UA_CLS_MAUP;
m2ua->hdr.msg_type = M2UA_MAUP_DATA;