Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / net / pppd / patches / patch-an
blob102f08c5760ced867b0b31169edd70807d5352cf
1 $NetBSD$
3 --- pppd/demand.c.orig  2004-11-04 11:02:26.000000000 +0100
4 +++ pppd/demand.c
5 @@ -100,7 +100,8 @@ demand_conf()
6             fatal("Couldn't set up demand-dialled PPP interface: %m");
7  
8  #ifdef PPP_FILTER
9 -    set_filters(&pass_filter, &active_filter);
10 +    set_filters(&pass_filter_in, &pass_filter_out,
11 +               &active_filter_in, &active_filter_out);
12  #endif
14      /*
15 @@ -341,11 +342,11 @@ active_packet(p, len)
16         return 0;
17      proto = PPP_PROTOCOL(p);
18  #ifdef PPP_FILTER
19 -    if (pass_filter.bf_len != 0
20 -       && bpf_filter(pass_filter.bf_insns, p, len, len) == 0)
21 +    if (pass_filter_out.bf_len != 0
22 +       && bpf_filter(pass_filter_out.bf_insns, p, len, len) == 0)
23         return 0;
24 -    if (active_filter.bf_len != 0
25 -       && bpf_filter(active_filter.bf_insns, p, len, len) == 0)
26 +    if (active_filter_out.bf_len != 0
27 +       && bpf_filter(active_filter_out.bf_insns, p, len, len) == 0)
28         return 0;
29  #endif
30      for (i = 0; (protp = protocols[i]) != NULL; ++i) {