pcap-namedb.h (17684) | pcap-namedb.h (38151) |
---|---|
1/* 2 * Copyright (c) 1994, 1996 3 * The Regents of the University of California. 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 --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 * 33 * @(#) $Header: pcap-namedb.h,v 1.5 96/07/14 03:00:14 leres Exp $ (LBL) 34 */ 35 36#ifndef lib_pcap_ethers_h 37#define lib_pcap_ethers_h 38 | 1/* 2 * Copyright (c) 1994, 1996 3 * The Regents of the University of California. 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 --- 22 unchanged lines hidden (view full) --- 31 * SUCH DAMAGE. 32 * 33 * @(#) $Header: pcap-namedb.h,v 1.5 96/07/14 03:00:14 leres Exp $ (LBL) 34 */ 35 36#ifndef lib_pcap_ethers_h 37#define lib_pcap_ethers_h 38 |
39#ifdef __cplusplus 40extern "C" { 41#endif 42 43 |
|
39/* 40 * As returned by the pcap_next_etherent() 41 * XXX this stuff doesn't belong in this interface, but this 42 * library already must do name to address translation, so 43 * on systems that don't have support for /etc/ethers, we 44 * export these hooks since they'll 45 */ 46struct pcap_etherent { --- 21 unchanged lines hidden (view full) --- 68 */ 69#define PROTO_UNDEF -1 70 71/* XXX move these to pcap-int.h? */ 72int __pcap_atodn(const char *, bpf_u_int32 *); 73int __pcap_atoin(const char *, bpf_u_int32 *); 74u_short __pcap_nametodnaddr(const char *); 75 | 44/* 45 * As returned by the pcap_next_etherent() 46 * XXX this stuff doesn't belong in this interface, but this 47 * library already must do name to address translation, so 48 * on systems that don't have support for /etc/ethers, we 49 * export these hooks since they'll 50 */ 51struct pcap_etherent { --- 21 unchanged lines hidden (view full) --- 73 */ 74#define PROTO_UNDEF -1 75 76/* XXX move these to pcap-int.h? */ 77int __pcap_atodn(const char *, bpf_u_int32 *); 78int __pcap_atoin(const char *, bpf_u_int32 *); 79u_short __pcap_nametodnaddr(const char *); 80 |
81#ifdef __cplusplus 82} |
|
76#endif | 83#endif |
84 85 86#endif |
|