From: Paul Mackerras Date: Fri, 23 Jun 1995 01:42:54 +0000 (+0000) Subject: Fix to make SIOCGPPPCSTATS work correctly. X-Git-Tag: RELEASE_2_3_6~664 X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=389090db3b7bcf63f8610afd761ac748ebb25a16 Fix to make SIOCGPPPCSTATS work correctly. --- 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;