physical.c (134789) | physical.c (134833) |
---|---|
1/* 2 * Written by Eivind Eklund <eivind@yes.no> 3 * for Yes Interactive 4 * 5 * Copyright (C) 1998, Yes Interactive. All rights reserved. 6 * 7 * Redistribution and use in any form is permitted. Redistribution in 8 * source form should include the above copyright and this set of 9 * conditions, because large sections american law seems to have been 10 * created by a bunch of jerks on drugs that are now illegal, forcing 11 * me to include this copyright-stuff instead of placing this in the 12 * public domain. The name of of 'Yes Interactive' or 'Eivind Eklund' 13 * may not be used to endorse or promote products derived from this 14 * software without specific prior written permission. 15 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 16 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 17 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 18 * | 1/* 2 * Written by Eivind Eklund <eivind@yes.no> 3 * for Yes Interactive 4 * 5 * Copyright (C) 1998, Yes Interactive. All rights reserved. 6 * 7 * Redistribution and use in any form is permitted. Redistribution in 8 * source form should include the above copyright and this set of 9 * conditions, because large sections american law seems to have been 10 * created by a bunch of jerks on drugs that are now illegal, forcing 11 * me to include this copyright-stuff instead of placing this in the 12 * public domain. The name of of 'Yes Interactive' or 'Eivind Eklund' 13 * may not be used to endorse or promote products derived from this 14 * software without specific prior written permission. 15 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR 16 * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED 17 * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. 18 * |
19 * $FreeBSD: head/usr.sbin/ppp/physical.c 134789 2004-09-05 01:46:52Z brian $ | 19 * $FreeBSD: head/usr.sbin/ppp/physical.c 134833 2004-09-06 00:07:58Z marcel $ |
20 * 21 */ 22 23#include <sys/param.h> 24#include <netinet/in.h> 25#include <netinet/in_systm.h> 26#include <netinet/ip.h> 27#include <sys/socket.h> --- 395 unchanged lines hidden (view full) --- 423 p->out->m_offset += nw; 424 if (p->out->m_len == 0) 425 p->out = m_free(p->out); 426 result = 1; 427 } else if (nw < 0) { 428 if (errno == EAGAIN) 429 result = 1; 430 else if (errno != ENOBUFS) { | 20 * 21 */ 22 23#include <sys/param.h> 24#include <netinet/in.h> 25#include <netinet/in_systm.h> 26#include <netinet/ip.h> 27#include <sys/socket.h> --- 395 unchanged lines hidden (view full) --- 423 p->out->m_offset += nw; 424 if (p->out->m_len == 0) 425 p->out = m_free(p->out); 426 result = 1; 427 } else if (nw < 0) { 428 if (errno == EAGAIN) 429 result = 1; 430 else if (errno != ENOBUFS) { |
431 log_Printf(LogPHASE, "%s: write (fd %d, len %d): %s\n", p->link.name, | 431 log_Printf(LogPHASE, "%s: write (fd %d, len %zd): %s\n", p->link.name, |
432 p->fd, p->out->m_len, strerror(errno)); 433 datalink_Down(p->dl, CLOSE_NORMAL); 434 } 435 } 436 /* else we shouldn't really have been called ! select() is broken ! */ 437 } 438 439 return result; --- 706 unchanged lines hidden --- | 432 p->fd, p->out->m_len, strerror(errno)); 433 datalink_Down(p->dl, CLOSE_NORMAL); 434 } 435 } 436 /* else we shouldn't really have been called ! select() is broken ! */ 437 } 438 439 return result; --- 706 unchanged lines hidden --- |