Overview
| Comment: | Corrected bug in "ifconfig" |
|---|---|
| Downloads: | Tarball | ZIP archive |
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA1: |
704748fc41c1642b708bb9d039088dc4 |
| User & Date: | rkeene on 2012-08-11 23:17:44.000 |
| 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 860 861 862 863 864 865 | Tcl_Obj *tcl_iface_list; struct ifconf ifaces_cfg; struct ifreq *iface_req = NULL; int iface_req_cnt = 224, iface_req_len; int idx, iface_cnt; int ioctl_ret, tcl_ret; | | | 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 |
Tcl_Obj *tcl_iface_list;
struct ifconf ifaces_cfg;
struct ifreq *iface_req = NULL;
int iface_req_cnt = 224, iface_req_len;
int idx, iface_cnt;
int ioctl_ret, tcl_ret;
iface_req_len = iface_req_cnt * sizeof(*iface_req);
iface_req = malloc(iface_req_len);
if (iface_req == NULL) {
/* Report failure */
Tcl_SetObjResult(interp, Tcl_NewStringObj("unable to allocate memory", -1));
return(TCL_ERROR);
}
|
| ︙ | ︙ |