/* If you change the machine-readable output format of this function, you MUST update capture_ifinfo.c:capture_get_if_capabilities() accordingly!  */
static void print_machine_readable_if_capabilities(if_capabilities_t *caps)
/* If you change the machine-readable output format of this function, you MUST update capture_ifinfo.c:capture_get_if_capabilities() accordingly!  */
static void print_machine_readable_if_capabilities(if_capabilities_t *caps)
{
    GList *lt_entry;
    data_link_info_t *data_link_info;
    const gchar *desc_str;
    if (capture_child) {
        pipe_write_block(2, SP_SUCCESS, NULL);
    }
    if (caps->can_set_rfmon)
        printf("1\n");
    else
        printf("0\n");
    for (lt_entry = caps->data_link_types; lt_entry != NULL;
         lt_entry = g_list_next(lt_entry)) {
      data_link_info = (data_link_info_t *)lt_entry->data;
      if (data_link_info->description != NULL)
        desc_str = data_link_info->description;
      else
        desc_str = "(not supported)";
      printf("%d\t%s\t%s\n", data_link_info->dlt, data_link_info->name,
             desc_str);
    }
}