]> git.ozlabs.org Git - ppp.git/blobdiff - aix4/ppp_comp.c
fix prototypes & spls; added get idle-time ioctl
[ppp.git] / aix4 / ppp_comp.c
index 4974855075b7553f780635eca8f9b651de862141..7032d9af1b25c4ef3c092cc991b081aa82819eb7 100644 (file)
@@ -24,7 +24,7 @@
  * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS,
  * OR MODIFICATIONS.
  *
- * $Id: ppp_comp.c,v 1.4 1995/04/28 06:13:05 paulus Exp $
+ * $Id: ppp_comp.c,v 1.6 1995/06/23 01:42:54 paulus Exp $
  */
 
 #include <net/net_globals.h>
@@ -86,7 +86,9 @@ struct ppp_comp_state {
 extern struct compressor ppp_bsd_compress;
 
 struct compressor *ppp_compressors[] = {
+#if DO_BSD_COMPRESS
     &ppp_bsd_compress,
+#endif
     NULL
 };
 
@@ -180,6 +182,7 @@ ppp_comp_wput(q, mp)
             mp = allocb(sizeof(struct ppp_comp_stats) + sizeof(u_long),
                         BPRI_HI);
             if (mp != NULL) {
+               mp->b_datap->db_type = M_CTL;
                 *(u_char *) mp->b_wptr = IF_CSTATS;
                 mp->b_wptr += sizeof(u_long); /* should be enough alignment */
                 pcp = (struct ppp_comp_stats *) mp->b_wptr;