ether_addr.c revision 2
2N/A * The contents of this file are subject to the terms of the 2N/A * Common Development and Distribution License (the "License"). 2N/A * You may not use this file except in compliance with the License. 2N/A * See the License for the specific language governing permissions 2N/A * and limitations under the License. 2N/A * When distributing Covered Code, include this CDDL HEADER in each 2N/A * If applicable, add the following below this CDDL HEADER, with the 2N/A * fields enclosed by brackets "[]" replaced with your own identifying 2N/A * information: Portions Copyright [yyyy] [name of copyright owner] 2N/A * Copyright (c) 1991, 2011, Oracle and/or its affiliates. All rights reserved. 2N/A * All routines necessary to deal with the file /etc/ethers. The file 2N/A * contains mappings from 48 bit ethernet addresses to their corresponding 2N/A * hosts names. The addresses have an ascii representation of the form 2N/A * "x:x:x:x:x:x" where x is a hex number between 0x00 and 0xff; the 2N/A * bytes are always in network order. 2N/A /* skip leading spaces */ 2N/A /* skip mac address */ 2N/A /* skip the delimiting spaces */ 2N/A /* compare the host name */ 2N/A * use the buffer passed in if result is to be returned 2N/A * in /etc file format 2N/A /* skip leading spaces */ 2N/A for (i = 0; i <
6; i++) {