diff options
author | Mathieu Parent <math.parent@gmail.com> | 2013-01-14 17:48:01 +0100 |
---|---|---|
committer | Amitay Isaacs <amitay@gmail.com> | 2013-01-22 18:04:00 +1100 |
commit | 264f847631eb140f134c58e595989eb5af4ae711 (patch) | |
tree | 5a14216dc4c6460ab0311c6140dc7c6a6dbd0a74 /ctdb/common | |
parent | 52a99cbac6afac0348cbff216c6964156ca987b6 (diff) | |
download | samba-264f847631eb140f134c58e595989eb5af4ae711.tar.gz samba-264f847631eb140f134c58e595989eb5af4ae711.tar.xz samba-264f847631eb140f134c58e595989eb5af4ae711.zip |
common: Don't lie on unimplemented gratuitous arp
Signed-off-by: Mathieu Parent <math.parent@gmail.com>
(This used to be ctdb commit b054193d1d19a8eef998fa690899501f79badb8a)
Diffstat (limited to 'ctdb/common')
-rw-r--r-- | ctdb/common/system_aix.c | 4 | ||||
-rw-r--r-- | ctdb/common/system_freebsd.c | 2 | ||||
-rw-r--r-- | ctdb/common/system_gnu.c | 2 | ||||
-rw-r--r-- | ctdb/common/system_kfreebsd.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/ctdb/common/system_aix.c b/ctdb/common/system_aix.c index 3f2e92aa6c..35363d330a 100644 --- a/ctdb/common/system_aix.c +++ b/ctdb/common/system_aix.c @@ -206,8 +206,8 @@ int ctdb_sys_close_capture_socket(void *private_data) */ int ctdb_sys_send_arp(const ctdb_sock_addr *addr, const char *iface) { - /* We dont do grat arp on aix yet */ - return 0; + /* FIXME AIX: We dont do gratuitous arp yet */ + return -1; } diff --git a/ctdb/common/system_freebsd.c b/ctdb/common/system_freebsd.c index 1ce9d3d16d..641e77a3b0 100644 --- a/ctdb/common/system_freebsd.c +++ b/ctdb/common/system_freebsd.c @@ -76,7 +76,7 @@ static uint16_t tcp_checksum6(uint16_t *data, size_t n, struct ip6_hdr *ip6) int ctdb_sys_send_arp(const ctdb_sock_addr *addr, const char *iface) { /* FIXME FreeBSD: We dont do gratuitous arp yet */ - return 0; + return -1; } diff --git a/ctdb/common/system_gnu.c b/ctdb/common/system_gnu.c index b141da39f9..0d79ab504c 100644 --- a/ctdb/common/system_gnu.c +++ b/ctdb/common/system_gnu.c @@ -75,7 +75,7 @@ static uint16_t tcp_checksum6(uint16_t *data, size_t n, struct ip6_hdr *ip6) int ctdb_sys_send_arp(const ctdb_sock_addr *addr, const char *iface) { /* FIXME GNU/Hurd: We dont do gratuitous arp yet */ - return 0; + return -1; } diff --git a/ctdb/common/system_kfreebsd.c b/ctdb/common/system_kfreebsd.c index 103c1e0692..2c05c9e053 100644 --- a/ctdb/common/system_kfreebsd.c +++ b/ctdb/common/system_kfreebsd.c @@ -75,7 +75,7 @@ static uint16_t tcp_checksum6(uint16_t *data, size_t n, struct ip6_hdr *ip6) int ctdb_sys_send_arp(const ctdb_sock_addr *addr, const char *iface) { /* FIXME kFreeBSD: We dont do gratuitous arp yet */ - return 0; + return -1; } |