gatppp: Re-format & re-word comments

This commit is contained in:
Denis Kenzior 2011-06-29 03:32:27 -05:00
parent 3b2e579cf4
commit 12338faabd
1 changed files with 2 additions and 6 deletions

View File

@ -298,9 +298,7 @@ static void ppp_send_acfc_pfc_frame(GAtPPP *ppp, guint8 *packet,
else if (ppp->xmit_acfc) else if (ppp->xmit_acfc)
offset = 2; offset = 2;
else if (ppp->xmit_pfc) { else if (ppp->xmit_pfc) {
/* /* Shuffle AC bytes in place of the first protocol byte */
* We remove only the 1st byte that is 0x00 of protocol field.
*/
packet[2] = packet[1]; packet[2] = packet[1];
packet[1] = packet[0]; packet[1] = packet[0];
offset = 1; offset = 1;
@ -334,9 +332,7 @@ void ppp_transmit(GAtPPP *ppp, guint8 *packet, guint infolen)
ppp_send_acfc_frame(ppp, packet, infolen); ppp_send_acfc_frame(ppp, packet, infolen);
break; break;
case PPP_IP_PROTO: case PPP_IP_PROTO:
/* /* We can use both ACFC & PFC if they are negotiated */
* We can't use both compression options if they are negotiated
*/
ppp_send_acfc_pfc_frame(ppp, packet, infolen); ppp_send_acfc_pfc_frame(ppp, packet, infolen);
break; break;
} }