Skip to content

Commit 4a6b513

Browse files
fix a copy and paste error in ingress config
1 parent fcf7e2e commit 4a6b513

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pep.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ void *listener_loop(void UNUSED(*unused))
617617
}
618618

619619
if (mark_ingress > 0) {
620-
ret = setsockopt(out_fd, SOL_SOCKET, SO_MARK,
620+
ret = setsockopt(listenfd, SOL_SOCKET, SO_MARK,
621621
&mark_ingress, sizeof(mark_ingress));
622622
if (ret < 0) {
623623
pep_error("Failed to set ingress mark to %d [%d]",
@@ -626,7 +626,7 @@ void *listener_loop(void UNUSED(*unused))
626626
}
627627

628628
if (strlen(tcp_congestion_algo_ingress) > 0) {
629-
ret = setsockopt(out_fd, IPPROTO_TCP, TCP_CONGESTION,
629+
ret = setsockopt(listenfd, IPPROTO_TCP, TCP_CONGESTION,
630630
tcp_congestion_algo_ingress,
631631
strlen(tcp_congestion_algo_ingress));
632632
if (ret < 0) {

0 commit comments

Comments
 (0)