Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../usr/include/linux/hdlc
File: ioctl.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef __HDLC_IOCTL_H__
[1] Fix | Delete
#define __HDLC_IOCTL_H__
[2] Fix | Delete
[3] Fix | Delete
[4] Fix | Delete
#define GENERIC_HDLC_VERSION 4 /* For synchronization with sethdlc utility */
[5] Fix | Delete
[6] Fix | Delete
#define CLOCK_DEFAULT 0 /* Default setting */
[7] Fix | Delete
#define CLOCK_EXT 1 /* External TX and RX clock - DTE */
[8] Fix | Delete
#define CLOCK_INT 2 /* Internal TX and RX clock - DCE */
[9] Fix | Delete
#define CLOCK_TXINT 3 /* Internal TX and external RX clock */
[10] Fix | Delete
#define CLOCK_TXFROMRX 4 /* TX clock derived from external RX clock */
[11] Fix | Delete
[12] Fix | Delete
[13] Fix | Delete
#define ENCODING_DEFAULT 0 /* Default setting */
[14] Fix | Delete
#define ENCODING_NRZ 1
[15] Fix | Delete
#define ENCODING_NRZI 2
[16] Fix | Delete
#define ENCODING_FM_MARK 3
[17] Fix | Delete
#define ENCODING_FM_SPACE 4
[18] Fix | Delete
#define ENCODING_MANCHESTER 5
[19] Fix | Delete
[20] Fix | Delete
[21] Fix | Delete
#define PARITY_DEFAULT 0 /* Default setting */
[22] Fix | Delete
#define PARITY_NONE 1 /* No parity */
[23] Fix | Delete
#define PARITY_CRC16_PR0 2 /* CRC16, initial value 0x0000 */
[24] Fix | Delete
#define PARITY_CRC16_PR1 3 /* CRC16, initial value 0xFFFF */
[25] Fix | Delete
#define PARITY_CRC16_PR0_CCITT 4 /* CRC16, initial 0x0000, ITU-T version */
[26] Fix | Delete
#define PARITY_CRC16_PR1_CCITT 5 /* CRC16, initial 0xFFFF, ITU-T version */
[27] Fix | Delete
#define PARITY_CRC32_PR0_CCITT 6 /* CRC32, initial value 0x00000000 */
[28] Fix | Delete
#define PARITY_CRC32_PR1_CCITT 7 /* CRC32, initial value 0xFFFFFFFF */
[29] Fix | Delete
[30] Fix | Delete
#define LMI_DEFAULT 0 /* Default setting */
[31] Fix | Delete
#define LMI_NONE 1 /* No LMI, all PVCs are static */
[32] Fix | Delete
#define LMI_ANSI 2 /* ANSI Annex D */
[33] Fix | Delete
#define LMI_CCITT 3 /* ITU-T Annex A */
[34] Fix | Delete
#define LMI_CISCO 4 /* The "original" LMI, aka Gang of Four */
[35] Fix | Delete
[36] Fix | Delete
#ifndef __ASSEMBLY__
[37] Fix | Delete
[38] Fix | Delete
typedef struct {
[39] Fix | Delete
unsigned int clock_rate; /* bits per second */
[40] Fix | Delete
unsigned int clock_type; /* internal, external, TX-internal etc. */
[41] Fix | Delete
unsigned short loopback;
[42] Fix | Delete
} sync_serial_settings; /* V.35, V.24, X.21 */
[43] Fix | Delete
[44] Fix | Delete
typedef struct {
[45] Fix | Delete
unsigned int clock_rate; /* bits per second */
[46] Fix | Delete
unsigned int clock_type; /* internal, external, TX-internal etc. */
[47] Fix | Delete
unsigned short loopback;
[48] Fix | Delete
unsigned int slot_map;
[49] Fix | Delete
} te1_settings; /* T1, E1 */
[50] Fix | Delete
[51] Fix | Delete
typedef struct {
[52] Fix | Delete
unsigned short encoding;
[53] Fix | Delete
unsigned short parity;
[54] Fix | Delete
} raw_hdlc_proto;
[55] Fix | Delete
[56] Fix | Delete
typedef struct {
[57] Fix | Delete
unsigned int t391;
[58] Fix | Delete
unsigned int t392;
[59] Fix | Delete
unsigned int n391;
[60] Fix | Delete
unsigned int n392;
[61] Fix | Delete
unsigned int n393;
[62] Fix | Delete
unsigned short lmi;
[63] Fix | Delete
unsigned short dce; /* 1 for DCE (network side) operation */
[64] Fix | Delete
} fr_proto;
[65] Fix | Delete
[66] Fix | Delete
typedef struct {
[67] Fix | Delete
unsigned int dlci;
[68] Fix | Delete
} fr_proto_pvc; /* for creating/deleting FR PVCs */
[69] Fix | Delete
[70] Fix | Delete
typedef struct {
[71] Fix | Delete
unsigned int dlci;
[72] Fix | Delete
char master[IFNAMSIZ]; /* Name of master FRAD device */
[73] Fix | Delete
}fr_proto_pvc_info; /* for returning PVC information only */
[74] Fix | Delete
[75] Fix | Delete
typedef struct {
[76] Fix | Delete
unsigned int interval;
[77] Fix | Delete
unsigned int timeout;
[78] Fix | Delete
} cisco_proto;
[79] Fix | Delete
[80] Fix | Delete
/* PPP doesn't need any info now - supply length = 0 to ioctl */
[81] Fix | Delete
[82] Fix | Delete
#endif /* __ASSEMBLY__ */
[83] Fix | Delete
#endif /* __HDLC_IOCTL_H__ */
[84] Fix | Delete
[85] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function