aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHimbeerserverDE <himbeerserverde@gmail.com>2023-03-09 17:58:52 +0100
committerHimbeerserverDE <himbeerserverde@gmail.com>2023-03-09 17:58:52 +0100
commitd6e6db37933e19bee098e8aeb014e27aef30a446 (patch)
treeae01bc8be1b6f92ebcc4a12aab87d7ccb8a6f023
parent7b22f6f7ffbf78d2439321304d88a1670e8b9258 (diff)
accept session packets
-rw-r--r--pppoe-sys/pppoe/pppoe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pppoe-sys/pppoe/pppoe.c b/pppoe-sys/pppoe/pppoe.c
index 3bc582c..ad342ef 100644
--- a/pppoe-sys/pppoe/pppoe.c
+++ b/pppoe-sys/pppoe/pppoe.c
@@ -137,7 +137,7 @@ int pppoe_raw_socket_create(struct PppoeConnectionData *const data) {
assert(NULL != data);
int optval = 1;
- if ((data->raw_socket = socket(AF_PACKET, SOCK_RAW, htons(ETH_PPPOE_DISCOVERY))) < 0)
+ if ((data->raw_socket = socket(AF_PACKET, SOCK_RAW, htons(ETH_P_ALL))) < 0)
return -1;
if (setsockopt(data->raw_socket, SOL_SOCKET, SO_BROADCAST, &optval, sizeof(optval)) < 0)
@@ -158,7 +158,7 @@ int pppoe_raw_socket_bind(struct PppoeConnectionData const *const data) {
struct sockaddr_ll sa;
sa.sll_family = AF_PACKET;
- sa.sll_protocol = htons(ETH_PPPOE_DISCOVERY);
+ sa.sll_protocol = htons(ETH_P_ALL);
if ((sa.sll_ifindex = get_interface_index_from_name(data)) < 0)
return -1;