diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-22 17:37:56 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-01-22 21:33:18 +0100 |
commit | 36260e915a23892e5275866ef943783ec6a8e404 (patch) | |
tree | 9cafb893a7acd9ed1ba6ef7d8c1b6ef0b45fb739 /src/link_udp.c | |
parent | ddf8eae7da02b20dd4310af9428a1eb18b1dd57d (diff) |
pcap: Classify the direction of such a message
Diffstat (limited to 'src/link_udp.c')
-rw-r--r-- | src/link_udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/link_udp.c b/src/link_udp.c index a9b2d9b..1e24faf 100644 --- a/src/link_udp.c +++ b/src/link_udp.c @@ -61,7 +61,7 @@ static int udp_write_cb(struct bsc_fd *fd, struct msgb *msg) } LOGP(DINP, LOGL_DEBUG, "Sending MSU: %s\n", hexdump(msg->data, msg->len)); - mtp_handle_pcap(&link->base, msg->l2h, msgb_l2len(msg)); + mtp_handle_pcap(&link->base, NET_OUT, msg->l2h, msgb_l2len(msg)); /* the assumption is we have connected the socket to the remote */ rc = sendto(fd->fd, msg->data, msg->len, 0, @@ -136,7 +136,7 @@ static int udp_read_cb(struct bsc_fd *fd) msg->l2h = msgb_put(msg, length); LOGP(DINP, LOGL_DEBUG, "MSU data on: %p data %s.\n", link, hexdump(msg->data, msg->len)); - 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); exit: |