Skip to content

Commit 2c58f8d

Browse files
mlaschkartben
authored andcommitted
drivers: net: ppp: Set point-to-point interface flag
Set the point-to-point flag because PPP is a point-to-point protocol. This flag enables specific IPv6 neighbor discovery handling, to select the correct sending interface. Without it set, a different interface might be selected based on the destination address. Signed-off-by: Marc Lasch <[email protected]>
1 parent e8bdc34 commit 2c58f8d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

drivers/net/ppp.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1031,6 +1031,12 @@ static void ppp_iface_init(struct net_if *iface)
10311031

10321032
memset(ppp->buf, 0, sizeof(ppp->buf));
10331033

1034+
/*
1035+
* Set the point-to-point interface flag. This is needed at least for IPv6 neighbor
1036+
* discovery to handle packets correctly.
1037+
*/
1038+
net_if_flag_set(iface, NET_IF_POINTOPOINT);
1039+
10341040
#if defined(CONFIG_PPP_NET_IF_NO_AUTO_START)
10351041
/*
10361042
* If interface autostart is disabled from Kconfig, then do not start the

0 commit comments

Comments
 (0)