Skip to content

Commit

Permalink
common: Don't lie on unimplemented gratuitous arp
Browse files Browse the repository at this point in the history
Signed-off-by: Mathieu Parent <[email protected]>

(This used to be ctdb commit b054193d1d19a8eef998fa690899501f79badb8a)
  • Loading branch information
sathieu authored and amitay committed Jan 22, 2013
1 parent 52a99cb commit 264f847
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions ctdb/common/system_aix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down
2 changes: 1 addition & 1 deletion ctdb/common/system_freebsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down
2 changes: 1 addition & 1 deletion ctdb/common/system_gnu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down
2 changes: 1 addition & 1 deletion ctdb/common/system_kfreebsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}


Expand Down

0 comments on commit 264f847

Please sign in to comment.