/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2015 Joyent, Inc. All rights reserved.
*/
#ifndef _PACKET_H
#define _PACKET_H
#include <sys/socket_impl.h>
/*
* With which we do the reverse of what it libpcap does....
*/
struct packet_mreq {
};
typedef enum tpkt_status_e {
};
};
};
struct tpacket_stats {
};
struct tpacket_stats_short {
};
uint32_t k;
};
struct sock_fprog {
};
/*
* Linux ARPHRD_ symbols needed...
*
* The numbers above 50000 are because their real value is unknown from
* libpcap's source, so a number has been chosen that is unlikely to be
* confused with the real one on Linux. Those that are already found in
* in Linux but it should be used instead as the Solaris value originates
* from the IANA whereas the Linux values seem to ignore it.
*/
#define ETH_P_ALL 0
#define ETH_P_803_3 0
#ifdef _KERNEL
/*
* PFP socket structure.
*/
typedef struct pfpsock {
int ps_type;
int ps_proto;
} pfpsock_t;
typedef struct pfp_kstats_s {
} pfp_kstats_t;
#endif /* _KERNEL */
#endif /* _PACKET_H */