/* Print on the screen in a neat fashion the list of private GET ioctl data for the device and data returned by those.  */
static int print_priv_all(int skfd, char *ifname, char *args[], int count)
/* Print on the screen in a neat fashion the list of private GET ioctl data for the device and data returned by those.  */
static int print_priv_all(int skfd, char *ifname, char *args[], int count)
{
  int		k;
  iwprivargs *	priv;
  int		n;
  args = args; count = count;
  n = iw_get_priv_info(skfd, ifname, &priv);
  if(n <= 0)
    {
      fprintf(stderr, "%-8.16s  no private ioctls.\n\n",
	      ifname);
    }
  else
    {
      printf("%-8.16s  Available read-only private ioctl :\n", ifname);
      for(k = 0; k < n; k++)
	if((priv[k].name[0] != '\0') && (priv[k].set_args == 0) &&
	   (priv[k].get_args != 0))
	  set_private_cmd(skfd, NULL, 0, ifname, priv[k].name,
			  priv, n);
      printf("\n");
    }
  if(priv)
    free(priv);
  return(0);
}