def check_for_packetdrop(nodeid, pktnum):
    if (pktnum == 0):
        return
    for x in range(len(nodeDropInfoList)):
        if (nodeDropInfoList[x].nodeid == nodeid):
            global dropCounter
            dropCounter += ((pktnum - nodeDropInfoList[x].lastpkt) - 1)
            return
    nodeDropInfoList.append(NodeDropInfo(nodeid, pktnum))
def check_for_packetdrop(nodeid, pktnum):
    if (pktnum == 0):
        return
    for x in range(len(nodeDropInfoList)):
        if (nodeDropInfoList[x].nodeid == nodeid):
            global dropCounter
            dropCounter += ((pktnum - nodeDropInfoList[x].lastpkt) - 1)
            return
    nodeDropInfoList.append(NodeDropInfo(nodeid, pktnum))