X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fnet.c;h=dc632b608f457defcdde384a6c27b24021233a34;hp=b3474c371b8bf85cf37d37948a9b6eba1cc6e6bf;hb=ee96ccabbbf0180d5631d3c22838456f28ee9c15;hpb=78532475238b23eb52ac88d905fbf966d97a79d2 diff --git a/src/net.c b/src/net.c index b3474c37..dc632b60 100644 --- a/src/net.c +++ b/src/net.c @@ -1,6 +1,6 @@ /* net.c -- most of the network code - Copyright (C) 1998,99 Ivo Timmermans + Copyright (C) 1998,1999,2000 Ivo Timmermans This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -111,7 +111,7 @@ cp return 0; } -int xrecv(conn_list_t *cl, real_packet_t *packet) +int xrecv(conn_list_t *cl, void *packet) { vpn_packet_t vp; int lenin; @@ -304,21 +304,6 @@ cp return xsend(cl, packet); } -int send_broadcast(conn_list_t *cl, vpn_packet_t *packet) -{ - conn_list_t *p; -cp - for(p = cl; p != NULL; p = p->next) - if(send_packet(p->real_ip, packet) < 0) - { - syslog(LOG_ERR, "Could not send a broadcast packet to %08lx (%08lx): %m", - p->vpn_ip, p->real_ip); - break; /* FIXME: should retry later, and send a ping over the metaconnection. */ - } -cp - return 0; -} - /* open the local ethertap device */