Lines Matching refs:opt
56 struct pptp_opt *opt; in lookup_chan() local
61 opt = &sock->proto.pptp; in lookup_chan()
62 if (opt->dst_addr.sin_addr.s_addr != s_addr) in lookup_chan()
75 struct pptp_opt *opt; in lookup_chan_dst() local
84 opt = &sock->proto.pptp; in lookup_chan_dst()
85 if (opt->dst_addr.call_id == call_id && in lookup_chan_dst()
86 opt->dst_addr.sin_addr.s_addr == d_addr) in lookup_chan_dst()
154 struct pptp_opt *opt = &po->proto.pptp; in pptp_xmit() local
196 if ((opt->ppp_flags & SC_COMP_PROT) && data[0] == 0 && !islcp) in pptp_xmit()
200 if ((opt->ppp_flags & SC_COMP_AC) == 0 || islcp) { in pptp_xmit()
208 seq_recv = opt->seq_recv; in pptp_xmit()
210 if (opt->ack_sent == seq_recv) in pptp_xmit()
219 hdr->call_id = htons(opt->dst_addr.call_id); in pptp_xmit()
221 hdr->seq = htonl(++opt->seq_sent); in pptp_xmit()
222 if (opt->ack_sent != seq_recv) { in pptp_xmit()
226 opt->ack_sent = seq_recv; in pptp_xmit()
235 memset(&(IPCB(skb)->opt), 0, sizeof(IPCB(skb)->opt)); in pptp_xmit()
272 struct pptp_opt *opt = &po->proto.pptp; in pptp_rcv_core() local
297 if (ack > opt->ack_recv) in pptp_rcv_core()
298 opt->ack_recv = ack; in pptp_rcv_core()
300 if (WRAPPED(ack, opt->ack_recv)) in pptp_rcv_core()
301 opt->ack_recv = ack; in pptp_rcv_core()
318 if (seq < opt->seq_recv + 1 || WRAPPED(opt->seq_recv, seq)) { in pptp_rcv_core()
324 opt->seq_recv = seq; in pptp_rcv_core()
420 struct pptp_opt *opt = &po->proto.pptp; in pptp_connect() local
447 if (!opt->src_addr.sin_addr.s_addr || !sp->sa_addr.pptp.sin_addr.s_addr) { in pptp_connect()
474 opt->dst_addr = sp->sa_addr.pptp; in pptp_connect()
546 struct pptp_opt *opt; in pptp_create() local
565 opt = &po->proto.pptp; in pptp_create()
567 opt->seq_sent = 0; opt->seq_recv = 0xffffffff; in pptp_create()
568 opt->ack_recv = 0; opt->ack_sent = 0xffffffff; in pptp_create()
580 struct pptp_opt *opt = &po->proto.pptp; in pptp_ppp_ioctl() local
588 val = opt->ppp_flags; in pptp_ppp_ioctl()
596 opt->ppp_flags = val & ~SC_RCV_BITS; in pptp_ppp_ioctl()