Snippets for tcpreplay 4.6.1 from FreeBSD 150amd64
Sourced from https://pkg-status.freebsd.org/beefy23/data/latest-per-pkg/tcpreplay/4.6.1/150amd64-default.log.
-
tcpedit.c:191:28: warning: taking address of packed member 'ip_sum' of class or structure 'tcpr_ipv4_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] 191 | csum_replace2(&ip_hdr->ip_sum, oldval, newval); | ^~~~~~~~~~~~~~ -
edit_packet.c:203:24: warning: taking address of packed member 'ip_sum' of class or structure 'tcpr_ipv4_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] 203 | csum_replace4(&ipv4->ip_sum, old, new); | ^~~~~~~~~~~~ -
edit_packet.c:208:24: warning: taking address of packed member 'th_sum' of class or structure 'tcpr_tcp_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] 208 | csum_replace4(&tcp_hdr->th_sum, old, new); | ^~~~~~~~~~~~~~~ -
edit_packet.c:235:25: warning: taking address of packed member 'th_sum' of class or structure 'tcpr_tcp_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] 235 | csum_replace16(&tcp_hdr->th_sum, old, new); | ^~~~~~~~~~~~~~~ -
edit_packet.c:246:25: warning: taking address of packed member 'icmp_sum' of class or structure 'tcpr_icmpv4_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] 246 | csum_replace16(&icmp->icmp_sum, old, new); | ^~~~~~~~~~~~~~ -
edit_packet.c:671:20: warning: taking address of packed member 'ip_sum' of class or structure 'tcpr_ipv4_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] 671 | csum_replace2(&ip_hdr->ip_sum, oldval, newval); | ^~~~~~~~~~~~~~ -
portmap.c:290:28: warning: taking address of packed member 'th_sum' of class or structure 'tcpr_tcp_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] 290 | csum_replace2(&tcp_hdr->th_sum, tcp_hdr->th_dport, newport); | ^~~~~~~~~~~~~~~ -
portmap.c:297:28: warning: taking address of packed member 'th_sum' of class or structure 'tcpr_tcp_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] 297 | csum_replace2(&tcp_hdr->th_sum, tcp_hdr->th_sport, newport); | ^~~~~~~~~~~~~~~ -
rewrite_sequence.c:43:20: warning: taking address of packed member 'th_sum' of class or structure 'tcpr_tcp_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] 43 | csum_replace4(&tcp_hdr->th_sum, tcp_hdr->th_seq, htonl(newnum)); | ^~~~~~~~~~~~~~~ -
rewrite_sequence.c:49:24: warning: taking address of packed member 'th_sum' of class or structure 'tcpr_tcp_hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] 49 | csum_replace4(&tcp_hdr->th_sum, tcp_hdr->th_ack, htonl(newnum)); | ^~~~~~~~~~~~~~~ -
./../../lib/queue.h:109:9: warning: 'SLIST_EMPTY' macro redefined [-Wmacro-redefined] 109 | #define SLIST_EMPTY(head) (SLIST_FIRST(head) == SLIST_END(head)) | ^ -
./../../lib/queue.h:112:9: warning: 'SLIST_FOREACH' macro redefined [-Wmacro-redefined] 112 | #define SLIST_FOREACH(var, head, field) \ | ^ -
./../../lib/queue.h:120:9: warning: 'SLIST_INIT' macro redefined [-Wmacro-redefined] 120 | #define SLIST_INIT(head) { \ | ^ -
./../../lib/queue.h:124:9: warning: 'SLIST_INSERT_AFTER' macro redefined [-Wmacro-redefined] 124 | #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ | ^ -
./../../lib/queue.h:129:9: warning: 'SLIST_INSERT_HEAD' macro redefined [-Wmacro-redefined] 129 | #define SLIST_INSERT_HEAD(head, elm, field) do { \ | ^ -
./../../lib/queue.h:134:9: warning: 'SLIST_REMOVE_HEAD' macro redefined [-Wmacro-redefined] 134 | #define SLIST_REMOVE_HEAD(head, field) do { \ | ^ -
./../../lib/queue.h:138:9: warning: 'SLIST_REMOVE' macro redefined [-Wmacro-redefined] 138 | #define SLIST_REMOVE(head, elm, type, field) do { \ | ^ -
./../../lib/queue.h:173:9: warning: 'LIST_EMPTY' macro redefined [-Wmacro-redefined] 173 | #define LIST_EMPTY(head) (LIST_FIRST(head) == LIST_END(head)) | ^ -
./../../lib/queue.h:176:9: warning: 'LIST_FOREACH' macro redefined [-Wmacro-redefined] 176 | #define LIST_FOREACH(var, head, field) \ | ^ -
./../../lib/queue.h:184:9: warning: 'LIST_INIT' macro redefined [-Wmacro-redefined] 184 | #define LIST_INIT(head) do { \ | ^ -
./../../lib/queue.h:188:9: warning: 'LIST_INSERT_AFTER' macro redefined [-Wmacro-redefined] 188 | #define LIST_INSERT_AFTER(listelm, elm, field) do { \ | ^ -
./../../lib/queue.h:196:9: warning: 'LIST_INSERT_BEFORE' macro redefined [-Wmacro-redefined] 196 | #define LIST_INSERT_BEFORE(listelm, elm, field) do { \ | ^ -
./../../lib/queue.h:203:9: warning: 'LIST_INSERT_HEAD' macro redefined [-Wmacro-redefined] 203 | #define LIST_INSERT_HEAD(head, elm, field) do { \ | ^ -
./../../lib/queue.h:210:9: warning: 'LIST_REMOVE' macro redefined [-Wmacro-redefined] 210 | #define LIST_REMOVE(elm, field) do { \ | ^ -
./../../lib/queue.h:217:9: warning: 'LIST_REPLACE' macro redefined [-Wmacro-redefined] 217 | #define LIST_REPLACE(elm, elm2, field) do { \ | ^ -
./../../lib/queue.h:289:9: warning: 'TAILQ_HEAD' macro redefined [-Wmacro-redefined] 289 | #define TAILQ_HEAD(name, type) \ | ^ -
./../../lib/queue.h:295:9: warning: 'TAILQ_HEAD_INITIALIZER' macro redefined [-Wmacro-redefined] 295 | #define TAILQ_HEAD_INITIALIZER(head) \ | ^ -
./../../lib/queue.h:298:9: warning: 'TAILQ_ENTRY' macro redefined [-Wmacro-redefined] 298 | #define TAILQ_ENTRY(type) \ | ^ -
./../../lib/queue.h:315:9: warning: 'TAILQ_EMPTY' macro redefined [-Wmacro-redefined] 315 | #define TAILQ_EMPTY(head) \ | ^ -
./../../lib/queue.h:318:9: warning: 'TAILQ_FOREACH' macro redefined [-Wmacro-redefined] 318 | #define TAILQ_FOREACH(var, head, field) \ | ^ -
./../../lib/queue.h:323:9: warning: 'TAILQ_FOREACH_REVERSE' macro redefined [-Wmacro-redefined] 323 | #define TAILQ_FOREACH_REVERSE(var, head, field, headname) \ | ^ -
./../../lib/queue.h:331:9: warning: 'TAILQ_INIT' macro redefined [-Wmacro-redefined] 331 | #define TAILQ_INIT(head) do { \ | ^ -
./../../lib/queue.h:344:9: warning: 'TAILQ_INSERT_HEAD' macro redefined [-Wmacro-redefined] 344 | #define TAILQ_INSERT_HEAD(head, elm, field) do { \ | ^ -
./../../lib/queue.h:354:9: warning: 'TAILQ_INSERT_TAIL' macro redefined [-Wmacro-redefined] 354 | #define TAILQ_INSERT_TAIL(head, elm, field) do { \ | ^ -
./../../lib/queue.h:361:9: warning: 'TAILQ_INSERT_AFTER' macro redefined [-Wmacro-redefined] 361 | #define TAILQ_INSERT_AFTER(head, listelm, elm, field) do { \ | ^ -
./../../lib/queue.h:371:9: warning: 'TAILQ_INSERT_BEFORE' macro redefined [-Wmacro-redefined] 371 | #define TAILQ_INSERT_BEFORE(listelm, elm, field) do { \ | ^ -
./../../lib/queue.h:378:9: warning: 'TAILQ_REMOVE' macro redefined [-Wmacro-redefined] 378 | #define TAILQ_REMOVE(head, elm, field) do { \ | ^ -
./../../lib/queue.h:387:9: warning: 'TAILQ_REPLACE' macro redefined [-Wmacro-redefined] 387 | #define TAILQ_REPLACE(head, elm, elm2, field) do { \ | ^ -
./../../lib/queue.h:112:9: warning: 'SLIST_FOREACH' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:120:9: warning: 'SLIST_INIT' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:124:9: warning: 'SLIST_INSERT_AFTER' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:129:9: warning: 'SLIST_INSERT_HEAD' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:217:9: warning: 'LIST_REPLACE' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:289:9: warning: 'TAILQ_HEAD' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:138:9: warning: 'SLIST_REMOVE' macro redefined [-Wmacro-redefined] 289 | #defi 138 | #define Sne TAILQ_HELIST_REMOVE(head, elm, type, fAD(nield) do { \ | ^ -
./../../lib/queue.h:173:9: warning: 'LIST_EMPTY' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:184:9: warning: 'LIST_INIT' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:196:9: warning: 'LIST_INSERT_BEFORE' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:318:9: warning: 'TAILQ_FOREACH' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:203:9: warning: 'LIST_INSERT_HEAD' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:210:9: warning: 'LIST_REMOVE' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:331:9: warning: 'TAILQ_INIT' macro redefined [-Wmacro-redefined] 800 | #define TAILQ_HEAD(name, type) \ | ^ -
./../../lib/queue.h:295:9: warning: 'TAILQ_HEAD_INITIALIZER' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:298:9: warning: 'TAILQ_ENTRY' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:344:9: warning: 'TAILQ_INSERT_HEAD' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:315:9: warning: 'TAILQ_EMPTY' macro redefined [-Wmacro-redefined] 344 | #define TAILQ_INSERT_HEAD(head, elm, field) do 315 | #define TAILQ_EMPTY(head) \ | ^ -
./../../lib/queue.h:323:9: warning: 'TAILQ_FOREACH_REVERSE' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:331:9: warning: 'TAILQ_INIT' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:354:9: warning: 'TAILQ_INSERT_TAIL' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:361:9: warning: 'TAILQ_INSERT_AFTER' macro redefined [-Wmacro-redefined]
-
./../../lib/queue.h:378:9: warning: 'TAILQ_REMOVE' macro redefined [-Wmacro-redefined] 361 | #define TAILQ_INSERT_AFTER(head, listelm, elm, field) do { \ | ^ -
./../../lib/queue.h:371:9: warning: 'TAILQ_INSERT_BEFORE' macro redefined [-Wmacro-redefined]
-
send_packets.c:625:75: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion] 625 | if ((options->loss <= 0.0f || rand() > (options->loss / 100.0f) * RAND_MAX) && | ~ ^~~~~~~~ -
send_packets.c:921:75: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion] 921 | if ((options->loss <= 0.0f || rand() > (options->loss / 100.0f) * RAND_MAX) && | ~ ^~~~~~~~ -
./../lib/queue.h:109:9: warning: 'SLIST_EMPTY' macro redefined [-Wmacro-redefined] 109 | #define SLIST_EMPTY(head) (SLIST_FIRST(head) == SLIST_END(head)) | ^ -
./../lib/queue.h:112:9: warning: 'SLIST_FOREACH' macro redefined [-Wmacro-redefined] 112 | #define SLIST_FOREACH(var, head, field) \ | ^ -
./../lib/queue.h:120:9: warning: 'SLIST_INIT' macro redefined [-Wmacro-redefined] 120 | #define SLIST_INIT(head) { \ | ^ -
./../lib/queue.h:124:9: warning: 'SLIST_INSERT_AFTER' macro redefined [-Wmacro-redefined] 124 | #define SLIST_INSERT_AFTER(slistelm, elm, field) do { \ | ^ -
./../lib/queue.h:129:9: warning: 'SLIST_INSERT_HEAD' macro redefined [-Wmacro-redefined] 129 | #define SLIST_INSERT_HEAD(head, elm, field) do { \ | ^ -
./../lib/queue.h:134:9: warning: 'SLIST_REMOVE_HEAD' macro redefined [-Wmacro-redefined] 134 | #define SLIST_REMOVE_HEAD(head, field) do { \ | ^ -
./../lib/queue.h:138:9: warning: 'SLIST_REMOVE' macro redefined [-Wmacro-redefined] 138 | #define SLIST_REMOVE(head, elm, type, field) do { \ | ^ -
./../lib/queue.h:173:9: warning: 'LIST_EMPTY' macro redefined [-Wmacro-redefined] 173 | #define LIST_EMPTY(head) (LIST_FIRST(head) == LIST_END(head)) | ^ -
./../lib/queue.h:176:9: warning: 'LIST_FOREACH' macro redefined [-Wmacro-redefined] 176 | #define LIST_FOREACH(var, head, field) \ | ^ -
./../lib/queue.h:184:9: warning: 'LIST_INIT' macro redefined [-Wmacro-redefined] 184 | #define LIST_INIT(head) do { \ | ^ -
./../lib/queue.h:188:9: warning: 'LIST_INSERT_AFTER' macro redefined [-Wmacro-redefined] 188 | #define LIST_INSERT_AFTER(listelm, elm, field) do { \ | ^ -
./../lib/queue.h:196:9: warning: 'LIST_INSERT_BEFORE' macro redefined [-Wmacro-redefined] 196 | #define LIST_INSERT_BEFORE(listelm, elm, field) do { \ | ^ -
./../lib/queue.h:203:9: warning: 'LIST_INSERT_HEAD' macro redefined [-Wmacro-redefined] 203 | #define LIST_INSERT_HEAD(head, elm, field) do { \ | ^ -
./../lib/queue.h:210:9: warning: 'LIST_REMOVE' macro redefined [-Wmacro-redefined] 210 | #define LIST_REMOVE(elm, field) do { \ | ^ -
./../lib/queue.h:217:9: warning: 'LIST_REPLACE' macro redefined [-Wmacro-redefined] 217 | #define LIST_REPLACE(elm, elm2, field) do { \ | ^ -
./../lib/queue.h:289:9: warning: 'TAILQ_HEAD' macro redefined [-Wmacro-redefined] 289 | #define TAILQ_HEAD(name, type) \ | ^ -
./../lib/queue.h:295:9: warning: 'TAILQ_HEAD_INITIALIZER' macro redefined [-Wmacro-redefined] 295 | #define TAILQ_HEAD_INITIALIZER(head) \ | ^ -
./../lib/queue.h:298:9: warning: 'TAILQ_ENTRY' macro redefined [-Wmacro-redefined] 298 | #define TAILQ_ENTRY(type) \ | ^ -
./../lib/queue.h:315:9: warning: 'TAILQ_EMPTY' macro redefined [-Wmacro-redefined] 315 | #define TAILQ_EMPTY(head) \ | ^ -
./../lib/queue.h:318:9: warning: 'TAILQ_FOREACH' macro redefined [-Wmacro-redefined] 318 | #define TAILQ_FOREACH(var, head, field) \ | ^ -
./../lib/queue.h:323:9: warning: 'TAILQ_FOREACH_REVERSE' macro redefined [-Wmacro-redefined] 323 | #define TAILQ_FOREACH_REVERSE(var, head, field, headname) \ | ^ -
./../lib/queue.h:331:9: warning: 'TAILQ_INIT' macro redefined [-Wmacro-redefined] 331 | #define TAILQ_INIT(head) do { \ | ^ -
./../lib/queue.h:344:9: warning: 'TAILQ_INSERT_HEAD' macro redefined [-Wmacro-redefined] 344 | #define TAILQ_INSERT_HEAD(head, elm, field) do { \ | ^ -
./../lib/queue.h:354:9: warning: 'TAILQ_INSERT_TAIL' macro redefined [-Wmacro-redefined] 354 | #define TAILQ_INSERT_TAIL(head, elm, field) do { \ | ^ -
./../lib/queue.h:361:9: warning: 'TAILQ_INSERT_AFTER' macro redefined [-Wmacro-redefined] 361 | #define TAILQ_INSERT_AFTER(head, listelm, elm, field) do { \ | ^ -
./../lib/queue.h:371:9: warning: 'TAILQ_INSERT_BEFORE' macro redefined [-Wmacro-redefined] 371 | #define TAILQ_INSERT_BEFORE(listelm, elm, field) do { \ | ^ -
./../lib/queue.h:378:9: warning: 'TAILQ_REMOVE' macro redefined [-Wmacro-redefined] 378 | #define TAILQ_REMOVE(head, elm, field) do { \ | ^ -
./../lib/queue.h:387:9: warning: 'TAILQ_REPLACE' macro redefined [-Wmacro-redefined] 387 | #define TAILQ_REPLACE(head, elm, elm2, field) do { \ | ^