mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-30 07:20:20 +00:00
clarifying what is actually the "datainput" entry in protent
This commit is contained in:
parent
89ab390719
commit
0de1293ff5
@ -428,6 +428,9 @@ struct protent {
|
|||||||
void (*printer) __P((void *, char *, ...)),
|
void (*printer) __P((void *, char *, ...)),
|
||||||
void *arg));
|
void *arg));
|
||||||
#endif /* PRINTPKT_SUPPORT */
|
#endif /* PRINTPKT_SUPPORT */
|
||||||
|
/* FIXME: data input is only used by CCP, which is not supported at this time,
|
||||||
|
* should we remove this entry and save some flash ?
|
||||||
|
*/
|
||||||
/* Process a received data packet */
|
/* Process a received data packet */
|
||||||
void (*datainput) __P((int unit, u_char *pkt, int len));
|
void (*datainput) __P((int unit, u_char *pkt, int len));
|
||||||
bool enabled_flag; /* 0 iff protocol is disabled */
|
bool enabled_flag; /* 0 iff protocol is disabled */
|
||||||
|
@ -277,13 +277,21 @@ static void ppp_input(void *arg) {
|
|||||||
(*protp->input)(pd, nb->payload, nb->len);
|
(*protp->input)(pd, nb->payload, nb->len);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
#if 0 /* Unused ? */
|
#if 0 /* UNUSED
|
||||||
|
*
|
||||||
|
* This is actually a (hacked?) way for the PPP kernel implementation to pass a
|
||||||
|
* data packet to the PPP daemon. The PPP daemon normally only do signaling
|
||||||
|
* (LCP, PAP, CHAP, IPCP, ...) and does not handle any data packet at all.
|
||||||
|
*
|
||||||
|
* This is only used by CCP, which we cannot support until we have a CCP data
|
||||||
|
* implementation.
|
||||||
|
*/
|
||||||
if (protocol == (protp->protocol & ~0x8000) && protp->enabled_flag
|
if (protocol == (protp->protocol & ~0x8000) && protp->enabled_flag
|
||||||
&& protp->datainput != NULL) {
|
&& protp->datainput != NULL) {
|
||||||
(*protp->datainput)(pd, nb->payload, nb->len);
|
(*protp->datainput)(pd, nb->payload, nb->len);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
#endif /* Unused */
|
#endif /* UNUSED */
|
||||||
}
|
}
|
||||||
|
|
||||||
if (debug) {
|
if (debug) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user