Feature #4542 » 3 of 3 - patch-rfc4638-supplementary-against-cvs.patch
src/pppoe.c 2015-09-19 08:06:07.956451000 +0100 | ||
---|---|---|
409 | 409 |
} |
410 | 410 |
|
411 | 411 |
#ifdef NGM_PPPOE_SETMAXP_COOKIE |
412 |
const uint16_t max_payload = pe->max_payload; |
|
412 | 413 |
if (pe->max_payload > 0) { |
413 |
const uint16_t max_payload = pe->max_payload; |
|
414 | 414 |
Log(LG_PHYS, ("[%s] PPPoE: Set PPP-Max-Payload to '%d'", |
415 | 415 |
l->name, max_payload)); |
416 |
/* Tell the PPPoE node to set PPP-Max-Payload value. */
|
|
417 |
if (NgSendMsg(pe->PIf->csock, path, NGM_PPPOE_COOKIE, NGM_PPPOE_SETMAXP,
|
|
418 |
&max_payload, sizeof(uint16_t)) < 0) {
|
|
419 |
Perror("[%s] PPPoE can't set PPP-Max-Payload value", l->name);
|
|
420 |
goto fail2;
|
|
421 |
}
|
|
416 |
}
|
|
417 |
/* Tell the PPPoE node to set PPP-Max-Payload value (unset if 0). */
|
|
418 |
if (NgSendMsg(pe->PIf->csock, path, NGM_PPPOE_COOKIE, NGM_PPPOE_SETMAXP,
|
|
419 |
&max_payload, sizeof(uint16_t)) < 0) {
|
|
420 |
Perror("[%s] PPPoE can't set PPP-Max-Payload value", l->name);
|
|
421 |
goto fail2;
|
|
422 | 422 |
} |
423 | 423 |
#endif |
424 | 424 |
- « Previous
- 1
- 2
- 3
- Next »