mp.c (64780) | mp.c (67912) |
---|---|
1/*- 2 * Copyright (c) 1998 Brian Somers <brian@Awfulhak.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1998 Brian Somers <brian@Awfulhak.org> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/usr.sbin/ppp/mp.c 64780 2000-08-17 14:14:54Z brian $ | 26 * $FreeBSD: head/usr.sbin/ppp/mp.c 67912 2000-10-30 00:15:29Z brian $ |
27 */ 28 29#include <sys/param.h> 30#include <netinet/in.h> 31#include <netinet/in_systm.h> 32#include <netinet/ip.h> 33#include <arpa/inet.h> 34#include <net/if_dl.h> --- 1036 unchanged lines hidden (view full) --- 1071mpserver_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) 1072{ 1073 struct mpserver *s = descriptor2mpserver(d); 1074 1075 bundle_ReceiveDatalink(bundle, s->fd); 1076} 1077 1078static int | 27 */ 28 29#include <sys/param.h> 30#include <netinet/in.h> 31#include <netinet/in_systm.h> 32#include <netinet/ip.h> 33#include <arpa/inet.h> 34#include <net/if_dl.h> --- 1036 unchanged lines hidden (view full) --- 1071mpserver_Read(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) 1072{ 1073 struct mpserver *s = descriptor2mpserver(d); 1074 1075 bundle_ReceiveDatalink(bundle, s->fd); 1076} 1077 1078static int |
1079mpserver_Write(struct fdescriptor *d, struct bundle *bundle, const fd_set *fdset) | 1079mpserver_Write(struct fdescriptor *d, struct bundle *bundle, 1080 const fd_set *fdset) |
1080{ 1081 /* We never want to write here ! */ 1082 log_Printf(LogALERT, "mpserver_Write: Internal error: Bad call !\n"); 1083 return 0; 1084} 1085 1086void 1087mpserver_Init(struct mpserver *s) --- 107 unchanged lines hidden --- | 1081{ 1082 /* We never want to write here ! */ 1083 log_Printf(LogALERT, "mpserver_Write: Internal error: Bad call !\n"); 1084 return 0; 1085} 1086 1087void 1088mpserver_Init(struct mpserver *s) --- 107 unchanged lines hidden --- |