ctdb-common: Move a misplaced comment
authorMartin Schwenke <martin@meltin.net>
Mon, 8 Aug 2022 01:29:36 +0000 (11:29 +1000)
committerAmitay Isaacs <amitay@samba.org>
Tue, 20 Sep 2022 10:43:37 +0000 (10:43 +0000)
Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
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