dslinux/user/ping Makefile ping.c

amadeus dslinux_amadeus at user.in-berlin.de
Thu Aug 31 11:32:30 CEST 2006

Update of /cvsroot/dslinux/dslinux/user/ping
In directory antilope:/tmp/cvs-serv14346/user/ping

Added Files:
	Makefile ping.c 
Log Message:
Add some more applications

--- NEW FILE: Makefile ---

EXEC = ping
OBJS = ping.o

all: $(EXEC)

$(EXEC): $(OBJS)
	$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LDLIBS$(LDLIBS_$@))

	$(ROMFSINST) /bin/$(EXEC)

	-rm -f $(EXEC) *.elf *.gdb *.o

--- NEW FILE: ping.c ---
 * Copyright (c) 1989 The Regents of the University of California.
 * All rights reserved.
 * This code is derived from software contributed to Berkeley by
 * Mike Muuss.
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *	This product includes software developed by the University of
 *	California, Berkeley and its contributors.
[...1210 lines suppressed...]

	if (ii > 0)
		for (kk = 0; kk <= MAXPACKET - (8 + ii); kk += ii)
			for (jj = 0; jj < ii; ++jj)
				bp[jj + kk] = pat[jj];
	if (!(options & F_QUIET)) {
		(void)printf("PATTERN: 0x");
		for (jj = 0; jj < ii; ++jj)
			(void)printf("%02x", bp[jj] & 0xFF);

static void
	    "usage: ping [-LRdfnqrva] [-c count] [-i wait] [-l preload]\n\t[-p pattern] [-s packetsize] [-t ttl] [-I interface or IP address] host\n");

More information about the dslinux-commit mailing list