blob: 2d8e606a1797bc151ebdc1321743b3d9157fd0e4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
--- src/pppoe.c.orig 2023-02-18 22:32:31.307998000 +0700
+++ src/pppoe.c 2023-02-18 22:33:20.814391000 +0700
@@ -619,7 +619,7 @@ PppoeCtrlReadEvent(int type, void *arg)
switch (u.resp.header.cmd) {
case NGM_PPPOE_SESSIONID: /* XXX: I do not know what to do with this? */
Log(LG_PHYS3, ("PPPoE: rec'd SESSIONID %u from \"%s\"",
- ntohs((uint16_t)u.resp.data), path));
+ ntohs(*(uint16_t*)u.resp.data), path));
break;
case NGM_PPPOE_SUCCESS:
Log(LG_PHYS, ("[%s] PPPoE: connection successful", l->name));
|