Lines Matching full:we
99 lcp_options lcp_wantoptions[NUM_PPP]; /* Options that we want to request */
101 lcp_options lcp_allowoptions[NUM_PPP]; /* Options we allow peer to request */
102 lcp_options lcp_hisoptions[NUM_PPP]; /* Options that we ack'd */
109 /* @todo: do we really need such a large buffer? The typical 1500 bytes seem too much. */
110 static u_char nak_buffer[PPP_MRU]; /* where we construct a nak packet */
122 static void lcp_up (fsm*); /* We're UP */
123 static void lcp_down (fsm*); /* We're DOWN */
124 static void lcp_starting (fsm*); /* We need lower layer up */
125 static void lcp_finished (fsm*); /* We need lower layer down */
151 lcp_starting, /* Called when we want the lower layer up */
152 lcp_finished, /* Called when we want the lower layer down */
206 * setescape - add chars to the set we escape on transmission.
360 * if we are going to ask for A/C and protocol compression. in lcp_lowerup()
507 * rejected packet. We only get here if LCP is in the LS_OPENED state. in lcp_sprotrej()
543 * NB: we only ask for one of CHAP and UPAP, even if we will in lcp_cilen()
645 * CIs must be in exactly the same order that we sent. in lcp_ackci()
647 * If we find any deviations, then this packet is bad. in lcp_ackci()
766 lcp_options no; /* options we've seen Naks for */ in lcp_nakci()
775 * Any Nak'd CIs must be in exactly the same order that we sent. in lcp_nakci()
777 * If we find any deviations, then this packet is bad. in lcp_nakci()
848 * We don't care if they want to send us smaller packets than in lcp_nakci()
849 * we want. Therefore, accept any MRU less than what we asked for, in lcp_nakci()
851 * If they send us a bigger MRU than what we asked, accept it, up to in lcp_nakci()
852 * the limit of the default MRU we'd get if we didn't negotiate. in lcp_nakci()
887 * If we were asking for CHAP, they obviously don't want to do it. in lcp_nakci()
888 * If we weren't asking for CHAP, then we were asking for PAP, in lcp_nakci()
900 * We were asking for CHAP/MD5; they must want a different in lcp_nakci()
901 * algorithm. If they can't do MD5, we'll have to stop in lcp_nakci()
909 * Stop asking for PAP if we were asking for it. in lcp_nakci()
916 * We don't recognize what they're suggesting. in lcp_nakci()
917 * Stop asking for what we were asking for. in lcp_nakci()
929 * If they can't cope with our link quality protocol, we'll have in lcp_nakci()
930 * to stop asking for LQR. We haven't got any other protocol. in lcp_nakci()
970 * on an option that we didn't include in our request packet. in lcp_nakci()
971 * If we see an option that we requested, or one we've already seen in lcp_nakci()
973 * If we wanted to respond by starting to negotiate on the requested in lcp_nakci()
974 * option(s), we could, but we don't, because except for the in lcp_nakci()
975 * authentication type and quality protocol, if we are not negotiating in lcp_nakci()
976 * an option, it is because we were told not to. in lcp_nakci()
980 * reports', but if we didn't ask for them, we don't want them. in lcp_nakci()
981 * An option we don't recognize represents the peer asking to in lcp_nakci()
982 * negotiate some option we don't support, so ignore it. in lcp_nakci()
1047 * OK, the Nak is good. Now we can update state. in lcp_nakci()
1090 * Any Rejected CIs must be in exactly the same order that we sent. in lcp_rejci()
1092 * If we find any deviations, then this packet is bad. in lcp_rejci()
1202 * Now we can update state. in lcp_rejci()
1292 * we'll just ignore it. in lcp_reqci()
1350 * Reject the option if we're not willing to authenticate. in lcp_reqci()
1364 * for UPAP, then we will reject the second request. in lcp_reqci()
1365 * Whether we end up doing CHAP or UPAP depends then on in lcp_reqci()
1370 if (ho->neg_chap) { /* we've already accepted CHAP */ in lcp_reqci()
1379 if (!ao->neg_upap) { /* we don't want to do PAP */ in lcp_reqci()
1396 if (ho->neg_upap) { /* we've already accepted PAP */ in lcp_reqci()
1405 if (!ao->neg_chap) { /* we don't want to do CHAP */ in lcp_reqci()
1437 * We don't recognize the protocol they're asking for. in lcp_reqci()
1438 * Nak it with something we're willing to do. in lcp_reqci()
1439 * (At this point we know ao->neg_upap || ao->neg_chap.) in lcp_reqci()
1471 * XXX When should we Nak this, and what with? in lcp_reqci()
1604 * If we wanted to send additional NAKs (for unsent CIs), the in lcp_reqci()
1606 * At present there are no cases where we want to ask the in lcp_reqci()
1655 * Set our MTU to the smaller of the MTU we wanted and in lcp_up()
1656 * the MRU our peer wanted. If we negotiated an MRU, in lcp_up()
1657 * set our MRU to the larger of value we wanted and in lcp_up()
1658 * the value we got in the negotiation. in lcp_up()
1664 * If the asyncmap hasn't been negotiated, we really should in lcp_up()
1665 * set the receive asyncmap to ffffffff, but we set it to 0 in lcp_up()
1720 link_terminated(f->unit); /* we are finished with the link */ in lcp_finished()