getether.c (18471) | getether.c (20287) |
---|---|
1/* 2 * getether.c : get the ethernet address of an interface 3 * 4 * All of this code is quite system-specific. As you may well 5 * guess, it took a good bit of detective work to figure out! 6 * 7 * If you figure out how to do this on another system, 8 * please let me know. <gwr@mc.com> 9 * | 1/* 2 * getether.c : get the ethernet address of an interface 3 * 4 * All of this code is quite system-specific. As you may well 5 * guess, it took a good bit of detective work to figure out! 6 * 7 * If you figure out how to do this on another system, 8 * please let me know. <gwr@mc.com> 9 * |
10 * $Id$ | 10 * $Id: getether.c,v 1.4 1996/09/22 21:52:09 wosch Exp $ |
11 */ 12 13#include <sys/types.h> 14#include <sys/socket.h> 15 16#ifndef NO_UNISTD 17#include <unistd.h> 18#endif --- 87 unchanged lines hidden (view full) --- 106 107#define GETETHER 108#endif /* SUNOS */ 109 110 111#if defined(__FreeBSD__) || defined(__NetBSD__) 112/* Thanks to John Brezak <brezak@ch.hp.com> for this code. */ 113#include <sys/ioctl.h> | 11 */ 12 13#include <sys/types.h> 14#include <sys/socket.h> 15 16#ifndef NO_UNISTD 17#include <unistd.h> 18#endif --- 87 unchanged lines hidden (view full) --- 106 107#define GETETHER 108#endif /* SUNOS */ 109 110 111#if defined(__FreeBSD__) || defined(__NetBSD__) 112/* Thanks to John Brezak <brezak@ch.hp.com> for this code. */ 113#include <sys/ioctl.h> |
114#include <sys/time.h> |
|
114#include <net/if.h> 115#include <net/if_dl.h> 116#include <net/if_types.h> 117 118getether(ifname, eap) 119 char *ifname; /* interface name from ifconfig structure */ 120 char *eap; /* Ether address (output) */ 121{ --- 264 unchanged lines hidden --- | 115#include <net/if.h> 116#include <net/if_dl.h> 117#include <net/if_types.h> 118 119getether(ifname, eap) 120 char *ifname; /* interface name from ifconfig structure */ 121 char *eap; /* Ether address (output) */ 122{ --- 264 unchanged lines hidden --- |