/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * These are the public elements of the Linux kernel X.25 implementation. * * History * mar/20/00 Daniela Squassoni Disabling/enabling of facilities * negotiation. * apr/02/05 Shaun Pereira Selective sub address matching with * call user data */ #ifndef X25_KERNEL_H #define X25_KERNEL_H #include <linux/types.h> #include <linux/socket.h> #define SIOCX25GSUBSCRIP … #define SIOCX25SSUBSCRIP … #define SIOCX25GFACILITIES … #define SIOCX25SFACILITIES … #define SIOCX25GCALLUSERDATA … #define SIOCX25SCALLUSERDATA … #define SIOCX25GCAUSEDIAG … #define SIOCX25SCUDMATCHLEN … #define SIOCX25CALLACCPTAPPRV … #define SIOCX25SENDCALLACCPT … #define SIOCX25GDTEFACILITIES … #define SIOCX25SDTEFACILITIES … #define SIOCX25SCAUSEDIAG … /* * Values for {get,set}sockopt. */ #define X25_QBITINCL … /* * X.25 Packet Size values. */ #define X25_PS16 … #define X25_PS32 … #define X25_PS64 … #define X25_PS128 … #define X25_PS256 … #define X25_PS512 … #define X25_PS1024 … #define X25_PS2048 … #define X25_PS4096 … /* * An X.121 address, it is held as ASCII text, null terminated, up to 15 * digits and a null terminator. */ struct x25_address { … }; /* * Linux X.25 Address structure, used for bind, and connect mostly. */ struct sockaddr_x25 { … }; /* * DTE/DCE subscription options. * * As this is missing lots of options, user should expect major * changes of this structure in 2.5.x which might break compatibilty. * The somewhat ugly dimension 200-sizeof() is needed to maintain * backward compatibility. */ struct x25_subscrip_struct { … }; /* values for above global_facil_mask */ #define X25_MASK_REVERSE … #define X25_MASK_THROUGHPUT … #define X25_MASK_PACKET_SIZE … #define X25_MASK_WINDOW_SIZE … #define X25_MASK_CALLING_AE … #define X25_MASK_CALLED_AE … /* * Routing table control structure. */ struct x25_route_struct { … }; /* * Facilities structure. */ struct x25_facilities { … }; /* * ITU DTE facilities * Only the called and calling address * extension are currently implemented. * The rest are in place to avoid the struct * changing size if someone needs them later */ struct x25_dte_facilities { … }; /* * Call User Data structure. */ struct x25_calluserdata { … }; /* * Call clearing Cause and Diagnostic structure. */ struct x25_causediag { … }; /* * Further optional call user data match length selection */ struct x25_subaddr { … }; #endif