aboutgitcodebugslistschat
path: root/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'tcp.c')
-rw-r--r--tcp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tcp.c b/tcp.c
index df9508c..3c92d37 100644
--- a/tcp.c
+++ b/tcp.c
@@ -1402,14 +1402,17 @@ static void tcp_connect_finish(struct ctx *c, int s)
* @c: Execution context
* @s: File descriptor number for socket
* @events: epoll events bitmap
+ * @pkt_buf: Buffer to receive packets, currently unused
* @now: Current timestamp
*/
-void tcp_sock_handler(struct ctx *c, int s, uint32_t events,
+void tcp_sock_handler(struct ctx *c, int s, uint32_t events, char *pkt_buf,
struct timespec *now)
{
socklen_t sl;
int accept;
+ (void)pkt_buf;
+
if (tc[s].s == LAST_ACK) {
tcp_send_to_tap(c, s, ACK, NULL, 0);
tcp_close_and_epoll_del(c, s);