Check-in [704748fc41]
Overview
Comment:Corrected bug in "ifconfig"
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 704748fc41c1642b708bb9d039088dc4b625a48f
User & Date: rkeene on 2012-08-11 23:17:44
Other Links: manifest | tags
Context
2012-08-22
03:31
Added brctl support check-in: 2d80cf430b user: rkeene tags: trunk
2012-08-11
23:17
Corrected bug in "ifconfig" check-in: 704748fc41 user: rkeene tags: trunk
2012-08-05
21:38
Brought system to basic bootable state (early-boot) check-in: 71648d46bb user: rkeene tags: trunk
Changes

Modified system.c from [0957cdeb4b] to [382721d0da].

   859    859   	Tcl_Obj *tcl_iface_list;
   860    860   	struct ifconf ifaces_cfg;
   861    861   	struct ifreq *iface_req = NULL;
   862    862   	int iface_req_cnt = 224, iface_req_len;
   863    863   	int idx, iface_cnt;
   864    864   	int ioctl_ret, tcl_ret;
   865    865   
   866         -	iface_req_len = iface_req_cnt * sizeof(iface_req);
          866  +	iface_req_len = iface_req_cnt * sizeof(*iface_req);
   867    867   	iface_req = malloc(iface_req_len);
   868    868   	if (iface_req == NULL) {
   869    869   		/* Report failure */
   870    870   		Tcl_SetObjResult(interp, Tcl_NewStringObj("unable to allocate memory", -1));
   871    871   
   872    872   		return(TCL_ERROR);
   873    873   	}