ctdb-common: Protocol argument must be in host order for socket() call
[samba.git] / ctdb / common / system_aix.c
index 141e89107b7eb3033cdbfc19913c280183f07be4..2d35a229aade570aff6f65e92b4f08aa268fca88 100644 (file)
@@ -26,8 +26,7 @@
 
 #include "lib/util/debug.h"
 
-#include "ctdb_logging.h"
-#include "ctdb_private.h"
+#include "protocol/protocol.h"
 
 #include <netinet/if_ether.h>
 #include <netinet/ip6.h>
@@ -36,6 +35,7 @@
 #include <sys/kinfo.h>
 #include <pcap.h>
 
+#include "common/logging.h"
 #include "common/system.h"
 
 
@@ -50,7 +50,7 @@ int ctdb_sys_open_sending_socket(void)
        int s, ret;
        uint32_t one = 1;
 
-       s = socket(AF_INET, SOCK_RAW, htons(IPPROTO_RAW));
+       s = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
        if (s == -1) {
                DEBUG(DEBUG_CRIT,(" failed to open raw socket (%s)\n",
                         strerror(errno)));
@@ -127,7 +127,7 @@ int ctdb_sys_send_tcp(const ctdb_sock_addr *dest,
 
 
 
-       s = socket(AF_INET, SOCK_RAW, htons(IPPROTO_RAW));
+       s = socket(AF_INET, SOCK_RAW, IPPROTO_RAW);
        if (s == -1) {
                DEBUG(DEBUG_CRIT,(" failed to open raw socket (%s)\n",
                         strerror(errno)));
@@ -379,9 +379,3 @@ int ctdb_get_peer_pid(const int fd, pid_t *peer_pid)
        }
        return ret;
 }
-
-int ctdb_set_process_name(const char *name)
-{
-       /* FIXME AIX: set_process_name not implemented */
-       return -ENOSYS;
-}