1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:34:59 +00:00

Userland: Rename e1k0 to ep0s7

This commit is contained in:
Gunnar Beutner 2021-05-22 12:47:19 +02:00 committed by Linus Groh
parent e087a65775
commit 21cd278b8a

View file

@ -107,7 +107,8 @@ void test_send(int fd)
// bind to an interface that cannot deliver
char buf[IFNAMSIZ];
socklen_t buflen = IFNAMSIZ;
memcpy(buf, "e1k0", 5);
// FIXME: Look up the proper device name instead of hard-coding it
memcpy(buf, "ep0s7", 6);
if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, buf, buflen) < 0) {
perror("setsockopt(SO_BINDTODEVICE) :: send");