Skip to content

Commit 364025c

Browse files
committed
modules: openthread: Fix network namespace API usage
bcec3bd introduced some of the non-native API names back into this module. Let's fix it. Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent 3d07d7f commit 364025c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/openthread/platform/infra_if.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,21 +392,21 @@ static void remove_checksums_for_eth_offloading(uint8_t *buf, uint16_t len)
392392
}
393393

394394
switch (ipv4_hdr->proto) {
395-
case IPPROTO_ICMP:
395+
case NET_IPPROTO_ICMP:
396396
if ((config.chksum_support & NET_IF_CHECKSUM_IPV4_ICMP) != 0) {
397397
struct net_icmp_hdr *icmp_hdr = (struct net_icmp_hdr *)pkt_cursor;
398398

399399
icmp_hdr->chksum = 0;
400400
}
401401
break;
402-
case IPPROTO_UDP:
402+
case NET_IPPROTO_UDP:
403403
if ((config.chksum_support & NET_IF_CHECKSUM_IPV4_UDP) != 0) {
404404
struct net_udp_hdr *udp_hdr = (struct net_udp_hdr *)pkt_cursor;
405405

406406
udp_hdr->chksum = 0;
407407
}
408408
break;
409-
case IPPROTO_TCP:
409+
case NET_IPPROTO_TCP:
410410
if ((config.chksum_support & NET_IF_CHECKSUM_IPV4_TCP) != 0) {
411411
struct net_tcp_hdr *tcp_hdr = (struct net_tcp_hdr *)pkt_cursor;
412412

0 commit comments

Comments
 (0)