Changeset e48f5465 in rtems-libbsd


Ignore:
Timestamp:
Oct 31, 2013, 12:04:31 PM (6 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, afaeccc05a556f6aa25ba044a7e49d6aa634a59e, freebsd-9.3, master
Children:
2404264
Parents:
e24c90c
git-author:
Sebastian Huber <sebastian.huber@…> (10/31/13 12:04:31)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/31/13 12:18:53)
Message:

PING(8): Fix initialization and cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • freebsd/sbin/ping/ping.c

    re24c90c re48f5465  
    230230        rtems_bsd_program_lock();
    231231
     232        memset(&rcvd_tbl[0], 0, sizeof(rcvd_tbl));
     233        s = -1;
     234        memset(&outpackhdr[0], 0, sizeof(outpackhdr));
    232235        icmp_type = ICMP_ECHO;
    233236        icmp_type_rsp = ICMP_ECHOREPLY;
    234237        phdr_len = 0;
     238        nmissedmax = 0;
     239        npackets = 0;
     240        nreceived = 0;
     241        nrepeats = 0;
     242        ntransmitted = 0;
     243        snpackets = 0;
     244        sntransmitted = 0;
     245        sweepmax = 0;
    235246        sweepmin = 0;
    236247        sweepincr = 1;
     
    238249        waittime = MAXWAIT;
    239250        nrcvtimeout = 0;
     251        timing = 0;
    240252        tmin = 999999999.0;
    241253        tmax = 0.0;
    242254        tsum = 0.0;
    243255        tsumsq = 0.0;
     256        finish_up = 0;
     257        siginfo_p = 0;
    244258
    245259        exit_code = rtems_bsd_program_call_main("ping", main, argc, argv);
    246260
    247261        rtems_bsd_program_unlock();
     262
     263        close(s);
    248264
    249265        return exit_code;
Note: See TracChangeset for help on using the changeset viewer.