Blame inet/netinet/ether.h

Packit Service 82fcde
/* Functions for storing Ethernet addresses in ASCII and mapping to hostnames.
Packit Service 82fcde
   Copyright (C) 1996-2018 Free Software Foundation, Inc.
Packit Service 82fcde
   This file is part of the GNU C Library.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is free software; you can redistribute it and/or
Packit Service 82fcde
   modify it under the terms of the GNU Lesser General Public
Packit Service 82fcde
   License as published by the Free Software Foundation; either
Packit Service 82fcde
   version 2.1 of the License, or (at your option) any later version.
Packit Service 82fcde
Packit Service 82fcde
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service 82fcde
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service 82fcde
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service 82fcde
   Lesser General Public License for more details.
Packit Service 82fcde
Packit Service 82fcde
   You should have received a copy of the GNU Lesser General Public
Packit Service 82fcde
   License along with the GNU C Library; if not, see
Packit Service 82fcde
   <http://www.gnu.org/licenses/>.  */
Packit Service 82fcde
Packit Service 82fcde
#ifndef _NETINET_ETHER_H
Packit Service 82fcde
#define _NETINET_ETHER_H	1
Packit Service 82fcde
Packit Service 82fcde
#include <features.h>
Packit Service 82fcde
Packit Service 82fcde
/* Get definition of `struct ether_addr'.  */
Packit Service 82fcde
#include <netinet/if_ether.h>
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_MISC
Packit Service 82fcde
__BEGIN_DECLS
Packit Service 82fcde
Packit Service 82fcde
/* Convert 48 bit Ethernet ADDRess to ASCII.  */
Packit Service 82fcde
extern char *ether_ntoa (const struct ether_addr *__addr) __THROW;
Packit Service 82fcde
extern char *ether_ntoa_r (const struct ether_addr *__addr, char *__buf)
Packit Service 82fcde
     __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Convert ASCII string S to 48 bit Ethernet address.  */
Packit Service 82fcde
extern struct ether_addr *ether_aton (const char *__asc) __THROW;
Packit Service 82fcde
extern struct ether_addr *ether_aton_r (const char *__asc,
Packit Service 82fcde
					struct ether_addr *__addr) __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Map 48 bit Ethernet number ADDR to HOSTNAME.  */
Packit Service 82fcde
extern int ether_ntohost (char *__hostname, const struct ether_addr *__addr)
Packit Service 82fcde
     __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Map HOSTNAME to 48 bit Ethernet address.  */
Packit Service 82fcde
extern int ether_hostton (const char *__hostname, struct ether_addr *__addr)
Packit Service 82fcde
     __THROW;
Packit Service 82fcde
Packit Service 82fcde
/* Scan LINE and set ADDR and HOSTNAME.  */
Packit Service 82fcde
extern int ether_line (const char *__line, struct ether_addr *__addr,
Packit Service 82fcde
		       char *__hostname) __THROW;
Packit Service 82fcde
Packit Service 82fcde
__END_DECLS
Packit Service 82fcde
#endif /* Use misc.  */
Packit Service 82fcde
Packit Service 82fcde
#endif /* netinet/ether.h */