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