/[dynamips]/upstream/dynamips-0.2.6-RC3/dev_c3600_serial.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.6-RC3/dev_c3600_serial.c

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

upstream/dynamips-0.2.6-RC2/dev_c3600_serial.c revision 3 by dpavlin, Sat Oct 6 16:05:34 2007 UTC upstream/dynamips-0.2.6-RC3/dev_c3600_serial.c revision 4 by dpavlin, Sat Oct 6 16:06:49 2007 UTC
# Line 29  Line 29 
29  /*  /*
30   * dev_c3600_nm_4t_init()   * dev_c3600_nm_4t_init()
31   *   *
32   * Add a PA-4T network module into specified slot.   * Add a NM-4T network module into specified slot.
33   */   */
34  int dev_c3600_nm_4t_init(c3600_t *router,char *name,u_int nm_bay)  int dev_c3600_nm_4t_init(c3600_t *router,char *name,u_int nm_bay)
35  {  {
# Line 43  int dev_c3600_nm_4t_init(c3600_t *router Line 43  int dev_c3600_nm_4t_init(c3600_t *router
43     bay_info = c3600_nm_get_bay_info(c3600_chassis_get_id(router),nm_bay);     bay_info = c3600_nm_get_bay_info(c3600_chassis_get_id(router),nm_bay);
44    
45     if (!bay_info) {     if (!bay_info) {
46        fprintf(stderr,"%s: unable to get info for PA bay %u\n",name,nm_bay);        fprintf(stderr,"%s: unable to get info for NM bay %u\n",name,nm_bay);
47        return(-1);        return(-1);
48     }     }
49    
# Line 58  int dev_c3600_nm_4t_init(c3600_t *router Line 58  int dev_c3600_nm_4t_init(c3600_t *router
58     return(c3600_nm_set_drvinfo(router,nm_bay,data));     return(c3600_nm_set_drvinfo(router,nm_bay,data));
59  }  }
60    
61  /* Remove a PA-4T+ from the specified slot */  /* Remove a NM-4T from the specified slot */
62  int dev_c3600_nm_4t_shutdown(c3600_t *router,u_int nm_bay)  int dev_c3600_nm_4t_shutdown(c3600_t *router,u_int nm_bay)
63  {  {
64     struct c3600_nm_bay *bay;     struct c3600_nm_bay *bay;

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

  ViewVC Help
Powered by ViewVC 1.1.26