Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/ExeBy/smexe_ro.../usr/include/linux
File: dn.h
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
[0] Fix | Delete
#ifndef _LINUX_DN_H
[1] Fix | Delete
#define _LINUX_DN_H
[2] Fix | Delete
[3] Fix | Delete
#include <linux/ioctl.h>
[4] Fix | Delete
#include <linux/types.h>
[5] Fix | Delete
#include <linux/if_ether.h>
[6] Fix | Delete
[7] Fix | Delete
/*
[8] Fix | Delete
[9] Fix | Delete
DECnet Data Structures and Constants
[10] Fix | Delete
[11] Fix | Delete
*/
[12] Fix | Delete
[13] Fix | Delete
/*
[14] Fix | Delete
* DNPROTO_NSP can't be the same as SOL_SOCKET,
[15] Fix | Delete
* so increment each by one (compared to ULTRIX)
[16] Fix | Delete
*/
[17] Fix | Delete
#define DNPROTO_NSP 2 /* NSP protocol number */
[18] Fix | Delete
#define DNPROTO_ROU 3 /* Routing protocol number */
[19] Fix | Delete
#define DNPROTO_NML 4 /* Net mgt protocol number */
[20] Fix | Delete
#define DNPROTO_EVL 5 /* Evl protocol number (usr) */
[21] Fix | Delete
#define DNPROTO_EVR 6 /* Evl protocol number (evl) */
[22] Fix | Delete
#define DNPROTO_NSPT 7 /* NSP trace protocol number */
[23] Fix | Delete
[24] Fix | Delete
[25] Fix | Delete
#define DN_ADDL 2
[26] Fix | Delete
#define DN_MAXADDL 2 /* ULTRIX headers have 20 here, but pathworks has 2 */
[27] Fix | Delete
#define DN_MAXOPTL 16
[28] Fix | Delete
#define DN_MAXOBJL 16
[29] Fix | Delete
#define DN_MAXACCL 40
[30] Fix | Delete
#define DN_MAXALIASL 128
[31] Fix | Delete
#define DN_MAXNODEL 256
[32] Fix | Delete
#define DNBUFSIZE 65023
[33] Fix | Delete
[34] Fix | Delete
/*
[35] Fix | Delete
* SET/GET Socket options - must match the DSO_ numbers below
[36] Fix | Delete
*/
[37] Fix | Delete
#define SO_CONDATA 1
[38] Fix | Delete
#define SO_CONACCESS 2
[39] Fix | Delete
#define SO_PROXYUSR 3
[40] Fix | Delete
#define SO_LINKINFO 7
[41] Fix | Delete
[42] Fix | Delete
#define DSO_CONDATA 1 /* Set/Get connect data */
[43] Fix | Delete
#define DSO_DISDATA 10 /* Set/Get disconnect data */
[44] Fix | Delete
#define DSO_CONACCESS 2 /* Set/Get connect access data */
[45] Fix | Delete
#define DSO_ACCEPTMODE 4 /* Set/Get accept mode */
[46] Fix | Delete
#define DSO_CONACCEPT 5 /* Accept deferred connection */
[47] Fix | Delete
#define DSO_CONREJECT 6 /* Reject deferred connection */
[48] Fix | Delete
#define DSO_LINKINFO 7 /* Set/Get link information */
[49] Fix | Delete
#define DSO_STREAM 8 /* Set socket type to stream */
[50] Fix | Delete
#define DSO_SEQPACKET 9 /* Set socket type to sequenced packet */
[51] Fix | Delete
#define DSO_MAXWINDOW 11 /* Maximum window size allowed */
[52] Fix | Delete
#define DSO_NODELAY 12 /* Turn off nagle */
[53] Fix | Delete
#define DSO_CORK 13 /* Wait for more data! */
[54] Fix | Delete
#define DSO_SERVICES 14 /* NSP Services field */
[55] Fix | Delete
#define DSO_INFO 15 /* NSP Info field */
[56] Fix | Delete
#define DSO_MAX 15 /* Maximum option number */
[57] Fix | Delete
[58] Fix | Delete
[59] Fix | Delete
/* LINK States */
[60] Fix | Delete
#define LL_INACTIVE 0
[61] Fix | Delete
#define LL_CONNECTING 1
[62] Fix | Delete
#define LL_RUNNING 2
[63] Fix | Delete
#define LL_DISCONNECTING 3
[64] Fix | Delete
[65] Fix | Delete
#define ACC_IMMED 0
[66] Fix | Delete
#define ACC_DEFER 1
[67] Fix | Delete
[68] Fix | Delete
#define SDF_WILD 1 /* Wild card object */
[69] Fix | Delete
#define SDF_PROXY 2 /* Addr eligible for proxy */
[70] Fix | Delete
#define SDF_UICPROXY 4 /* Use uic-based proxy */
[71] Fix | Delete
[72] Fix | Delete
/* Structures */
[73] Fix | Delete
[74] Fix | Delete
[75] Fix | Delete
struct dn_naddr {
[76] Fix | Delete
__le16 a_len;
[77] Fix | Delete
__u8 a_addr[DN_MAXADDL]; /* Two bytes little endian */
[78] Fix | Delete
};
[79] Fix | Delete
[80] Fix | Delete
struct sockaddr_dn {
[81] Fix | Delete
__u16 sdn_family;
[82] Fix | Delete
__u8 sdn_flags;
[83] Fix | Delete
__u8 sdn_objnum;
[84] Fix | Delete
__le16 sdn_objnamel;
[85] Fix | Delete
__u8 sdn_objname[DN_MAXOBJL];
[86] Fix | Delete
struct dn_naddr sdn_add;
[87] Fix | Delete
};
[88] Fix | Delete
#define sdn_nodeaddrl sdn_add.a_len /* Node address length */
[89] Fix | Delete
#define sdn_nodeaddr sdn_add.a_addr /* Node address */
[90] Fix | Delete
[91] Fix | Delete
[92] Fix | Delete
[93] Fix | Delete
/*
[94] Fix | Delete
* DECnet set/get DSO_CONDATA, DSO_DISDATA (optional data) structure
[95] Fix | Delete
*/
[96] Fix | Delete
struct optdata_dn {
[97] Fix | Delete
__le16 opt_status; /* Extended status return */
[98] Fix | Delete
#define opt_sts opt_status
[99] Fix | Delete
__le16 opt_optl; /* Length of user data */
[100] Fix | Delete
__u8 opt_data[16]; /* User data */
[101] Fix | Delete
};
[102] Fix | Delete
[103] Fix | Delete
struct accessdata_dn {
[104] Fix | Delete
__u8 acc_accl;
[105] Fix | Delete
__u8 acc_acc[DN_MAXACCL];
[106] Fix | Delete
__u8 acc_passl;
[107] Fix | Delete
__u8 acc_pass[DN_MAXACCL];
[108] Fix | Delete
__u8 acc_userl;
[109] Fix | Delete
__u8 acc_user[DN_MAXACCL];
[110] Fix | Delete
};
[111] Fix | Delete
[112] Fix | Delete
/*
[113] Fix | Delete
* DECnet logical link information structure
[114] Fix | Delete
*/
[115] Fix | Delete
struct linkinfo_dn {
[116] Fix | Delete
__u16 idn_segsize; /* Segment size for link */
[117] Fix | Delete
__u8 idn_linkstate; /* Logical link state */
[118] Fix | Delete
};
[119] Fix | Delete
[120] Fix | Delete
/*
[121] Fix | Delete
* Ethernet address format (for DECnet)
[122] Fix | Delete
*/
[123] Fix | Delete
union etheraddress {
[124] Fix | Delete
__u8 dne_addr[ETH_ALEN]; /* Full ethernet address */
[125] Fix | Delete
struct {
[126] Fix | Delete
__u8 dne_hiord[4]; /* DECnet HIORD prefix */
[127] Fix | Delete
__u8 dne_nodeaddr[2]; /* DECnet node address */
[128] Fix | Delete
} dne_remote;
[129] Fix | Delete
};
[130] Fix | Delete
[131] Fix | Delete
[132] Fix | Delete
/*
[133] Fix | Delete
* DECnet physical socket address format
[134] Fix | Delete
*/
[135] Fix | Delete
struct dn_addr {
[136] Fix | Delete
__le16 dna_family; /* AF_DECnet */
[137] Fix | Delete
union etheraddress dna_netaddr; /* DECnet ethernet address */
[138] Fix | Delete
};
[139] Fix | Delete
[140] Fix | Delete
#define DECNET_IOCTL_BASE 0x89 /* PROTOPRIVATE range */
[141] Fix | Delete
[142] Fix | Delete
#define SIOCSNETADDR _IOW(DECNET_IOCTL_BASE, 0xe0, struct dn_naddr)
[143] Fix | Delete
#define SIOCGNETADDR _IOR(DECNET_IOCTL_BASE, 0xe1, struct dn_naddr)
[144] Fix | Delete
#define OSIOCSNETADDR _IOW(DECNET_IOCTL_BASE, 0xe0, int)
[145] Fix | Delete
#define OSIOCGNETADDR _IOR(DECNET_IOCTL_BASE, 0xe1, int)
[146] Fix | Delete
[147] Fix | Delete
#endif /* _LINUX_DN_H */
[148] Fix | Delete
[149] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function