Skip to content

Commit

Permalink
Network: fix UDP routing issue and update version
Browse files Browse the repository at this point in the history
  • Loading branch information
furbanc authored and RobertRostohar committed Jun 21, 2024
1 parent 45b93f0 commit 52a4776
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions Components/Network/Source/net_udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ netStatus net_udp_send_if (NET_IF_CFG *net_if, int32_t socket,
retv = netError;
goto retf;
}
net_if = out_if;

/* Check the UDP data size limits */
if (len > UDP_MTU) {
Expand Down
8 changes: 4 additions & 4 deletions Components/Network/Source/net_version.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#include "net_lib.h"
#include "net_version.h"

#define MAJOR (MW_NET_VERSION_MAJOR)
#define MINOR (MW_NET_VERSION_MINOR)
#define PATCH (MW_NET_VERSION_PATCH)
#define MAJOR MW_NET_VERSION_MAJOR
#define MINOR MW_NET_VERSION_MINOR
#define PATCH MW_NET_VERSION_PATCH

/* Version create macros */
#define VER_BIN(x,y,z) (x << 24 | y << 16 | z)
Expand All @@ -32,5 +32,5 @@ const uint32_t net_lib_version = VER_BIN(MAJOR, MINOR, PATCH);

#ifdef Network_Debug_STDIO
/* String version: for example "7.17.0" */
const char net_ver_ascii[] = VER_ASCII(MAJOR, MINOR, BUILD);
const char net_ver_ascii[] = VER_ASCII(MAJOR, MINOR, PATCH);
#endif

0 comments on commit 52a4776

Please sign in to comment.