Project

General

Profile

Feature #4542 » 3 of 3 - patch-rfc4638-supplementary-against-cvs.patch

Greg B, 09/19/2015 06:05 PM

View differences:

src/pppoe.c 2015-09-19 08:06:07.956451000 +0100
}
#ifdef NGM_PPPOE_SETMAXP_COOKIE
const uint16_t max_payload = pe->max_payload;
if (pe->max_payload > 0) {
const uint16_t max_payload = pe->max_payload;
Log(LG_PHYS, ("[%s] PPPoE: Set PPP-Max-Payload to '%d'",
l->name, max_payload));
/* Tell the PPPoE node to set PPP-Max-Payload value. */
if (NgSendMsg(pe->PIf->csock, path, NGM_PPPOE_COOKIE, NGM_PPPOE_SETMAXP,
&max_payload, sizeof(uint16_t)) < 0) {
Perror("[%s] PPPoE can't set PPP-Max-Payload value", l->name);
goto fail2;
}
}
/* Tell the PPPoE node to set PPP-Max-Payload value (unset if 0). */
if (NgSendMsg(pe->PIf->csock, path, NGM_PPPOE_COOKIE, NGM_PPPOE_SETMAXP,
&max_payload, sizeof(uint16_t)) < 0) {
Perror("[%s] PPPoE can't set PPP-Max-Payload value", l->name);
goto fail2;
}
#endif
(3-3/3)