aboutgitcodebugslistschat
path: root/arp.c
diff options
context:
space:
mode:
Diffstat (limited to 'arp.c')
-rw-r--r--arp.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/arp.c b/arp.c
index 20f08b2..547057c 100644
--- a/arp.c
+++ b/arp.c
@@ -1,12 +1,15 @@
// SPDX-License-Identifier: AGPL-3.0-or-later
/* PASST - Plug A Simple Socket Transport
+ * for qemu/UNIX domain socket mode
+ *
+ * PASTA - Pack A Subtle Tap Abstraction
+ * for network namespace/tap device mode
*
* arp.c - ARP implementation
*
* Copyright (c) 2020-2021 Red Hat GmbH
* Author: Stefano Brivio <sbrivio@redhat.com>
- *
*/
#include <stdio.h>
@@ -22,9 +25,9 @@
#include <net/if_arp.h>
#include <arpa/inet.h>
+#include "util.h"
#include "passt.h"
#include "dhcp.h"
-#include "util.h"
#include "tap.h"
#include "arp.h"
@@ -66,7 +69,7 @@ int arp(struct ctx *c, struct ethhdr *eh, size_t len)
memcpy(eh->h_dest, eh->h_source, ETH_ALEN);
memcpy(eh->h_source, c->mac, ETH_ALEN);
- if (tap_send(c->fd_unix, eh, len, 0) < 0)
+ if (tap_send(c, eh, len, 0) < 0)
perror("ARP: send");
return 1;