unstick r308273

Revision 308273

Date:
2016/08/23 16:32:32
Author:
yuanxunzhang
Revision Log:
EAPS: fix bug to check port interface
Files:

Legend:

 
Added
 
Removed
 
Modified
  • soc2016/yuanxunzhang/head/usr.sbin/eaps/eaps.c

     
    458 458 char *port_name = *(++argv);
    459 459
    460 460 // check if eaps domain exists
    461 if (0 == if_nametoindex(domain_name))
    461 if (0 == if_nametoindex(port_name))
    462 462 {
    463 463 errx(1, "port %s does not exist", port_name);
    464 464 }
     
    497 497 char *port_name = *(++argv);
    498 498
    499 499 // check if eaps domain exists
    500 if (0 == if_nametoindex(domain_name))
    500 if (0 == if_nametoindex(port_name))
    501 501 {
    502 502 errx(1, "port %s does not exist", port_name);
    503 503 }