main.c (11840) | main.c (12692) |
---|---|
1/* 2 * Copyright (c) 1985, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Copyright (c) 1995 John Hay. All rights reserved. 6 * 7 * This file includes significant work done at Cornell University by 8 * Bill Nesheim. That work included by permission. --- 21 unchanged lines hidden (view full) --- 30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * | 1/* 2 * Copyright (c) 1985, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Copyright (c) 1995 John Hay. All rights reserved. 6 * 7 * This file includes significant work done at Cornell University by 8 * Bill Nesheim. That work included by permission. --- 21 unchanged lines hidden (view full) --- 30 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * |
38 * $Id: main.c,v 1.1 1995/10/26 21:28:19 julian Exp $ | 38 * $Id: main.c,v 1.2 1995/10/27 10:48:28 julian Exp $ |
39 */ 40 41#ifndef lint 42static char copyright[] = 43"@(#) Copyright (c) 1985, 1993\n\ 44 The Regents of the University of California. All rights reserved.\n"; 45#endif /* not lint */ 46 --- 175 unchanged lines hidden (view full) --- 222 FD_ZERO(&fdvar); 223 if (dosap) { 224 FD_SET(sapsock, &fdvar); 225 } 226 FD_SET(ripsock, &fdvar); 227 228 if(select(nfds, &fdvar, (fd_set *)NULL, (fd_set *)NULL, 229 (struct timeval *)NULL) < 0) { | 39 */ 40 41#ifndef lint 42static char copyright[] = 43"@(#) Copyright (c) 1985, 1993\n\ 44 The Regents of the University of California. All rights reserved.\n"; 45#endif /* not lint */ 46 --- 175 unchanged lines hidden (view full) --- 222 FD_ZERO(&fdvar); 223 if (dosap) { 224 FD_SET(sapsock, &fdvar); 225 } 226 FD_SET(ripsock, &fdvar); 227 228 if(select(nfds, &fdvar, (fd_set *)NULL, (fd_set *)NULL, 229 (struct timeval *)NULL) < 0) { |
230 if(errno != EINTR) { 231 perror("during select"); 232 exit(1); 233 } | 230 if(errno == EINTR) 231 continue; 232 perror("during select"); 233 exit(1); |
234 } 235 236 if(FD_ISSET(ripsock, &fdvar)) 237 process(ripsock, RIP_PKT); 238 239 if(dosap && FD_ISSET(sapsock, &fdvar)) 240 process(sapsock, SAP_PKT); 241 } --- 104 unchanged lines hidden --- | 234 } 235 236 if(FD_ISSET(ripsock, &fdvar)) 237 process(ripsock, RIP_PKT); 238 239 if(dosap && FD_ISSET(sapsock, &fdvar)) 240 process(sapsock, SAP_PKT); 241 } --- 104 unchanged lines hidden --- |