ospf.C:

 

 

Here are a few changes made to the constructor of the ospf class.

 

    pctable_head = 0;

    hftb = 0;

    refresh_time = 0;

    LSRefresh_Time = 0;

    HFTB_Time = 0;

    HFTB_Bin = 0;

    change_opts = 0;

    repair_lsseq = 0;

    pktcnt = (Pkt_Count *)malloc(sizeof(Pkt_Count));

    pktcnt_size = 0;

    lsacnt = (Lsa_Count *)malloc(sizeof(Lsa_Count));

    lsacnt_size = 0;

    ackcnt = (Ack_Count *)malloc(sizeof(Ack_Count)); 

    ackcnt_size = 0;