Lines Matching refs:opt
55 struct pptp_opt *opt; in lookup_chan() local
60 opt = &sock->proto.pptp; in lookup_chan()
61 if (opt->dst_addr.sin_addr.s_addr != s_addr) in lookup_chan()
74 struct pptp_opt *opt; in lookup_chan_dst() local
83 opt = &sock->proto.pptp; in lookup_chan_dst()
84 if (opt->dst_addr.call_id == call_id && in lookup_chan_dst()
85 opt->dst_addr.sin_addr.s_addr == d_addr) in lookup_chan_dst()
136 struct pptp_opt *opt = &po->proto.pptp; in pptp_xmit() local
155 opt->dst_addr.sin_addr.s_addr, in pptp_xmit()
156 opt->src_addr.sin_addr.s_addr, in pptp_xmit()
182 if ((opt->ppp_flags & SC_COMP_PROT) && data[0] == 0 && !islcp) in pptp_xmit()
186 if ((opt->ppp_flags & SC_COMP_AC) == 0 || islcp) { in pptp_xmit()
194 seq_recv = opt->seq_recv; in pptp_xmit()
196 if (opt->ack_sent == seq_recv) in pptp_xmit()
205 hdr->call_id = htons(opt->dst_addr.call_id); in pptp_xmit()
207 hdr->seq = htonl(++opt->seq_sent); in pptp_xmit()
208 if (opt->ack_sent != seq_recv) { in pptp_xmit()
212 opt->ack_sent = seq_recv; in pptp_xmit()
221 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in pptp_xmit()
258 struct pptp_opt *opt = &po->proto.pptp; in pptp_rcv_core() local
285 if (ack > opt->ack_recv) in pptp_rcv_core()
286 opt->ack_recv = ack; in pptp_rcv_core()
288 if (WRAPPED(ack, opt->ack_recv)) in pptp_rcv_core()
289 opt->ack_recv = ack; in pptp_rcv_core()
306 if (seq < opt->seq_recv + 1 || WRAPPED(opt->seq_recv, seq)) { in pptp_rcv_core()
312 opt->seq_recv = seq; in pptp_rcv_core()
408 struct pptp_opt *opt = &po->proto.pptp; in pptp_connect() local
435 if (!opt->src_addr.sin_addr.s_addr || !sp->sa_addr.pptp.sin_addr.s_addr) { in pptp_connect()
444 opt->dst_addr.sin_addr.s_addr, in pptp_connect()
445 opt->src_addr.sin_addr.s_addr, in pptp_connect()
467 opt->dst_addr = sp->sa_addr.pptp; in pptp_connect()
539 struct pptp_opt *opt; in pptp_create() local
558 opt = &po->proto.pptp; in pptp_create()
560 opt->seq_sent = 0; opt->seq_recv = 0xffffffff; in pptp_create()
561 opt->ack_recv = 0; opt->ack_sent = 0xffffffff; in pptp_create()
573 struct pptp_opt *opt = &po->proto.pptp; in pptp_ppp_ioctl() local
581 val = opt->ppp_flags; in pptp_ppp_ioctl()
589 opt->ppp_flags = val & ~SC_RCV_BITS; in pptp_ppp_ioctl()