mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-12-10 08:46:40 +08:00
Handle UDPLITE as well as UDP
This commit is contained in:
parent
cca1607ab5
commit
5b73921be3
@ -109,6 +109,7 @@ ip_lookup(void *header, struct netif *inp)
|
|||||||
switch (IPH_PROTO(iphdr)) {
|
switch (IPH_PROTO(iphdr)) {
|
||||||
#if LWIP_UDP > 0
|
#if LWIP_UDP > 0
|
||||||
case IP_PROTO_UDP:
|
case IP_PROTO_UDP:
|
||||||
|
case IP_PROTO_UDPLITE:
|
||||||
return udp_lookup(iphdr, inp);
|
return udp_lookup(iphdr, inp);
|
||||||
#endif /* LWIP_UDP */
|
#endif /* LWIP_UDP */
|
||||||
#if LWIP_TCP > 0
|
#if LWIP_TCP > 0
|
||||||
@ -400,6 +401,7 @@ ip_input(struct pbuf *p, struct netif *inp) {
|
|||||||
switch (IPH_PROTO(iphdr)) {
|
switch (IPH_PROTO(iphdr)) {
|
||||||
#if LWIP_UDP > 0
|
#if LWIP_UDP > 0
|
||||||
case IP_PROTO_UDP:
|
case IP_PROTO_UDP:
|
||||||
|
case IP_PROTO_UDPLITE:
|
||||||
snmp_inc_ipindelivers();
|
snmp_inc_ipindelivers();
|
||||||
udp_input(p, inp);
|
udp_input(p, inp);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user