- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
- /*
- * These are the public elements of the Linux kernel X.25 implementation.
- *
- * History
- * mar/20/00 Daniela Squassoni Disabling/enabling of facilities
- * negotiation.
- */
- #ifndef X25_KERNEL_H
- #define X25_KERNEL_H
- #define SIOCX25GSUBSCRIP (SIOCPROTOPRIVATE + 0)
- #define SIOCX25SSUBSCRIP (SIOCPROTOPRIVATE + 1)
- #define SIOCX25GFACILITIES (SIOCPROTOPRIVATE + 2)
- #define SIOCX25SFACILITIES (SIOCPROTOPRIVATE + 3)
- #define SIOCX25GCALLUSERDATA (SIOCPROTOPRIVATE + 4)
- #define SIOCX25SCALLUSERDATA (SIOCPROTOPRIVATE + 5)
- #define SIOCX25GCAUSEDIAG (SIOCPROTOPRIVATE + 6)
- /*
- * Values for {get,set}sockopt.
- */
- #define X25_QBITINCL 1
- /*
- * X.25 Packet Size values.
- */
- #define X25_PS16 4
- #define X25_PS32 5
- #define X25_PS64 6
- #define X25_PS128 7
- #define X25_PS256 8
- #define X25_PS512 9
- #define X25_PS1024 10
- #define X25_PS2048 11
- #define X25_PS4096 12
- /*
- * An X.121 address, it is held as ASCII text, null terminated, up to 15
- * digits and a null terminator.
- */
- typedef struct {
- char x25_addr[16];
- } x25_address;
- /*
- * Linux X.25 Address structure, used for bind, and connect mostly.
- */
- struct sockaddr_x25 {
- sa_family_t sx25_family; /* Must be AF_X25 */
- x25_address sx25_addr; /* X.121 Address */
- };
- /*
- * 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 {
- char device[200-sizeof(unsigned long)];
- unsigned long global_facil_mask; /* 0 to disable negotiation */
- unsigned int extended;
- };
- /* values for above global_facil_mask */
- #define X25_MASK_REVERSE 0x01
- #define X25_MASK_THROUGHPUT 0x02
- #define X25_MASK_PACKET_SIZE 0x04
- #define X25_MASK_WINDOW_SIZE 0x08
- /*
- * Routing table control structure.
- */
- struct x25_route_struct {
- x25_address address;
- unsigned int sigdigits;
- char device[200];
- };
- /*
- * Facilities structure.
- */
- struct x25_facilities {
- unsigned int winsize_in, winsize_out;
- unsigned int pacsize_in, pacsize_out;
- unsigned int throughput;
- unsigned int reverse;
- };
- /*
- * Call User Data structure.
- */
- struct x25_calluserdata {
- unsigned int cudlength;
- unsigned char cuddata[128];
- };
- /*
- * Call clearing Cause and Diagnostic structure.
- */
- struct x25_causediag {
- unsigned char cause;
- unsigned char diagnostic;
- };
- #endif