/[dynamips]/upstream/dynamips-0.2.7-RC2/net_io_filter.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /upstream/dynamips-0.2.7-RC2/net_io_filter.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

upstream/dynamips-0.2.7-RC1/net_io_filter.c revision 7 by dpavlin, Sat Oct 6 16:23:47 2007 UTC upstream/dynamips-0.2.7-RC2/net_io_filter.c revision 8 by dpavlin, Sat Oct 6 16:24:54 2007 UTC
# Line 26  Line 26 
26  #include <arpa/inet.h>  #include <arpa/inet.h>
27  #include <netdb.h>  #include <netdb.h>
28  #include <pthread.h>  #include <pthread.h>
29    
30    #ifdef GEN_ETH
31  #include <pcap.h>  #include <pcap.h>
32    #endif
33    
34  #include "registry.h"  #include "registry.h"
35  #include "net.h"  #include "net.h"
# Line 131  int netio_filter_setup(netio_desc_t *nio Line 134  int netio_filter_setup(netio_desc_t *nio
134  /* Packet Capture ("capture")                                               */  /* Packet Capture ("capture")                                               */
135  /* GFA                                                                      */  /* GFA                                                                      */
136  /* ======================================================================== */  /* ======================================================================== */
137    #ifdef GEN_ETH
138    
139  /* Free resources used by filter */  /* Free resources used by filter */
140  static void pf_capture_free(netio_desc_t *nio,void **opt)  static void pf_capture_free(netio_desc_t *nio,void **opt)
# Line 229  static netio_pktfilter_t pf_capture_def Line 233  static netio_pktfilter_t pf_capture_def
233     NULL,     NULL,
234  };  };
235    
236    #endif
237    
238  /* ======================================================================== */  /* ======================================================================== */
239  /* Frequency Dropping ("freq_drop").                                        */  /* Frequency Dropping ("freq_drop").                                        */
240  /* ======================================================================== */  /* ======================================================================== */
# Line 309  static netio_pktfilter_t pf_freqdrop_def Line 315  static netio_pktfilter_t pf_freqdrop_def
315  void netio_filter_load_all(void)  void netio_filter_load_all(void)
316  {  {
317     netio_filter_add(&pf_freqdrop_def);     netio_filter_add(&pf_freqdrop_def);
318    #ifdef GEN_ETH
319     netio_filter_add(&pf_capture_def);     netio_filter_add(&pf_capture_def);
320    #endif
321  }  }

Legend:
Removed from v.7  
changed lines
  Added in v.8

  ViewVC Help
Powered by ViewVC 1.1.26