3 #include <netinet/ether.h>
11 if (ether_line ("00:01:02:03:04:05 aaaaa \n", &a, buf) != 0)
13 puts ("ether_line failed");
19 for (i = 0; i < ETH_ALEN; ++i)
22 (int) a.ether_addr_octet[i], i + 1 == ETH_ALEN ? "" : ":");
23 if (a.ether_addr_octet[i] != i)
25 printf ("octet %d is %d, expected %d\n",
26 i, (int) a.ether_addr_octet[i], i);
31 printf (" \"%s\"\n", buf);
32 res |= strcmp (buf, "aaaaa") != 0;
37 #define TEST_FUNCTION do_test ()
38 #include "../test-skeleton.c"