=========================================================== .___ __ __ _________________ __ __ __| _/|__|/ |_ / ___\_` __ \__ \ | | \/ __ | | \\_ __\ / /_/ > | \// __ \| | / /_/ | | || | \___ /|__| (____ /____/\____ | |__||__| /_____/ \/ \/ grep rough audit - static analysis tool v2.8 written by @Wireghoul =================================[justanotherhacker.com]=== iptraf-ng-1.2.1/CHANGES-112-- remove dereferencing type-punned pointer will break strict-aliasing rules iptraf-ng-1.2.1/CHANGES:113:- convmacaddr(): fix assignment casting. One more warning gone. iptraf-ng-1.2.1/CHANGES-114-- ipmon(), servmon(): unnecessary casting is gone. Fixes strict-aliasing. ############################################## iptraf-ng-1.2.1/CHANGES.old-359- iptraf-ng-1.2.1/CHANGES.old:360: Replaced inet_addr() references on filter address entries with iptraf-ng-1.2.1/CHANGES.old-361- inet_aton(). This fixes failure of filters on packets with ############################################## iptraf-ng-1.2.1/Makefile-415- cat $< | sed \ iptraf-ng-1.2.1/Makefile:416: -e s/@@version@@/`echo $(IPTRAF_VERSION) | cut -d. -f1-3`/ \ iptraf-ng-1.2.1/Makefile:417: -e s/@@major@@/`echo $(IPTRAF_VERSION) | cut -d. -f1-2`/ \ iptraf-ng-1.2.1/Makefile-418- > $@ ############################################## iptraf-ng-1.2.1/src/fltedit.c-60- fe->saddr = iptraf-ng-1.2.1/src/fltedit.c:61: nametoaddr(fe->hp.s_fqdn, &resolv_err); iptraf-ng-1.2.1/src/fltedit.c-62- fe->daddr = iptraf-ng-1.2.1/src/fltedit.c:63: nametoaddr(fe->hp.d_fqdn, &resolv_err); iptraf-ng-1.2.1/src/fltedit.c-64- ############################################## iptraf-ng-1.2.1/src/fltedit.c-69- iptraf-ng-1.2.1/src/fltedit.c:70: fe->smask = inet_addr(fe->hp.s_mask); iptraf-ng-1.2.1/src/fltedit.c:71: fe->dmask = inet_addr(fe->hp.d_mask); iptraf-ng-1.2.1/src/fltedit.c-72- } ############################################## iptraf-ng-1.2.1/src/fltmgr.c-59- iptraf-ng-1.2.1/src/fltmgr.c:60:unsigned long int nametoaddr(char *ascname, int *err) iptraf-ng-1.2.1/src/fltmgr.c-61-{ ############################################## iptraf-ng-1.2.1/src/fltmgr.h-30-void genname(unsigned long n, char *m); iptraf-ng-1.2.1/src/fltmgr.h:31:unsigned long int nametoaddr(char *ascname, int *err); iptraf-ng-1.2.1/src/fltmgr.h-32-void listfileerr(int code); ############################################## iptraf-ng-1.2.1/src/hostmon.c-230- iptraf-ng-1.2.1/src/hostmon.c:231:void convmacaddr(char *addr, char *result) iptraf-ng-1.2.1/src/hostmon.c-232-{ ############################################## iptraf-ng-1.2.1/src/hostmon.c-258- iptraf-ng-1.2.1/src/hostmon.c:259: convmacaddr(addr, ptemp->un.desc.ascaddr); iptraf-ng-1.2.1/src/hostmon.c-260- ############################################## iptraf-ng-1.2.1/src/hostmon.h-3- iptraf-ng-1.2.1/src/hostmon.h:4:void convmacaddr(char *addr, char *result); iptraf-ng-1.2.1/src/hostmon.h-5-void hostmon(time_t facilitytime, char *ifptr); ############################################## iptraf-ng-1.2.1/src/landesc.c-23- iptraf-ng-1.2.1/src/landesc.c:24:static int check_mac_addr(const char *mac) iptraf-ng-1.2.1/src/landesc.c-25-{ ############################################## iptraf-ng-1.2.1/src/landesc.c-67- iptraf-ng-1.2.1/src/landesc.c:68: if (!check_mac_addr(mac)) { iptraf-ng-1.2.1/src/landesc.c-69- tui_error(ANYKEY_MSG, "Not a mac '%s' address, skipped", ############################################## iptraf-ng-1.2.1/src/othptab.c-203- if (pkt->from->sll_hatype == ARPHRD_ETHER) { iptraf-ng-1.2.1/src/othptab.c:204: convmacaddr((char *) pkt->ethhdr->h_source, new_entry->smacaddr); iptraf-ng-1.2.1/src/othptab.c:205: convmacaddr((char *) pkt->ethhdr->h_dest, new_entry->dmacaddr); iptraf-ng-1.2.1/src/othptab.c-206- } else if (pkt->from->sll_hatype == ARPHRD_FDDI) { iptraf-ng-1.2.1/src/othptab.c:207: convmacaddr((char *) pkt->fddihdr->saddr, new_entry->smacaddr); iptraf-ng-1.2.1/src/othptab.c:208: convmacaddr((char *) pkt->fddihdr->daddr, new_entry->dmacaddr); iptraf-ng-1.2.1/src/othptab.c-209- } ############################################## iptraf-ng-1.2.1/src/othptab.c-417- strcat(msgstring, "request for "); iptraf-ng-1.2.1/src/othptab.c:418: convmacaddr(entry->un.rarp.dest_mac_address, iptraf-ng-1.2.1/src/othptab.c-419- rarp_mac_addr); ############################################## iptraf-ng-1.2.1/src/othptab.c-422- strcat(msgstring, "reply from "); iptraf-ng-1.2.1/src/othptab.c:423: convmacaddr(entry->un.rarp.src_mac_address, iptraf-ng-1.2.1/src/othptab.c-424- rarp_mac_addr); ############################################## iptraf-ng-1.2.1/src/revname.c-240- if (res->sock <= 0) { /* blocking lookup */ iptraf-ng-1.2.1/src/revname.c:241: sockaddr_gethostbyaddr(addr, target, target_size); iptraf-ng-1.2.1/src/revname.c-242- return RESOLVED; ############################################## iptraf-ng-1.2.1/src/rvnamed.c-85-{ iptraf-ng-1.2.1/src/rvnamed.c:86: sockaddr_gethostbyaddr(&rvnpacket->addr, iptraf-ng-1.2.1/src/rvnamed.c-87- rvnpacket->fqdn, ############################################## iptraf-ng-1.2.1/src/sockaddr.c-160- iptraf-ng-1.2.1/src/sockaddr.c:161:void sockaddr_gethostbyaddr(const struct sockaddr_storage *addr, iptraf-ng-1.2.1/src/sockaddr.c-162- char *buffer, size_t buflen) ############################################## iptraf-ng-1.2.1/src/sockaddr.h-14-void sockaddr_ntop(const struct sockaddr_storage *addr, char *buf, size_t buflen); iptraf-ng-1.2.1/src/sockaddr.h:15:void sockaddr_gethostbyaddr(const struct sockaddr_storage *addr, iptraf-ng-1.2.1/src/sockaddr.h-16- char *buffer, size_t buflen); ############################################## iptraf-ng-1.2.1/src/tcptable.c-583- if (pkt->from->sll_hatype == ARPHRD_ETHER) { iptraf-ng-1.2.1/src/tcptable.c:584: convmacaddr((char *) pkt->ethhdr->h_source, newmacaddr); iptraf-ng-1.2.1/src/tcptable.c-585- } else if (pkt->from->sll_hatype == ARPHRD_FDDI) { iptraf-ng-1.2.1/src/tcptable.c:586: convmacaddr((char *) pkt->fddihdr->saddr, newmacaddr); iptraf-ng-1.2.1/src/tcptable.c-587- }