ctdb-common: Move a misplaced comment
authorMartin Schwenke <martin@meltin.net>
Mon, 8 Aug 2022 01:29:36 +0000 (11:29 +1000)
committerJule Anger <janger@samba.org>
Tue, 29 Aug 2023 09:35:11 +0000 (09:35 +0000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
(cherry picked from commit c522f4f6045b48bffe47a12a246f356e71fbeec0)

ctdb/common/system_socket.c

index bb513508353ee21d239f02664c2cde5d6897e604..13e346a8866b9b49c4f5a0eaa538e0b7abe87ee9 100644 (file)
@@ -747,13 +747,6 @@ int ctdb_sys_send_tcp(const ctdb_sock_addr *dest,
        return 0;
 }
 
-/*
- * Packet capture
- *
- * If AF_PACKET is available then use a raw socket otherwise use pcap.
- * wscript has checked to make sure that pcap is available if needed.
- */
-
 static int tcp4_extract(const uint8_t *ip_pkt,
                        size_t pktlen,
                        struct sockaddr_in *src,
@@ -864,6 +857,12 @@ static int tcp6_extract(const uint8_t *ip_pkt,
        return 0;
 }
 
+/*
+ * Packet capture
+ *
+ * If AF_PACKET is available then use a raw socket otherwise use pcap.
+ * wscript has checked to make sure that pcap is available if needed.
+ */
 
 #ifdef HAVE_AF_PACKET