summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/parpd.c2
-rw-r--r--src/parpd.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/parpd.c b/src/parpd.c
index cb2493b..5859017 100644
--- a/src/parpd.c
+++ b/src/parpd.c
@@ -391,7 +391,7 @@ proxy(rb_tree_t *ps, in_addr_t ip, const uint8_t **hw, size_t *hwlen)
(sizeof(struct arphdr) + (2 * sizeof(uint32_t)) + (2 * HWADDR_LEN))
/* Does what is says on the tin - sends an ARP message */
static ssize_t
-send_arp(const struct interface *ifp, int op, size_t hlen,
+send_arp(const struct interface *ifp, uint16_t op, size_t hlen,
const uint8_t *sha, in_addr_t sip, const uint8_t *tha, in_addr_t tip)
{
uint8_t arp_buffer[ARP_LEN];
diff --git a/src/parpd.h b/src/parpd.h
index 87c0cfd..79182de 100644
--- a/src/parpd.h
+++ b/src/parpd.h
@@ -57,7 +57,7 @@ struct interface
{
rb_node_t rbtree;
char ifname[IF_NAMESIZE];
- int family;
+ sa_family_t family;
unsigned char hwaddr[HWADDR_LEN];
size_t hwlen;
int fd;