3         end
     1224 
     1225         if host["tcp.packets.seq_problems"] == true then
     1226             local tcp_seq_label = "TCP: " .. i18n("details.retransmissions") .. " / " .. i18n("details.out_of_order") ..
     1227                                       " / " .. i18n("details.lost") .. " / " .. i18n("details.keep_alive")
     1228 
     1229             -- SENT ANALYSIS
     1230             local tcp_retx_sent = "<span id=pkt_retransmissions_sent>" ..
     1231                                       formatPackets(host["tcpPacketStats.sent"]["retransmissions"]) ..
     1232                                       "</span> <span id=pkt_retransmissions_sent_trend></span>"
     1233             local tcp_ooo_sent =
     1234                 "<span id=pkt_ooo_sent>" .. formatPackets(host["tcpPacketStats.sent"]["out_of_order"]) ..
     1235                     "</span> <span id=pkt_ooo_sent_trend></span>"
     1236             local tcp_lost_sent = "<span id=pkt_lost_sent>" .. formatPackets(host["tcpPacketStats.sent"]["lost"]) ..
     1237                                       "</span> <span id=pkt_lost_sent_trend></span>"
     1238             local tcp_keep_alive_sent = "<span id=pkt_keep_alive_sent>" ..
     1239                                             formatPackets(host["tcpPacketStats.sent"]["keep_alive"]) ..
     1240                                             "</span> <span id=pkt_keep_alive_sent_trend></span>"
     1241 
     1242             -- RCVD ANALYSIS
     1243             local tcp_retx_rcvd = "<span id=pkt_retransmissions_rcvd>" ..
     1244                                       formatPackets(host["tcpPacketStats.rcvd"]["retransmissions"]) ..
     1245                                       "</span> <span id=pkt_retransmissions_rcvd_trend></span>"
     1246             local tcp_ooo_rcvd =
     1247                 "<span id=pkt_ooo_rcvd>" .. formatPackets(host["tcpPacketStats.rcvd"]["out_of_order"]) ..
     1248                     "</span> <span id=pkt_ooo_rcvd_trend></span>"
     1249             local tcp_lost_rcvd = "<span id=pkt_lost_rcvd>" .. formatPackets(host["tcpPacketStats.rcvd"]["lost"]) ..
     1250                                       "</span> <span id=pkt_lost_rcvd_trend></span>"
     1251             local tcp_keep_alive_rcvd = "<span id=pkt_keep_alive_rcvd>" ..
     1252                                             formatPackets(host["tcpPacketStats.rcvd"]["keep_alive"]) ..
     1253                                             "</span> <span id=pkt_keep_alive_rcvd_trend></span>"
     1254 
     1255             print("<tr><th rowspan=2>" .. tcp_seq_label .. "</th><th>" .. i18n("sent") .. "</th><th>" ..
     1256                       i18n("received") .. "</th></tr>")
     1257             print("<tr><td>" ..
     1258                       string.format("%s / %s / %s / %s", tcp_retx_sent, tcp_ooo_sent, tcp_lost_sent, tcp_keep_alive_sent) ..
     1259                       "</td><td>" ..
     1260                       string.format("%s / %s / %s / %s", tcp_retx_rcvd, tcp_ooo_rcvd, tcp_lost_rcvd, tcp_keep_alive_rcvd) ..
     1261                       "</td></tr>")
     1262         end
     1263 
     1264         -- Stats reset
     1265         print(template.gen("modal_confirm_dialog.html", {
     1266             dialog = {
     1267                 id = "reset_host_stats_dialog",
     1268                 action = "$('#reset_host_stats_form').submit();",
     1269                 title = i18n("host_details.reset_host_stats"),
     1270                 message = i18n("host_details.reset_host_stats_confirm", {
     1271                     host = host_label
     1272                 }) .. "<br><br>" .. i18n("host_details.reset_host_stats_note"),
     1273                 confirm = i18n("reset")
     1274             }
     1275         }))
     1276 
     1277         -- Stats reset
     1278         print(template.gen("modal_confirm_dialog.html", {
     1279             dialo