提交 08f1d08a 编写于 作者: D Dmitry Kozlov

ipoe: do not show ipoe-type for non ipoe sessions

上级 863694e6
......@@ -2179,12 +2179,15 @@ static int show_stat_exec(const char *cmd, char * const *fields, int fields_cnt,
static void print_session_type(struct ap_session *s, char *buf)
{
struct ipoe_session *ses = container_of(s, typeof(*ses), ses);
if (s->ctrl->type == CTRL_TYPE_IPOE) {
struct ipoe_session *ses = container_of(s, typeof(*ses), ses);
if (ses->UP)
strcpy(buf, "up");
else
strcpy(buf, "dhcp");
if (ses->UP)
strcpy(buf, "up");
else
strcpy(buf, "dhcp");
} else
*buf = 0;
}
void __export ipoe_get_stat(unsigned int **starting, unsigned int **active)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册