aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/x25.h10
-rw-r--r--include/net/x25.h3
2 files changed, 11 insertions, 2 deletions
diff --git a/include/linux/x25.h b/include/linux/x25.h
index 7531cfed5885..6f43b3d20248 100644
--- a/include/linux/x25.h
+++ b/include/linux/x25.h
@@ -4,6 +4,8 @@
4 * History 4 * History
5 * mar/20/00 Daniela Squassoni Disabling/enabling of facilities 5 * mar/20/00 Daniela Squassoni Disabling/enabling of facilities
6 * negotiation. 6 * negotiation.
7 * apr/02/05 Shaun Pereira Selective sub address matching with
8 * call user data
7 */ 9 */
8 10
9#ifndef X25_KERNEL_H 11#ifndef X25_KERNEL_H
@@ -16,6 +18,7 @@
16#define SIOCX25GCALLUSERDATA (SIOCPROTOPRIVATE + 4) 18#define SIOCX25GCALLUSERDATA (SIOCPROTOPRIVATE + 4)
17#define SIOCX25SCALLUSERDATA (SIOCPROTOPRIVATE + 5) 19#define SIOCX25SCALLUSERDATA (SIOCPROTOPRIVATE + 5)
18#define SIOCX25GCAUSEDIAG (SIOCPROTOPRIVATE + 6) 20#define SIOCX25GCAUSEDIAG (SIOCPROTOPRIVATE + 6)
21#define SIOCX25SCUDMATCHLEN (SIOCPROTOPRIVATE + 7)
19 22
20/* 23/*
21 * Values for {get,set}sockopt. 24 * Values for {get,set}sockopt.
@@ -109,4 +112,11 @@ struct x25_causediag {
109 unsigned char diagnostic; 112 unsigned char diagnostic;
110}; 113};
111 114
115/*
116 * Further optional call user data match length selection
117 */
118struct x25_subaddr {
119 unsigned int cudmatchlength;
120};
121
112#endif 122#endif
diff --git a/include/net/x25.h b/include/net/x25.h
index 7a1ba5bbb868..9dd70dd4a9b7 100644
--- a/include/net/x25.h
+++ b/include/net/x25.h
@@ -134,7 +134,7 @@ struct x25_sock {
134 struct sock sk; 134 struct sock sk;
135 struct x25_address source_addr, dest_addr; 135 struct x25_address source_addr, dest_addr;
136 struct x25_neigh *neighbour; 136 struct x25_neigh *neighbour;
137 unsigned int lci; 137 unsigned int lci, cudmatchlength;
138 unsigned char state, condition, qbitincl, intflag; 138 unsigned char state, condition, qbitincl, intflag;
139 unsigned short vs, vr, va, vl; 139 unsigned short vs, vr, va, vl;
140 unsigned long t2, t21, t22, t23; 140 unsigned long t2, t21, t22, t23;
@@ -242,7 +242,6 @@ extern int x25_validate_nr(struct sock *, unsigned short);
242extern void x25_write_internal(struct sock *, int); 242extern void x25_write_internal(struct sock *, int);
243extern int x25_decode(struct sock *, struct sk_buff *, int *, int *, int *, int *, int *); 243extern int x25_decode(struct sock *, struct sk_buff *, int *, int *, int *, int *, int *);
244extern void x25_disconnect(struct sock *, int, unsigned char, unsigned char); 244extern void x25_disconnect(struct sock *, int, unsigned char, unsigned char);
245extern int x25_check_calluserdata(struct x25_calluserdata *,struct x25_calluserdata *);
246 245
247/* x25_timer.c */ 246/* x25_timer.c */
248extern void x25_start_heartbeat(struct sock *); 247extern void x25_start_heartbeat(struct sock *);