Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: x25.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
/*
[1] Fix | Delete
* These are the public elements of the Linux kernel X.25 implementation.
[2] Fix | Delete
*
[3] Fix | Delete
* History
[4] Fix | Delete
* mar/20/00 Daniela Squassoni Disabling/enabling of facilities
[5] Fix | Delete
* negotiation.
[6] Fix | Delete
* apr/02/05 Shaun Pereira Selective sub address matching with
[7] Fix | Delete
* call user data
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
#ifndef X25_KERNEL_H
[11] Fix | Delete
#define X25_KERNEL_H
[12] Fix | Delete
[13] Fix | Delete
#include <linux/types.h>
[14] Fix | Delete
#include <linux/socket.h>
[15] Fix | Delete
[16] Fix | Delete
#define SIOCX25GSUBSCRIP (SIOCPROTOPRIVATE + 0)
[17] Fix | Delete
#define SIOCX25SSUBSCRIP (SIOCPROTOPRIVATE + 1)
[18] Fix | Delete
#define SIOCX25GFACILITIES (SIOCPROTOPRIVATE + 2)
[19] Fix | Delete
#define SIOCX25SFACILITIES (SIOCPROTOPRIVATE + 3)
[20] Fix | Delete
#define SIOCX25GCALLUSERDATA (SIOCPROTOPRIVATE + 4)
[21] Fix | Delete
#define SIOCX25SCALLUSERDATA (SIOCPROTOPRIVATE + 5)
[22] Fix | Delete
#define SIOCX25GCAUSEDIAG (SIOCPROTOPRIVATE + 6)
[23] Fix | Delete
#define SIOCX25SCUDMATCHLEN (SIOCPROTOPRIVATE + 7)
[24] Fix | Delete
#define SIOCX25CALLACCPTAPPRV (SIOCPROTOPRIVATE + 8)
[25] Fix | Delete
#define SIOCX25SENDCALLACCPT (SIOCPROTOPRIVATE + 9)
[26] Fix | Delete
#define SIOCX25GDTEFACILITIES (SIOCPROTOPRIVATE + 10)
[27] Fix | Delete
#define SIOCX25SDTEFACILITIES (SIOCPROTOPRIVATE + 11)
[28] Fix | Delete
#define SIOCX25SCAUSEDIAG (SIOCPROTOPRIVATE + 12)
[29] Fix | Delete
[30] Fix | Delete
/*
[31] Fix | Delete
* Values for {get,set}sockopt.
[32] Fix | Delete
*/
[33] Fix | Delete
#define X25_QBITINCL 1
[34] Fix | Delete
[35] Fix | Delete
/*
[36] Fix | Delete
* X.25 Packet Size values.
[37] Fix | Delete
*/
[38] Fix | Delete
#define X25_PS16 4
[39] Fix | Delete
#define X25_PS32 5
[40] Fix | Delete
#define X25_PS64 6
[41] Fix | Delete
#define X25_PS128 7
[42] Fix | Delete
#define X25_PS256 8
[43] Fix | Delete
#define X25_PS512 9
[44] Fix | Delete
#define X25_PS1024 10
[45] Fix | Delete
#define X25_PS2048 11
[46] Fix | Delete
#define X25_PS4096 12
[47] Fix | Delete
[48] Fix | Delete
/*
[49] Fix | Delete
* An X.121 address, it is held as ASCII text, null terminated, up to 15
[50] Fix | Delete
* digits and a null terminator.
[51] Fix | Delete
*/
[52] Fix | Delete
struct x25_address {
[53] Fix | Delete
char x25_addr[16];
[54] Fix | Delete
};
[55] Fix | Delete
[56] Fix | Delete
/*
[57] Fix | Delete
* Linux X.25 Address structure, used for bind, and connect mostly.
[58] Fix | Delete
*/
[59] Fix | Delete
struct sockaddr_x25 {
[60] Fix | Delete
__kernel_sa_family_t sx25_family; /* Must be AF_X25 */
[61] Fix | Delete
struct x25_address sx25_addr; /* X.121 Address */
[62] Fix | Delete
};
[63] Fix | Delete
[64] Fix | Delete
/*
[65] Fix | Delete
* DTE/DCE subscription options.
[66] Fix | Delete
*
[67] Fix | Delete
* As this is missing lots of options, user should expect major
[68] Fix | Delete
* changes of this structure in 2.5.x which might break compatibilty.
[69] Fix | Delete
* The somewhat ugly dimension 200-sizeof() is needed to maintain
[70] Fix | Delete
* backward compatibility.
[71] Fix | Delete
*/
[72] Fix | Delete
struct x25_subscrip_struct {
[73] Fix | Delete
char device[200-sizeof(unsigned long)];
[74] Fix | Delete
unsigned long global_facil_mask; /* 0 to disable negotiation */
[75] Fix | Delete
unsigned int extended;
[76] Fix | Delete
};
[77] Fix | Delete
[78] Fix | Delete
/* values for above global_facil_mask */
[79] Fix | Delete
[80] Fix | Delete
#define X25_MASK_REVERSE 0x01
[81] Fix | Delete
#define X25_MASK_THROUGHPUT 0x02
[82] Fix | Delete
#define X25_MASK_PACKET_SIZE 0x04
[83] Fix | Delete
#define X25_MASK_WINDOW_SIZE 0x08
[84] Fix | Delete
[85] Fix | Delete
#define X25_MASK_CALLING_AE 0x10
[86] Fix | Delete
#define X25_MASK_CALLED_AE 0x20
[87] Fix | Delete
[88] Fix | Delete
[89] Fix | Delete
/*
[90] Fix | Delete
* Routing table control structure.
[91] Fix | Delete
*/
[92] Fix | Delete
struct x25_route_struct {
[93] Fix | Delete
struct x25_address address;
[94] Fix | Delete
unsigned int sigdigits;
[95] Fix | Delete
char device[200];
[96] Fix | Delete
};
[97] Fix | Delete
[98] Fix | Delete
/*
[99] Fix | Delete
* Facilities structure.
[100] Fix | Delete
*/
[101] Fix | Delete
struct x25_facilities {
[102] Fix | Delete
unsigned int winsize_in, winsize_out;
[103] Fix | Delete
unsigned int pacsize_in, pacsize_out;
[104] Fix | Delete
unsigned int throughput;
[105] Fix | Delete
unsigned int reverse;
[106] Fix | Delete
};
[107] Fix | Delete
[108] Fix | Delete
/*
[109] Fix | Delete
* ITU DTE facilities
[110] Fix | Delete
* Only the called and calling address
[111] Fix | Delete
* extension are currently implemented.
[112] Fix | Delete
* The rest are in place to avoid the struct
[113] Fix | Delete
* changing size if someone needs them later
[114] Fix | Delete
*/
[115] Fix | Delete
[116] Fix | Delete
struct x25_dte_facilities {
[117] Fix | Delete
__u16 delay_cumul;
[118] Fix | Delete
__u16 delay_target;
[119] Fix | Delete
__u16 delay_max;
[120] Fix | Delete
__u8 min_throughput;
[121] Fix | Delete
__u8 expedited;
[122] Fix | Delete
__u8 calling_len;
[123] Fix | Delete
__u8 called_len;
[124] Fix | Delete
__u8 calling_ae[20];
[125] Fix | Delete
__u8 called_ae[20];
[126] Fix | Delete
};
[127] Fix | Delete
[128] Fix | Delete
/*
[129] Fix | Delete
* Call User Data structure.
[130] Fix | Delete
*/
[131] Fix | Delete
struct x25_calluserdata {
[132] Fix | Delete
unsigned int cudlength;
[133] Fix | Delete
unsigned char cuddata[128];
[134] Fix | Delete
};
[135] Fix | Delete
[136] Fix | Delete
/*
[137] Fix | Delete
* Call clearing Cause and Diagnostic structure.
[138] Fix | Delete
*/
[139] Fix | Delete
struct x25_causediag {
[140] Fix | Delete
unsigned char cause;
[141] Fix | Delete
unsigned char diagnostic;
[142] Fix | Delete
};
[143] Fix | Delete
[144] Fix | Delete
/*
[145] Fix | Delete
* Further optional call user data match length selection
[146] Fix | Delete
*/
[147] Fix | Delete
struct x25_subaddr {
[148] Fix | Delete
unsigned int cudmatchlength;
[149] Fix | Delete
};
[150] Fix | Delete
[151] Fix | Delete
#endif
[152] Fix | Delete
[153] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function