norme
This commit is contained in:
parent
ff629391b0
commit
728fc5b296
4 changed files with 10 additions and 10 deletions
|
|
@ -6,7 +6,7 @@
|
|||
# By: wescande <wescande@student.42.fr> +#+ +:+ +#+ #
|
||||
# +#+#+#+#+#+ +#+ #
|
||||
# Created: 2016/08/29 21:32:58 by wescande #+# #+# #
|
||||
# Updated: 2017/04/22 19:26:34 by jhalford ### ########.fr #
|
||||
# Updated: 2017/10/08 14:36:33 by jhalford ### ########.fr #
|
||||
# #
|
||||
# **************************************************************************** #
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2017/04/22 14:10:24 by jhalford #+# #+# */
|
||||
/* Updated: 2017/04/22 15:52:07 by jhalford ### ########.fr */
|
||||
/* Updated: 2017/10/08 14:36:37 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -25,7 +25,7 @@
|
|||
# include <netinet/ip_icmp.h>
|
||||
# include <sys/wait.h>
|
||||
|
||||
#define PACKETSIZE 64
|
||||
# define PACKETSIZE 64
|
||||
|
||||
struct s_packet
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 57475bdafefca069981276b44dd8c5d8998b5a13
|
||||
Subproject commit 0da748d10513bbc70705998fb5ac914c1047c6dc
|
||||
|
|
@ -6,7 +6,7 @@
|
|||
/* By: jhalford <jack@crans.org> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2017/04/22 14:10:24 by jhalford #+# #+# */
|
||||
/* Updated: 2017/10/08 14:26:15 by jhalford ### ########.fr */
|
||||
/* Updated: 2017/10/08 14:35:02 by jhalford ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
|
|
@ -122,9 +122,9 @@ int main(int ac, char **av)
|
|||
result = resolve_host(av[1]);
|
||||
if (result->ai_canonname)
|
||||
printf("PING %s (%s): %i data bytes\n",
|
||||
result->ai_canonname, g_domain, 64);
|
||||
result->ai_canonname, g_domain, PACKETSIZE);
|
||||
else
|
||||
printf("PING %s: %i data bytes\n", g_domain, 64);
|
||||
printf("PING %s: %i data bytes\n", g_domain, PACKETSIZE);
|
||||
if (fork() == 0)
|
||||
{
|
||||
signal(SIGINT, stats_recap);
|
||||
|
|
|
|||
Loading…
Reference in a new issue