{
request->sockfd = reply->sockfd;
request->id = reply->id;
+#ifdef WITH_TCP
+ request->proto = reply->proto;
+#endif
request->src_port = reply->dst_port;
request->dst_port = reply->src_port;
request->src_ipaddr = reply->dst_ipaddr;
my_request.dst_ipaddr = reply->src_ipaddr;
my_request.dst_port = reply->src_port;
+#ifdef WITH_TCP
+ my_request.proto = reply->proto;
+#endif
request = &my_request;
return rbtree_finddata(pl->tree, &request);
*/
pl->last_recv = start;
+#ifdef WITH_TCP
+ packet->proto = pl->sockets[start].proto;
+#endif
return packet;
} while (start != pl->last_recv);