2 * lib/loopback.c This file contains the general hardware types.
4 * Version: $Id: loopback.c,v 1.7 1999/09/27 11:00:48 philip Exp $
6 * Author: Fred N. van Kempen, <waltje@uwalt.nl.mugnet.org>
7 * Copyright 1993 MicroWalt Corporation
10 * 1998-07-01 - Arnaldo Carvalho de Melo - GNU gettext instead of catgets
12 * This program is free software; you can redistribute it
13 * and/or modify it under the terms of the GNU General
14 * Public License as published by the Free Software
15 * Foundation; either version 2 of the License, or (at
16 * your option) any later version.
20 #include <sys/types.h>
21 #include <sys/socket.h>
22 #include <net/if_arp.h>
29 #include "net-support.h"
30 #include "pathnames.h"
34 /* Display an UNSPEC address. */
35 static char *pr_unspec(unsigned char *ptr
)
42 for (i
= 0; i
< sizeof(struct sockaddr
); i
++) {
43 pos
+= sprintf(pos
, "%02X-", (*ptr
++ & 0377));
45 buff
[strlen(buff
) - 1] = '\0';
49 struct hwtype unspec_hwtype
=
51 "unspec", NULL
, /*"UNSPEC", */ -1, 0,
55 struct hwtype loop_hwtype
=
57 "loop", NULL
, /*"Local Loopback", */ ARPHRD_LOOPBACK
, 0,