1 $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
2 --- iptraf-3.0.1.orig/src/tcptable.c 2005-09-13 08:42:54.000000000 +0200
3 +++ iptraf-3.0.1/src/tcptable.c 2013-03-04 11:38:22.000000000 +0100
4 @@ -17,6 +17,7 @@ details.
12 @@ -143,7 +144,7 @@ int add_tcp_hash_entry(struct tcptable *
13 entry->daddr.s_addr, entry->dport, entry->ifname);
15 ptmp = malloc(sizeof(struct tcp_hashentry));
16 - bzero(ptmp, sizeof(struct tcp_hashentry));
17 + memset(ptmp, 0, sizeof(struct tcp_hashentry));
21 @@ -337,8 +338,8 @@ struct tcptableent *addentry(struct tcpt
22 * Zero out MAC address fields
25 - bzero(new_entry->smacaddr, 15);
26 - bzero(new_entry->oth_connection->smacaddr, 15);
27 + memset(new_entry->smacaddr, 0, 15);
28 + memset(new_entry->oth_connection->smacaddr, 0, 15);
31 * Set raw port numbers
32 @@ -596,14 +597,10 @@ void updateentry(struct tcptable *table,
33 tableentry->spanbr += bcount;
36 - bzero(newmacaddr, 15);
37 + memset(newmacaddr, 0, 15);
39 if ((linkproto == LINK_ETHERNET) || (linkproto == LINK_PLIP)) {
40 convmacaddr(((struct ethhdr *) packet)->h_source, newmacaddr);
41 - } else if (linkproto == LINK_FDDI) {
42 - convmacaddr(((struct fddihdr *) packet)->saddr, newmacaddr);
43 - } else if (linkproto == LINK_TR) {
44 - convmacaddr(((struct trh_hdr *) packet)->saddr, newmacaddr);
47 if (tableentry->smacaddr[0] != '\0') {