summaryrefslogtreecommitdiff
path: root/Userland/Utilities
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-22 12:41:29 +0200
committerLinus Groh <mail@linusgroh.de>2021-05-22 15:42:54 +0100
commite087a65775cc06b02d8e1f1f8bce1ebb8c405c54 (patch)
tree923a17a35217ff7f8780e41b98f5d349ed493e46 /Userland/Utilities
parente5e00bec8f61d4cf8853ad92fe68e7b8a082484e (diff)
downloadserenity-e087a65775cc06b02d8e1f1f8bce1ebb8c405c54.zip
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.
Diffstat (limited to 'Userland/Utilities')
-rw-r--r--Userland/Utilities/test-bindtodevice.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/test-bindtodevice.cpp b/Userland/Utilities/test-bindtodevice.cpp
index 633ca838d7..d0e6ddbe9c 100644
--- a/Userland/Utilities/test-bindtodevice.cpp
+++ b/Userland/Utilities/test-bindtodevice.cpp
@@ -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");