X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=test%2Fpong.c;h=a4f2be7380009cba2cc64feaa32aee04eaa117cb;hb=453e6070ddfab2157f52536bdd7a79fc16f851f4;hp=65a9075cd77ba744a66a6c3e68bcfaa637c6954e;hpb=b80cbaba040775ba20159b20d02c8c903c84e0e1;p=tinc diff --git a/test/pong.c b/test/pong.c index 65a9075c..a4f2be73 100644 --- a/test/pong.c +++ b/test/pong.c @@ -1,6 +1,6 @@ /* pong.c -- ICMP echo reply generator - Copyright (C) 2013 Guus Sliepen + Copyright (C) 2013-2017 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,6 +19,8 @@ #include "../src/system.h" +#include "../src/ethernet.h" + uint8_t mymac[6] = {6, 5, 5, 6, 5, 5}; static ssize_t do_arp(uint8_t *buf, ssize_t len, struct sockaddr_in *in) { @@ -152,7 +154,7 @@ int main(int argc, char *argv[]) { #endif default: - fprintf(stderr, "Multicast for address family %hx unsupported\n", ai->ai_family); + fprintf(stderr, "Multicast for address family %x unsupported\n", ai->ai_family); return 1; }