1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/apps/public/linux-atm/extra/tcpdump-3.4.patch.sunrpc
2024-07-22 01:58:46 -03:00

18 lines
426 B
Plaintext
Executable File

--- old/tcpdump-3.4/print-sunrpc.c Fri Feb 19 17:02:17 1999
+++ new/tcpdump-3.4/print-sunrpc.c Fri Feb 19 17:03:16 1999
@@ -123,10 +123,14 @@ progstr(prog)
if (lastprog != 0 && prog == lastprog)
return (buf);
+#ifdef _RPC_NETDB_H
rp = getrpcbynumber(prog);
if (rp == NULL)
(void) sprintf(buf, "#%u", prog);
else
strcpy(buf, rp->r_name);
+#else
+ (void) sprintf(buf, "#%u", prog);
+#endif
return (buf);
}