/[dynamips]/trunk/net_io.h
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 /trunk/net_io.h

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

upstream/dynamips-0.2.6-RC2/net_io.h revision 3 by dpavlin, Sat Oct 6 16:05:34 2007 UTC trunk/net_io.h revision 12 by dpavlin, Sat Oct 6 16:45:40 2007 UTC
# Line 1  Line 1 
1  /*  /*
2   * Cisco 7200 (Predator) simulation platform.   * Cisco router simulation platform.
3   * Copyright (c) 2005,2006 Christophe Fillot (cf@utc.fr)   * Copyright (c) 2005,2006 Christophe Fillot (cf@utc.fr)
4   *   *
5   * Network interaction.   * Network I/O Layer.
6   */   */
7    
8  #ifndef __NET_IO_H__  #ifndef __NET_IO_H__
# Line 22  Line 22 
22  #endif  #endif
23    
24  /* Maximum packet size */  /* Maximum packet size */
25  #define NETIO_MAX_PKT_SIZE  8192  #define NETIO_MAX_PKT_SIZE  32768
26    
27  /* Maximum device length */  /* Maximum device length */
28  #define NETIO_DEV_MAXLEN    64  #define NETIO_DEV_MAXLEN    64
# Line 182  struct netio_desc { Line 182  struct netio_desc {
182     void (*save_cfg)(netio_desc_t *nio,FILE *fd);     void (*save_cfg)(netio_desc_t *nio,FILE *fd);
183    
184     /* Packet filters */     /* Packet filters */
185     netio_pktfilter_t *rx_filter,*tx_filter;     netio_pktfilter_t *rx_filter,*tx_filter,*both_filter;
186     void *rx_filter_data,*tx_filter_data;     void *rx_filter_data,*tx_filter_data,*both_filter_data;
187    
188     /* Next pointer (for RX listener) */     /* Next pointer (for RX listener) */
189     netio_desc_t *rxl_next;     netio_desc_t *rxl_next;
190    
191       /* Packet data */
192       u_char rx_pkt[NETIO_MAX_PKT_SIZE];
193  };  };
194    
195  /* RX listener */  /* RX listener */

Legend:
Removed from v.3  
changed lines
  Added in v.12

  ViewVC Help
Powered by ViewVC 1.1.26