mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2026-05-26 01:57:01 +08:00
PPP, PPPoE: use service name and concentrator name
Make pppoe_create() actually store the passed service name and concentrator name, so that they are passed in the PADI/PADR/PADS packets. Assume that the user application won't be freeing the strings and just copy the string pointers, therefore remove the mem_free() in pppoe_destroy(). Since only the pointers are copied now, make them 'const' in pppoe_softc. Signed-off-by: Sylvain Rochet <gradator@gradator.net>
This commit is contained in:
committed by
Sylvain Rochet
parent
48615984c7
commit
c02fea0961
@@ -150,8 +150,8 @@ struct pppoe_softc {
|
||||
u8_t sc_state; /* discovery phase or session connected */
|
||||
|
||||
#if PPPOE_SCNAME_SUPPORT
|
||||
char *sc_service_name; /* if != NULL: requested name of service */
|
||||
char *sc_concentrator_name; /* if != NULL: requested concentrator id */
|
||||
const char *sc_service_name; /* if != NULL: requested name of service */
|
||||
const char *sc_concentrator_name; /* if != NULL: requested concentrator id */
|
||||
#endif /* PPPOE_SCNAME_SUPPORT */
|
||||
u8_t sc_ac_cookie[PPPOE_MAX_AC_COOKIE_LEN]; /* content of AC cookie we must echo back */
|
||||
u8_t sc_ac_cookie_len; /* length of cookie data */
|
||||
|
||||
Reference in New Issue
Block a user