19.08.2013 Views

AN2120: Connecting an M68HC08 Family Microcontroller to an ...

AN2120: Connecting an M68HC08 Family Microcontroller to an ...

AN2120: Connecting an M68HC08 Family Microcontroller to an ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Application Note<br />

The most common LCP negotiations happening during initial connection<br />

are maximum-receive-unit, pro<strong>to</strong>col-field-compression, magic-number,<br />

authentication-pro<strong>to</strong>col <strong>an</strong>d async-control-character-map, all described<br />

in RFC1661 <strong>an</strong>d RFC1662. This application note tries <strong>to</strong> force<br />

negotiations <strong>to</strong> go our way. It first tries <strong>to</strong> use the default settings<br />

provided by the ISP <strong>an</strong>d goes from there. However, different<br />

implementations should modify the state machine inside<br />

H<strong>an</strong>dleLCPOptions () routine <strong>to</strong> h<strong>an</strong>dle LCP options differently.<br />

Password Authentication Pro<strong>to</strong>col (PAP)<br />

The password authentication pro<strong>to</strong>col is defined in RFC 1334. PAP is<br />

intended primarily for use by hosts <strong>an</strong>d routers that connect <strong>to</strong> a PPP<br />

network server commonly via dial-up lines, but it might be applied <strong>to</strong><br />

dedicated point-<strong>to</strong>-point links as well. The server c<strong>an</strong> use the<br />

identification of the connecting host or router in the selection of options<br />

for network layer negotiations. The authenticate-request packet format<br />

is shown in Figure 17.<br />

1 BYTE 1 BYTE 2 BYTES<br />

CODE IDENTIFIER<br />

USER ID LENGTH<br />

LENGTH<br />

1 BYTE LENGTH BYTES<br />

USER ID ...<br />

1 BYTE LENGTH BYTES<br />

PASSWORD LENGTH PASSWORD<br />

PPP HEADER<br />

7F FF 03 C0 23 01 05 00 0A<br />

00<br />

PPP CHECKSUM<br />

04 72 65 6E 65 D9 FA 7F<br />

Figure 17. PAP Packet Layout <strong>an</strong>d Sample —<br />

User ID = "", Password = "rene"<br />

<strong>AN2120</strong><br />

22 MOTOROLA

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!