Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/netpacke...
File: packet.h
/* Definitions for use with Linux AF_PACKET sockets.
[0] Fix | Delete
Copyright (C) 1998-2018 Free Software Foundation, Inc.
[1] Fix | Delete
This file is part of the GNU C Library.
[2] Fix | Delete
[3] Fix | Delete
The GNU C Library is free software; you can redistribute it and/or
[4] Fix | Delete
modify it under the terms of the GNU Lesser General Public
[5] Fix | Delete
License as published by the Free Software Foundation; either
[6] Fix | Delete
version 2.1 of the License, or (at your option) any later version.
[7] Fix | Delete
[8] Fix | Delete
The GNU C Library is distributed in the hope that it will be useful,
[9] Fix | Delete
but WITHOUT ANY WARRANTY; without even the implied warranty of
[10] Fix | Delete
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
[11] Fix | Delete
Lesser General Public License for more details.
[12] Fix | Delete
[13] Fix | Delete
You should have received a copy of the GNU Lesser General Public
[14] Fix | Delete
License along with the GNU C Library; if not, see
[15] Fix | Delete
<http://www.gnu.org/licenses/>. */
[16] Fix | Delete
[17] Fix | Delete
#ifndef __NETPACKET_PACKET_H
[18] Fix | Delete
#define __NETPACKET_PACKET_H 1
[19] Fix | Delete
[20] Fix | Delete
struct sockaddr_ll
[21] Fix | Delete
{
[22] Fix | Delete
unsigned short int sll_family;
[23] Fix | Delete
unsigned short int sll_protocol;
[24] Fix | Delete
int sll_ifindex;
[25] Fix | Delete
unsigned short int sll_hatype;
[26] Fix | Delete
unsigned char sll_pkttype;
[27] Fix | Delete
unsigned char sll_halen;
[28] Fix | Delete
unsigned char sll_addr[8];
[29] Fix | Delete
};
[30] Fix | Delete
[31] Fix | Delete
/* Packet types. */
[32] Fix | Delete
[33] Fix | Delete
#define PACKET_HOST 0 /* To us. */
[34] Fix | Delete
#define PACKET_BROADCAST 1 /* To all. */
[35] Fix | Delete
#define PACKET_MULTICAST 2 /* To group. */
[36] Fix | Delete
#define PACKET_OTHERHOST 3 /* To someone else. */
[37] Fix | Delete
#define PACKET_OUTGOING 4 /* Originated by us . */
[38] Fix | Delete
#define PACKET_LOOPBACK 5
[39] Fix | Delete
#define PACKET_FASTROUTE 6
[40] Fix | Delete
[41] Fix | Delete
/* Packet socket options. */
[42] Fix | Delete
[43] Fix | Delete
#define PACKET_ADD_MEMBERSHIP 1
[44] Fix | Delete
#define PACKET_DROP_MEMBERSHIP 2
[45] Fix | Delete
#define PACKET_RECV_OUTPUT 3
[46] Fix | Delete
#define PACKET_RX_RING 5
[47] Fix | Delete
#define PACKET_STATISTICS 6
[48] Fix | Delete
#define PACKET_COPY_THRESH 7
[49] Fix | Delete
#define PACKET_AUXDATA 8
[50] Fix | Delete
#define PACKET_ORIGDEV 9
[51] Fix | Delete
#define PACKET_VERSION 10
[52] Fix | Delete
#define PACKET_HDRLEN 11
[53] Fix | Delete
#define PACKET_RESERVE 12
[54] Fix | Delete
#define PACKET_TX_RING 13
[55] Fix | Delete
#define PACKET_LOSS 14
[56] Fix | Delete
#define PACKET_VNET_HDR 15
[57] Fix | Delete
#define PACKET_TX_TIMESTAMP 16
[58] Fix | Delete
#define PACKET_TIMESTAMP 17
[59] Fix | Delete
#define PACKET_FANOUT 18
[60] Fix | Delete
#define PACKET_TX_HAS_OFF 19
[61] Fix | Delete
#define PACKET_QDISC_BYPASS 20
[62] Fix | Delete
#define PACKET_ROLLOVER_STATS 21
[63] Fix | Delete
#define PACKET_FANOUT_DATA 22
[64] Fix | Delete
[65] Fix | Delete
struct packet_mreq
[66] Fix | Delete
{
[67] Fix | Delete
int mr_ifindex;
[68] Fix | Delete
unsigned short int mr_type;
[69] Fix | Delete
unsigned short int mr_alen;
[70] Fix | Delete
unsigned char mr_address[8];
[71] Fix | Delete
};
[72] Fix | Delete
[73] Fix | Delete
#define PACKET_MR_MULTICAST 0
[74] Fix | Delete
#define PACKET_MR_PROMISC 1
[75] Fix | Delete
#define PACKET_MR_ALLMULTI 2
[76] Fix | Delete
#define PACKET_MR_UNICAST 3
[77] Fix | Delete
[78] Fix | Delete
#endif /* netpacket/packet.h */
[79] Fix | Delete
[80] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function