Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net Fix compilation problem caused by recent changes to ...



details:   https://anonhg.NetBSD.org/src/rev/e68ad9083d96
branches:  trunk
changeset: 472975:e68ad9083d96
user:      tron <tron%NetBSD.org@localhost>
date:      Fri May 14 21:33:41 1999 +0000

description:
Fix compilation problem caused by recent changes to filtering code.

diffstat:

 sys/net/if_ppp.c |  28 +++++++++++++++++++---------
 1 files changed, 19 insertions(+), 9 deletions(-)

diffs (43 lines):

diff -r 0ce5f950db65 -r e68ad9083d96 sys/net/if_ppp.c
--- a/sys/net/if_ppp.c  Fri May 14 19:38:44 1999 +0000
+++ b/sys/net/if_ppp.c  Fri May 14 21:33:41 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_ppp.c,v 1.52 1999/05/12 18:50:51 thorpej Exp $      */
+/*     $NetBSD: if_ppp.c,v 1.53 1999/05/14 21:33:41 tron Exp $ */
 /*     Id: if_ppp.c,v 1.6 1997/03/04 03:33:00 paulus Exp       */
 
 /*
@@ -303,15 +303,25 @@
     sc->sc_rc_state = NULL;
 #endif /* PPP_COMPRESS */
 #ifdef PPP_FILTER
-    if (sc->sc_pass_filt.bf_insns != 0) {
-       FREE(sc->sc_pass_filt.bf_insns, M_DEVBUF);
-       sc->sc_pass_filt.bf_insns = 0;
-       sc->sc_pass_filt.bf_len = 0;
+    if (sc->sc_pass_filt_in.bf_insns != 0) {
+       FREE(sc->sc_pass_filt_in.bf_insns, M_DEVBUF);
+       sc->sc_pass_filt_in.bf_insns = 0;
+       sc->sc_pass_filt_in.bf_len = 0;
+    }
+    if (sc->sc_pass_filt_out.bf_insns != 0) {
+       FREE(sc->sc_pass_filt_out.bf_insns, M_DEVBUF);
+       sc->sc_pass_filt_out.bf_insns = 0;
+       sc->sc_pass_filt_out.bf_len = 0;
     }
-    if (sc->sc_active_filt.bf_insns != 0) {
-       FREE(sc->sc_active_filt.bf_insns, M_DEVBUF);
-       sc->sc_active_filt.bf_insns = 0;
-       sc->sc_active_filt.bf_len = 0;
+    if (sc->sc_active_filt_in.bf_insns != 0) {
+       FREE(sc->sc_active_filt_in.bf_insns, M_DEVBUF);
+       sc->sc_active_filt_in.bf_insns = 0;
+       sc->sc_active_filt_in.bf_len = 0;
+    }
+    if (sc->sc_active_filt_out.bf_insns != 0) {
+       FREE(sc->sc_active_filt_out.bf_insns, M_DEVBUF);
+       sc->sc_active_filt_out.bf_insns = 0;
+       sc->sc_active_filt_out.bf_len = 0;
     }
 #endif /* PPP_FILTER */
 #ifdef VJC



Home | Main Index | Thread Index | Old Index