diff options
Diffstat (limited to 'core/rootfs')
-rw-r--r-- | core/rootfs/rootfs-stage32/module.build | 3 | ||||
-rw-r--r-- | core/rootfs/rootfs-stage32/module.conf | 1 | ||||
-rw-r--r-- | core/rootfs/rootfs-stage32/rdns.c | 28 |
3 files changed, 0 insertions, 32 deletions
diff --git a/core/rootfs/rootfs-stage32/module.build b/core/rootfs/rootfs-stage32/module.build index fe843ce7..8f98fc6d 100644 --- a/core/rootfs/rootfs-stage32/module.build +++ b/core/rootfs/rootfs-stage32/module.build @@ -15,9 +15,6 @@ build() { local FILELIST="list_binaries_and_files" [ -e "${FILELIST}" ] && rm "${FILELIST}" - # Compile rdns - mkdir -p "$MODULE_BUILD_DIR/opt/openslx/bin" - gcc -o "$MODULE_BUILD_DIR/opt/openslx/bin/rdns" "$MODULE_DIR/rdns.c" || perror "Compiling rdns failed." # Get ldconfig mkdir -p "$MODULE_BUILD_DIR/sbin" local LOC=$(which ldconfig.real) diff --git a/core/rootfs/rootfs-stage32/module.conf b/core/rootfs/rootfs-stage32/module.conf index 4235b999..409af2ba 100644 --- a/core/rootfs/rootfs-stage32/module.conf +++ b/core/rootfs/rootfs-stage32/module.conf @@ -37,7 +37,6 @@ REQUIRED_BINARIES=" bc dirname mkdosfs - rdns find rpcbind rpc.statd diff --git a/core/rootfs/rootfs-stage32/rdns.c b/core/rootfs/rootfs-stage32/rdns.c deleted file mode 100644 index 218f7400..00000000 --- a/core/rootfs/rootfs-stage32/rdns.c +++ /dev/null @@ -1,28 +0,0 @@ -#include <stdio.h> -#include <errno.h> -#include <netdb.h> -#include <sys/types.h> -#include <sys/socket.h> -#include <netinet/in.h> -#include <arpa/inet.h> - -int main(int argc, char *argv[]) -{ - if (argc != 2) { - fprintf(stderr,"usage: %s <IPADDRESS>\n", argv[0]); - return 1; - } - - struct hostent *he; - struct in_addr ipv4addr; - struct in6_addr ipv6addr; - - inet_pton(AF_INET, argv[1], &ipv4addr); - he = gethostbyaddr(&ipv4addr, sizeof ipv4addr, AF_INET); - if (he == NULL) return 2; - if (he->h_name == NULL) return 3; - printf("%s\n", he->h_name); - - return 0; -} - |