packet.h revision 336069c20319c172c4ff9d87d67e8f6301c98a5d
f015d695b84915f1c2c3fcf81f339548af1852c4Peter Major * CDDL HEADER START
f015d695b84915f1c2c3fcf81f339548af1852c4Peter Major * The contents of this file are subject to the terms of the
f015d695b84915f1c2c3fcf81f339548af1852c4Peter Major * Common Development and Distribution License (the "License").
f015d695b84915f1c2c3fcf81f339548af1852c4Peter Major * You may not use this file except in compliance with the License.
f015d695b84915f1c2c3fcf81f339548af1852c4Peter Major * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f015d695b84915f1c2c3fcf81f339548af1852c4Peter Major * See the License for the specific language governing permissions
f015d695b84915f1c2c3fcf81f339548af1852c4Peter Major * and limitations under the License.
f015d695b84915f1c2c3fcf81f339548af1852c4Peter Major * When distributing Covered Code, include this CDDL HEADER in each
1919390f93ec8db650084d8b1bf252bf71f37b0bPeter Major * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f015d695b84915f1c2c3fcf81f339548af1852c4Peter Major * If applicable, add the following below this CDDL HEADER, with the
2dd75eff92ef66e22cca286b6f4fe5a9c929af9dPhill Cunnington * fields enclosed by brackets "[]" replaced with your own identifying
f015d695b84915f1c2c3fcf81f339548af1852c4Peter Major * information: Portions Copyright [yyyy] [name of copyright owner]
96370cf5fc50b43f71fa99e0f14fa212dc63e287Mark de Reeper * CDDL HEADER END
f015d695b84915f1c2c3fcf81f339548af1852c4Peter Major * Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
f015d695b84915f1c2c3fcf81f339548af1852c4Peter Major * Copyright 2015 Joyent, Inc. All rights reserved.
f015d695b84915f1c2c3fcf81f339548af1852c4Peter Major * With which we do the reverse of what it libpcap does....
c49a898cb851f8fef7d7a6a9501c66b8f03ae05cPhill Cunnington#define PACKET_BROADCAST LINUX_SLL_BROADCAST
c49a898cb851f8fef7d7a6a9501c66b8f03ae05cPhill Cunnington#define PACKET_MULTICAST LINUX_SLL_MULTICAST
f015d695b84915f1c2c3fcf81f339548af1852c4Peter Majorstruct tpacket_auxdata { /* tp_macoff/tp_netoff ?? */
f015d695b84915f1c2c3fcf81f339548af1852c4Peter Majorstruct tpacket_hdr { /* tp_macoff/tp_netoff ?? */
f015d695b84915f1c2c3fcf81f339548af1852c4Peter Majorstruct tpacket2_hdr { /* tp_macoff/tp_netoff ?? */
4e722da7d7f08efee88f34533f20f63671572b28Joe Bandenburgstruct sock_filter { /* Fields named from bpf_insn */
cd085ff36bed57615d33434450ffc7c44ca016edDavid Luna * Linux ARPHRD_ symbols needed...
cd085ff36bed57615d33434450ffc7c44ca016edDavid Luna * The numbers above 50000 are because their real value is unknown from
cd085ff36bed57615d33434450ffc7c44ca016edDavid Luna * libpcap's source, so a number has been chosen that is unlikely to be
cd085ff36bed57615d33434450ffc7c44ca016edDavid Luna * confused with the real one on Linux. Those that are already found in
cd085ff36bed57615d33434450ffc7c44ca016edDavid Luna * Solaris inside <net/if_arp.h> may have a different value to that found
cd085ff36bed57615d33434450ffc7c44ca016edDavid Luna * in Linux but it should be used instead as the Solaris value originates
cd085ff36bed57615d33434450ffc7c44ca016edDavid Luna * from the IANA whereas the Linux values seem to ignore it.
cd085ff36bed57615d33434450ffc7c44ca016edDavid Luna/* ARPHRD_AX25 see <net/if_arp.h> */
cd085ff36bed57615d33434450ffc7c44ca016edDavid Luna/* ARPHRD_CHAOS see <net/if_arp.h> */
cd085ff36bed57615d33434450ffc7c44ca016edDavid Luna/* ARPHRD_EETHER see <net/if_arp.h> */
cd085ff36bed57615d33434450ffc7c44ca016edDavid Luna/* ARPHRD_ETHER see <net/if_arp.h> */
cd085ff36bed57615d33434450ffc7c44ca016edDavid Luna/* ARPHRD_IEEE802 see <net/if_arp.h> */
cd085ff36bed57615d33434450ffc7c44ca016edDavid Luna/* ARPHRD_METRICOM see <net/if_arp.h> */
cd085ff36bed57615d33434450ffc7c44ca016edDavid Luna/* ARPHRD_TUNNEL see <net/if_arp.h> */
96370cf5fc50b43f71fa99e0f14fa212dc63e287Mark de Reeper * PFP socket structure.
96370cf5fc50b43f71fa99e0f14fa212dc63e287Mark de Reepertypedef struct pfpsock {
cd085ff36bed57615d33434450ffc7c44ca016edDavid Lunatypedef struct pfp_kstats_s {
} pfp_kstats_t;