From 389090db3b7bcf63f8610afd761ac748ebb25a16 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Fri, 23 Jun 1995 01:42:54 +0000 Subject: [PATCH] Fix to make SIOCGPPPCSTATS work correctly. --- aix4/ppp_comp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aix4/ppp_comp.c b/aix4/ppp_comp.c index ac75cf5..7032d9a 100644 --- a/aix4/ppp_comp.c +++ b/aix4/ppp_comp.c @@ -24,7 +24,7 @@ * OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, * OR MODIFICATIONS. * - * $Id: ppp_comp.c,v 1.5 1995/05/01 01:42:38 paulus Exp $ + * $Id: ppp_comp.c,v 1.6 1995/06/23 01:42:54 paulus Exp $ */ #include @@ -182,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; -- 2.39.2