version 1.1.2.12, 2010/11/02 02:12:49
|
version 1.1.2.13, 2010/11/02 02:25:46
|
Line 104 RtMsg(struct dwds_if **wds, struct rt_msghdr *msg, siz
|
Line 104 RtMsg(struct dwds_if **wds, struct rt_msghdr *msg, siz
|
CFG(szIdent), STRSIZ, DWDS_NAME); |
CFG(szIdent), STRSIZ, DWDS_NAME); |
/* delete state file ... */ |
/* delete state file ... */ |
v = cfg_GetAttribute(&cfg, CFG("dwds"), CFG("state_dir")); |
v = cfg_GetAttribute(&cfg, CFG("dwds"), CFG("state_dir")); |
if (v && strtol((char*) v, NULL, 0)) { | if (v) { |
memset(szCmd, 0, STRSIZ); |
memset(szCmd, 0, STRSIZ); |
snprintf(szCmd, MAXPATHLEN, "%s/%s-%s-%s", (char*) v, |
snprintf(szCmd, MAXPATHLEN, "%s/%s-%s-%s", (char*) v, |
szName, ether_ntoa(&bssid), szIdent); |
szName, ether_ntoa(&bssid), szIdent); |
Line 148 RtMsg(struct dwds_if **wds, struct rt_msghdr *msg, siz
|
Line 148 RtMsg(struct dwds_if **wds, struct rt_msghdr *msg, siz
|
CFG(szIdent), STRSIZ, DWDS_NAME); |
CFG(szIdent), STRSIZ, DWDS_NAME); |
/* create state file ... */ |
/* create state file ... */ |
v = cfg_GetAttribute(&cfg, CFG("dwds"), CFG("state_dir")); |
v = cfg_GetAttribute(&cfg, CFG("dwds"), CFG("state_dir")); |
if (v && strtol((char*) v, NULL, 0)) { | if (v) { |
memset(szCmd, 0, MAXPATHLEN); |
memset(szCmd, 0, MAXPATHLEN); |
snprintf(szCmd, MAXPATHLEN, "%s/%s-%s-%s", (char*) v, |
snprintf(szCmd, MAXPATHLEN, "%s/%s-%s-%s", (char*) v, |
(*wds)->if_name, ether_ntoa(&bssid), szIdent); |
(*wds)->if_name, ether_ntoa(&bssid), szIdent); |