wan/hdlc_x25: make lapb params configurable
This enables you to configure mode (DTE/DCE), Modulo, Window, T1, T2, N2 via sethdlc (which needs to be patched as well). Signed-off-by: Martin Schiller <ms@dev.tdt.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
29237d22bc
commit
f362e5fe0f
@@ -79,6 +79,15 @@ typedef struct {
|
||||
unsigned int timeout;
|
||||
} cisco_proto;
|
||||
|
||||
typedef struct {
|
||||
unsigned short dce; /* 1 for DCE (network side) operation */
|
||||
unsigned int modulo; /* modulo (8 = basic / 128 = extended) */
|
||||
unsigned int window; /* frame window size */
|
||||
unsigned int t1; /* timeout t1 */
|
||||
unsigned int t2; /* timeout t2 */
|
||||
unsigned int n2; /* frame retry counter */
|
||||
} x25_hdlc_proto;
|
||||
|
||||
/* PPP doesn't need any info now - supply length = 0 to ioctl */
|
||||
|
||||
#endif /* __ASSEMBLY__ */
|
||||
|
Reference in New Issue
Block a user