• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/net/x25/

Lines Matching refs:x25

32 #include <net/x25.h>
39 struct x25_sock *x25 = x25_sk(sk);
42 skb_queue_purge(&x25->ack_queue);
43 skb_queue_purge(&x25->interrupt_in_queue);
44 skb_queue_purge(&x25->interrupt_out_queue);
45 skb_queue_purge(&x25->fragment_queue);
57 struct x25_sock *x25 = x25_sk(sk);
58 int modulus = x25->neighbour->extended ? X25_EMODULUS : X25_SMODULUS;
63 if (x25->va != nr)
64 while (skb_peek(&x25->ack_queue) && x25->va != nr) {
65 skb = skb_dequeue(&x25->ack_queue);
67 x25->va = (x25->va + 1) % modulus;
95 struct x25_sock *x25 = x25_sk(sk);
96 unsigned short vc = x25->va;
97 int modulus = x25->neighbour->extended ? X25_EMODULUS : X25_SMODULUS;
99 while (vc != x25->vs) {
105 return nr == x25->vs ? 1 : 0;
114 struct x25_sock *x25 = x25_sk(sk);
134 if(x25->facilities.reverse & 0x80) {
170 lci1 = (x25->lci >> 8) & 0x0F;
171 lci2 = (x25->lci >> 0) & 0xFF;
173 if (x25->neighbour->extended) {
189 len = x25_addr_aton(addresses, &x25->dest_addr,
190 &x25->source_addr);
194 &x25->facilities,
195 &x25->dte_facilities,
196 x25->neighbour->global_facil_mask);
199 dptr = skb_put(skb, x25->calluserdata.cudlength);
200 memcpy(dptr, x25->calluserdata.cuddata,
201 x25->calluserdata.cudlength);
202 x25->calluserdata.cudlength = 0;
210 &x25->facilities,
211 &x25->dte_facilities,
212 x25->vc_facil_mask);
219 if(x25->facilities.reverse & 0x80) {
221 x25->calluserdata.cudlength);
222 memcpy(dptr, x25->calluserdata.cuddata,
223 x25->calluserdata.cudlength);
225 x25->calluserdata.cudlength = 0;
231 *dptr++ = x25->causediag.cause;
232 *dptr++ = x25->causediag.diagnostic;
245 if (x25->neighbour->extended) {
248 *dptr++ = (x25->vr << 1) & 0xFE;
252 *dptr++ |= (x25->vr << 5) & 0xE0;
264 x25_transmit_link(skb, x25->neighbour);
273 struct x25_sock *x25 = x25_sk(sk);
295 if (x25->neighbour->extended) {
311 if (x25->neighbour->extended) {
340 struct x25_sock *x25 = x25_sk(sk);
345 x25->lci = 0;
346 x25->state = X25_STATE_0;
348 x25->causediag.cause = cause;
349 x25->causediag.diagnostic = diagnostic;
367 struct x25_sock *x25 = x25_sk(sk);
370 (x25->condition & X25_COND_OWN_RX_BUSY)) {
371 x25->condition &= ~X25_COND_OWN_RX_BUSY;
372 x25->condition &= ~X25_COND_ACK_PENDING;
373 x25->vl = x25->vr;