]> The Tcpdump Group git mirrors - tcpdump/commitdiff
Zephyr: Update 'length' type to unsigned
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 22 May 2021 07:41:31 +0000 (09:41 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Thu, 27 May 2021 12:08:55 +0000 (14:08 +0200)
It is unsigned in the calling function udp_print().

(cherry picked from commit 29973d83e8cecbb3bc940af216f6bef2376f39c5)

netdissect.h
print-zephyr.c

index c1e94c4821f33b334d88c71cda639dc0216db5d1..d8a42126d57eeb6126c40c6ff91f6093fab5721a 100644 (file)
@@ -709,7 +709,7 @@ extern void vxlan_gpe_print(netdissect_options *, const u_char *, u_int);
 extern void vxlan_print(netdissect_options *, const u_char *, u_int);
 extern void wb_print(netdissect_options *, const u_char *, u_int);
 extern void zep_print(netdissect_options *, const u_char *, u_int);
-extern void zephyr_print(netdissect_options *, const u_char *, int);
+extern void zephyr_print(netdissect_options *, const u_char *, u_int);
 extern void zmtp1_print(netdissect_options *, const u_char *, u_int);
 extern void zmtp1_datagram_print(netdissect_options *, const u_char *, const u_int);
 extern void someip_print(netdissect_options *, const u_char *, const u_int);
index 7f60f1fdc207d0370bccae7e21be79a1294156c0..aa552aaa657092e3e94746e3735e61e93403c697 100644 (file)
@@ -140,7 +140,7 @@ str_to_lower(const char *string)
 }
 
 void
-zephyr_print(netdissect_options *ndo, const u_char *cp, int length)
+zephyr_print(netdissect_options *ndo, const u_char *cp, u_int length)
 {
     struct z_packet z = {
         NULL,  /* version */