Patch Name: PHNE_19566 Patch Description: s700_800 10.20 ping(1M) cumulative patch Creation Date: 99/08/24 Post Date: 99/09/02 Hardware Platforms - OS Releases: s700: 10.20 s800: 10.20 Products: N/A Filesets: Networking.NET-RUN Networking.NW-ENG-A-MAN Automatic Reboot?: No Status: General Release Critical: Yes PHNE_19566: ABORT PHNE_16188: ABORT Path Name: /hp-ux_patches/s700_800/10.X/PHNE_19566 Symptoms: PHNE_19566: This patch replaces PHNE_16188 See Defect Description PHNE_16188: See Defect Description Defect Description: PHNE_19566: ( SR number: not found ; DTS number: JAGaa26775 ) ping -n counts responses, not requests but man page documents that it counts transmits.This is a problem for ping to promiscuous LAN interface. Resolution : Modified the code to interpret the option -n to count the number of transmits instead of responses. ( SR number: not found ; DTS number: JAGaa26881 ) Correct ping to return a 1 fail code when it times out. Resolution : Added the timeout option(-m timeout) and the interval option (-I interval) and returned the right exit value. PHNE_16188: ( SR number: not found ; DTS number: INDaa31045 ) Ping can report error messages to an incorrect file. Resolution: Changed the file descriptor to which the error message were directed. ( SR number: not found ; DTS number: INDaa31051 ) Ping has a buffer overflow problem. Resolution : Buffer overflow problem removed by changing a strcpy to strncpy. ( SR number: not found ; DTS number: INDaa31054 ) The hardcoded limit for the packet size used by ping is too small. Resolution: Increase the ping packet size from 4096 to 65500. SR: 5003381459 Patch Files: /usr/sbin/ping /usr/lib/nls/msg/C/ping.cat /usr/share/man/man1m.Z/ping.1m what(1) Output: /usr/sbin/ping: PHNE_19566 ping.c $Revision: 1.7.116.4 $ $Date: 99/0 3/01 02:26:23 $ NET: Version: B.10.10 $Date: 96/05/09 11:26:18 $ /usr/lib/nls/msg/C/ping.cat: None /usr/share/man/man1m.Z/ping.1m: None cksum(1) Output: 47056822 36864 /usr/sbin/ping 3956123295 2388 /usr/lib/nls/msg/C/ping.cat 1213635393 4030 /usr/share/man/man1m.Z/ping.1m Patch Conflicts: None Patch Dependencies: None Hardware Dependencies: None Other Dependencies: None Supersedes: PHNE_16188 Equivalent Patches: None Patch Package Size: 100 KBytes Installation Instructions: Please review all instructions and the Hewlett-Packard SupportLine User Guide or your Hewlett-Packard support terms and conditions for precautions, scope of license, restrictions, and, limitation of liability and warranties, before installing this patch. ------------------------------------------------------------ 1. Back up your system before installing a patch. 2. Login as root. 3. Copy the patch to the /tmp directory. 4. Move to the /tmp directory and unshar the patch: cd /tmp sh PHNE_19566 5a. For a standalone system, run swinstall to install the patch: swinstall -x autoreboot=true -x match_target=true \ -s /tmp/PHNE_19566.depot By default swinstall will archive the original software in /var/adm/sw/patch/PHNE_19566. If you do not wish to retain a copy of the original software, you can create an empty file named /var/adm/sw/patch/PATCH_NOSAVE. WARNING: If this file exists when a patch is installed, the patch cannot be deinstalled. Please be careful when using this feature. It is recommended that you move the PHNE_19566.text file to /var/adm/sw/patch for future reference. To put this patch on a magnetic tape and install from the tape drive, use the command: dd if=/tmp/PHNE_19566.depot of=/dev/rmt/0m bs=2k Special Installation Instructions: None