mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:24:57 +00:00
Userland: Rename loop0 to loop
Now that the kernel picks a different name for the loopback adapter we should update userland to account for this.
This commit is contained in:
parent
e5e00bec8f
commit
e087a65775
2 changed files with 3 additions and 3 deletions
|
@ -60,7 +60,7 @@ void test_valid(int fd)
|
|||
// bind to an interface that exists
|
||||
char buf[IFNAMSIZ];
|
||||
socklen_t buflen = IFNAMSIZ;
|
||||
memcpy(buf, "loop0", 6);
|
||||
memcpy(buf, "loop", 5);
|
||||
|
||||
if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, buf, buflen) < 0) {
|
||||
perror("setsockopt(SO_BINDTODEVICE) :: valid");
|
||||
|
@ -75,7 +75,7 @@ void test_no_route(int fd)
|
|||
// bind to an interface that cannot deliver
|
||||
char buf[IFNAMSIZ];
|
||||
socklen_t buflen = IFNAMSIZ;
|
||||
memcpy(buf, "loop0", 6);
|
||||
memcpy(buf, "loop", 5);
|
||||
|
||||
if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, buf, buflen) < 0) {
|
||||
perror("setsockopt(SO_BINDTODEVICE) :: no_route");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue