Deleted Added
full compact
bundle.c (48103) bundle.c (49140)
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 * $Id: bundle.c,v 1.56 1999/06/02 00:46:50 brian Exp $
26 * $Id: bundle.c,v 1.57 1999/06/22 11:31:42 brian Exp $
27 */
28
29#include <sys/param.h>
30#include <sys/socket.h>
31#include <netinet/in.h>
32#include <net/if.h>
33#include <net/if_tun.h>
34#include <arpa/inet.h>

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

849 bundle.filter.in.fragok = bundle.filter.in.logok = 1;
850 bundle.filter.in.name = "IN";
851 bundle.filter.out.fragok = bundle.filter.out.logok = 1;
852 bundle.filter.out.name = "OUT";
853 bundle.filter.dial.name = "DIAL";
854 bundle.filter.dial.logok = 1;
855 bundle.filter.alive.name = "ALIVE";
856 bundle.filter.alive.logok = 1;
27 */
28
29#include <sys/param.h>
30#include <sys/socket.h>
31#include <netinet/in.h>
32#include <net/if.h>
33#include <net/if_tun.h>
34#include <arpa/inet.h>

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

849 bundle.filter.in.fragok = bundle.filter.in.logok = 1;
850 bundle.filter.in.name = "IN";
851 bundle.filter.out.fragok = bundle.filter.out.logok = 1;
852 bundle.filter.out.name = "OUT";
853 bundle.filter.dial.name = "DIAL";
854 bundle.filter.dial.logok = 1;
855 bundle.filter.alive.name = "ALIVE";
856 bundle.filter.alive.logok = 1;
857 {
858 int i;
859 for (i = 0; i < MAXFILTERS; i++) {
860 bundle.filter.in.rule[i].f_action = A_NONE;
861 bundle.filter.out.rule[i].f_action = A_NONE;
862 bundle.filter.dial.rule[i].f_action = A_NONE;
863 bundle.filter.alive.rule[i].f_action = A_NONE;
864 }
865 }
857 memset(&bundle.idle.timer, '\0', sizeof bundle.idle.timer);
858 bundle.idle.done = 0;
859 bundle.notify.fd = -1;
860 memset(&bundle.autoload.timer, '\0', sizeof bundle.autoload.timer);
861 bundle.autoload.done = 0;
862 bundle.autoload.running = 0;
863 memset(&bundle.choked.timer, '\0', sizeof bundle.choked.timer);
864#ifndef NORADIUS

--- 869 unchanged lines hidden ---
866 memset(&bundle.idle.timer, '\0', sizeof bundle.idle.timer);
867 bundle.idle.done = 0;
868 bundle.notify.fd = -1;
869 memset(&bundle.autoload.timer, '\0', sizeof bundle.autoload.timer);
870 bundle.autoload.done = 0;
871 bundle.autoload.running = 0;
872 memset(&bundle.choked.timer, '\0', sizeof bundle.choked.timer);
873#ifndef NORADIUS

--- 869 unchanged lines hidden ---