diff options
author | Craig Small <csmall@enc.com.au> | 2001-05-03 02:05:20 +0000 |
---|---|---|
committer | Craig Small <csmall@enc.com.au> | 2001-05-03 02:05:20 +0000 |
commit | e51bb90d354881ef3bdf6fa98c1270e3710221dd (patch) | |
tree | d85f1fbe66d7b0e75f04ab52f42d2c2e2e97cc1f /tcpip/rip98t.c | |
parent | 59cfcb1d81825cc4816fc1ffddd0193f0ebec4ae (diff) |
fixed sockaddr problem and moved b* to mem* functions
Diffstat (limited to 'tcpip/rip98t.c')
-rw-r--r-- | tcpip/rip98t.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tcpip/rip98t.c b/tcpip/rip98t.c index c227fc4..2441c49 100644 --- a/tcpip/rip98t.c +++ b/tcpip/rip98t.c @@ -42,7 +42,7 @@ void transmit_routes(int s) if (debug && logging) syslog(LOG_DEBUG, "transmit_routes: sending routing message to %s\n", inet_ntoa(dest_list[i].dest_addr)); - bzero((char *)&rem_addr, sizeof(rem_addr)); + memset((char *)&rem_addr, 0, sizeof(rem_addr)); rem_addr.sin_family = AF_INET; rem_addr.sin_addr = dest_list[i].dest_addr; rem_addr.sin_port = htons(RIP_PORT); @@ -55,7 +55,7 @@ void transmit_routes(int s) while (mess_len < 184 && route != NULL) { if (route->action != DEL_ROUTE) { - bcopy((char *)&route->addr, message + mess_len + 0, sizeof(struct in_addr)); + memcpy(message + mess_len + 0, (char *)&route->addr, sizeof(struct in_addr)); message[mess_len + 4] = route->bits; message[mess_len + 5] = route->metric; |