Changeset 808


Ignore:
Timestamp:
05/23/06 10:50:17 (7 years ago)
Author:
spa1
Message:

Some DAG 2.5 driver fixes

Location:
trunk/lib
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/format_erf.c

    r800 r808  
    5858#       define PATH_MAX 4096 
    5959#  endif 
     60#  include <sys/ioctl.h> 
    6061#endif 
    6162 
     
    546547        packet->payload = packet->buffer; 
    547548         
    548         if ((ioctl(INPUT.fd, DAGIOCINFO, &lt_dag_inf) < 0)) { 
    549                 trace_set_err(libtrace, errno, 
    550                                 "Error using DAGIOCINFO"); 
    551                 return -1; 
    552         } 
    553         if (!IsDUCK(&lt_dag_inf)) { 
    554                 printf("WARNING: %s does not have modern clock support - No DUCK information will be gathered\n", libtrace->uridata); 
    555                 return 0; 
    556         } 
    557  
     549        /* No need to check if we can get DUCK or not - we're modern 
     550         * enough */ 
    558551        if ((ioctl(INPUT.fd, DAGIOCDUCK, (duckinf_t *)packet->payload)  
    559552                                < 0)) { 
  • trunk/lib/libtrace_int.h

    r782 r808  
    104104#  include "dagnew.h" 
    105105#  include "dagapi.h" 
     106#       ifndef DAG_VERSION_2_4 
     107#               include <daginf.h> 
     108#       endif 
    106109#else 
    107110#  include "dagformat.h" 
Note: See TracChangeset for help on using the changeset viewer.