ether_addr.c (20164) | ether_addr.c (20288) |
---|---|
1/* 2 * Copyright (c) 1995 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 21 unchanged lines hidden (view full) --- 30 * SUCH DAMAGE. 31 * 32 * ethernet address conversion and lookup routines 33 * 34 * Written by Bill Paul <wpaul@ctr.columbia.edu> 35 * Center for Telecommunications Research 36 * Columbia University, New York City 37 * | 1/* 2 * Copyright (c) 1995 3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 21 unchanged lines hidden (view full) --- 30 * SUCH DAMAGE. 31 * 32 * ethernet address conversion and lookup routines 33 * 34 * Written by Bill Paul <wpaul@ctr.columbia.edu> 35 * Center for Telecommunications Research 36 * Columbia University, New York City 37 * |
38 * $Id: ether_addr.c,v 1.4 1996/07/12 18:54:31 jkh Exp $ | 38 * $Id: ether_addr.c,v 1.5 1996/12/05 18:46:19 jkh Exp $ |
39 */ 40 41 42#include <stdio.h> 43#include <paths.h> 44#include <sys/types.h> 45#include <string.h> 46#include <stdlib.h> 47#include <sys/param.h> 48#include <sys/socket.h> | 39 */ 40 41 42#include <stdio.h> 43#include <paths.h> 44#include <sys/types.h> 45#include <string.h> 46#include <stdlib.h> 47#include <sys/param.h> 48#include <sys/socket.h> |
49#include <net/if.h> 50#include <netinet/in.h> 51#include <netinet/if_ether.h> | 49#include <net/ethernet.h> |
52#ifdef YP 53#include <rpc/rpc.h> 54#include <rpcsvc/yp_prot.h> 55#include <rpcsvc/ypclnt.h> 56#endif 57 58#ifndef _PATH_ETHERS 59#define _PATH_ETHERS "/etc/ethers" --- 167 unchanged lines hidden --- | 50#ifdef YP 51#include <rpc/rpc.h> 52#include <rpcsvc/yp_prot.h> 53#include <rpcsvc/ypclnt.h> 54#endif 55 56#ifndef _PATH_ETHERS 57#define _PATH_ETHERS "/etc/ethers" --- 167 unchanged lines hidden --- |