Skip to content

Commit 1492110

Browse files
committed
address comments
1 parent 8808749 commit 1492110

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

examples/linux/nat20sw/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
# <https://www.gnu.org/licenses/>.
3535

3636
KDIR ?= /lib/modules/`uname -r`/build
37-
INSTALL_MOD_PATH ?= /lib/modules/`uname -r`/extra
37+
INSTALL_MOD_DIR ?= extra
3838

3939
NAT20SW_NAT20LIB_DIR ?= $(PWD)/../nat20lib
4040
NAT20SW_NAT20DEVICE_DIR ?= $(PWD)/../nat20device
@@ -46,7 +46,7 @@ modules:
4646
$(MAKE) -C $(KDIR) NAT20SW_NAT20LIB_DIR=$(NAT20SW_NAT20LIB_DIR) NAT20SW_NAT20DEVICE_DIR=$(NAT20SW_NAT20DEVICE_DIR) NAT20SW_NAT20CRYPTO_DIR=$(NAT20SW_NAT20CRYPTO_DIR) M=$$PWD
4747

4848
modules_install:
49-
$(MAKE) -C $(KDIR) INSTALL_MOD_PATH=$(INSTALL_MOD_PATH) M=$$PWD modules_install
49+
$(MAKE) -C $(KDIR) INSTALL_MOD_DIR=$(INSTALL_MOD_DIR) M=$$PWD modules_install
5050

5151
clean:
5252
$(MAKE) -C $(KDIR) M=$$PWD clean

examples/linux/nat20sw/nat20sw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ static int nat20sw_service_message_dispatch(void* ctx,
289289

290290
/* Use a heuristic to estimate the initial response buffer size. */
291291
/* Heuristic: request size + overhead for CBOR encoding and response metadata */
292-
response->size = request_size + 384;
292+
response->size = request_size + 450;
293293
response->data = kzalloc(response->size, GFP_KERNEL);
294294
if (response->data == NULL) {
295295
return -ENOMEM;

0 commit comments

Comments
 (0)