Deleted Added
full compact
datalink.c (59084) datalink.c (60945)
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/datalink.c 59084 2000-04-07 23:46:14Z brian $
26 * $FreeBSD: head/usr.sbin/ppp/datalink.c 60945 2000-05-26 08:26:56Z 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 <sys/un.h>
34

--- 929 unchanged lines hidden (view full) ---

964 dl->script.run = 1;
965 /* fall through */
966
967 case DATALINK_DIAL:
968 case DATALINK_LOGIN:
969 case DATALINK_READY:
970 if (!dl->script.packetmode && packetmode) {
971 dl->script.packetmode = 1;
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 <sys/un.h>
34

--- 929 unchanged lines hidden (view full) ---

964 dl->script.run = 1;
965 /* fall through */
966
967 case DATALINK_DIAL:
968 case DATALINK_LOGIN:
969 case DATALINK_READY:
970 if (!dl->script.packetmode && packetmode) {
971 dl->script.packetmode = 1;
972 if (dl->state == DATALINK_READY)
973 datalink_LoginDone(dl);
972 if (dl->state == DATALINK_READY) {
973 dl->script.run = 0;
974 datalink_NewState(dl, DATALINK_CARRIER);
975 }
974 }
975 break;
976 }
977}
978
979void
980datalink_Close(struct datalink *dl, int how)
981{

--- 466 unchanged lines hidden ---
976 }
977 break;
978 }
979}
980
981void
982datalink_Close(struct datalink *dl, int how)
983{

--- 466 unchanged lines hidden ---