Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: llc.h
/* SPDX-License-Identifier: GPL-1.0+ WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* IEEE 802.2 User Interface SAPs for Linux, data structures and indicators.
[2] Fix | Delete
*
[3] Fix | Delete
* Copyright (c) 2001 by Jay Schulist <jschlst@samba.org>
[4] Fix | Delete
*
[5] Fix | Delete
* This program can be redistributed or modified under the terms of the
[6] Fix | Delete
* GNU General Public License as published by the Free Software Foundation.
[7] Fix | Delete
* This program is distributed without any warranty or implied warranty
[8] Fix | Delete
* of merchantability or fitness for a particular purpose.
[9] Fix | Delete
*
[10] Fix | Delete
* See the GNU General Public License for more details.
[11] Fix | Delete
*/
[12] Fix | Delete
#ifndef __LINUX_LLC_H
[13] Fix | Delete
#define __LINUX_LLC_H
[14] Fix | Delete
[15] Fix | Delete
#include <linux/socket.h>
[16] Fix | Delete
#include <linux/if.h> /* For IFHWADDRLEN. */
[17] Fix | Delete
[18] Fix | Delete
#define __LLC_SOCK_SIZE__ 16 /* sizeof(sockaddr_llc), word align. */
[19] Fix | Delete
struct sockaddr_llc {
[20] Fix | Delete
__kernel_sa_family_t sllc_family; /* AF_LLC */
[21] Fix | Delete
__kernel_sa_family_t sllc_arphrd; /* ARPHRD_ETHER */
[22] Fix | Delete
unsigned char sllc_test;
[23] Fix | Delete
unsigned char sllc_xid;
[24] Fix | Delete
unsigned char sllc_ua; /* UA data, only for SOCK_STREAM. */
[25] Fix | Delete
unsigned char sllc_sap;
[26] Fix | Delete
unsigned char sllc_mac[IFHWADDRLEN];
[27] Fix | Delete
unsigned char __pad[__LLC_SOCK_SIZE__ -
[28] Fix | Delete
sizeof(__kernel_sa_family_t) * 2 -
[29] Fix | Delete
sizeof(unsigned char) * 4 - IFHWADDRLEN];
[30] Fix | Delete
};
[31] Fix | Delete
[32] Fix | Delete
/* sockopt definitions. */
[33] Fix | Delete
enum llc_sockopts {
[34] Fix | Delete
LLC_OPT_UNKNOWN = 0,
[35] Fix | Delete
LLC_OPT_RETRY, /* max retrans attempts. */
[36] Fix | Delete
LLC_OPT_SIZE, /* max PDU size (octets). */
[37] Fix | Delete
LLC_OPT_ACK_TMR_EXP, /* ack expire time (secs). */
[38] Fix | Delete
LLC_OPT_P_TMR_EXP, /* pf cycle expire time (secs). */
[39] Fix | Delete
LLC_OPT_REJ_TMR_EXP, /* rej sent expire time (secs). */
[40] Fix | Delete
LLC_OPT_BUSY_TMR_EXP, /* busy state expire time (secs). */
[41] Fix | Delete
LLC_OPT_TX_WIN, /* tx window size. */
[42] Fix | Delete
LLC_OPT_RX_WIN, /* rx window size. */
[43] Fix | Delete
LLC_OPT_PKTINFO, /* ancillary packet information. */
[44] Fix | Delete
LLC_OPT_MAX
[45] Fix | Delete
};
[46] Fix | Delete
[47] Fix | Delete
#define LLC_OPT_MAX_RETRY 100
[48] Fix | Delete
#define LLC_OPT_MAX_SIZE 4196
[49] Fix | Delete
#define LLC_OPT_MAX_WIN 127
[50] Fix | Delete
#define LLC_OPT_MAX_ACK_TMR_EXP 60
[51] Fix | Delete
#define LLC_OPT_MAX_P_TMR_EXP 60
[52] Fix | Delete
#define LLC_OPT_MAX_REJ_TMR_EXP 60
[53] Fix | Delete
#define LLC_OPT_MAX_BUSY_TMR_EXP 60
[54] Fix | Delete
[55] Fix | Delete
/* LLC SAP types. */
[56] Fix | Delete
#define LLC_SAP_NULL 0x00 /* NULL SAP. */
[57] Fix | Delete
#define LLC_SAP_LLC 0x02 /* LLC Sublayer Management. */
[58] Fix | Delete
#define LLC_SAP_SNA 0x04 /* SNA Path Control. */
[59] Fix | Delete
#define LLC_SAP_PNM 0x0E /* Proway Network Management. */
[60] Fix | Delete
#define LLC_SAP_IP 0x06 /* TCP/IP. */
[61] Fix | Delete
#define LLC_SAP_BSPAN 0x42 /* Bridge Spanning Tree Proto */
[62] Fix | Delete
#define LLC_SAP_MMS 0x4E /* Manufacturing Message Srv. */
[63] Fix | Delete
#define LLC_SAP_8208 0x7E /* ISO 8208 */
[64] Fix | Delete
#define LLC_SAP_3COM 0x80 /* 3COM. */
[65] Fix | Delete
#define LLC_SAP_PRO 0x8E /* Proway Active Station List */
[66] Fix | Delete
#define LLC_SAP_SNAP 0xAA /* SNAP. */
[67] Fix | Delete
#define LLC_SAP_BANYAN 0xBC /* Banyan. */
[68] Fix | Delete
#define LLC_SAP_IPX 0xE0 /* IPX/SPX. */
[69] Fix | Delete
#define LLC_SAP_NETBEUI 0xF0 /* NetBEUI. */
[70] Fix | Delete
#define LLC_SAP_LANMGR 0xF4 /* LanManager. */
[71] Fix | Delete
#define LLC_SAP_IMPL 0xF8 /* IMPL */
[72] Fix | Delete
#define LLC_SAP_DISC 0xFC /* Discovery */
[73] Fix | Delete
#define LLC_SAP_OSI 0xFE /* OSI Network Layers. */
[74] Fix | Delete
#define LLC_SAP_LAR 0xDC /* LAN Address Resolution */
[75] Fix | Delete
#define LLC_SAP_RM 0xD4 /* Resource Management */
[76] Fix | Delete
#define LLC_SAP_GLOBAL 0xFF /* Global SAP. */
[77] Fix | Delete
[78] Fix | Delete
struct llc_pktinfo {
[79] Fix | Delete
int lpi_ifindex;
[80] Fix | Delete
unsigned char lpi_sap;
[81] Fix | Delete
unsigned char lpi_mac[IFHWADDRLEN];
[82] Fix | Delete
};
[83] Fix | Delete
[84] Fix | Delete
#endif /* __LINUX_LLC_H */
[85] Fix | Delete
[86] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function