]> git.sur5r.net Git - ngadmin/blob - lib/src/firmware.c
Optimize port based VLAN code, send only modified VLANs
[ngadmin] / lib / src / firmware.c
1
2 #include <ngadmin.h>
3
4 #include <attr.h>
5 #include <protocol.h>
6
7 #include "lib.h"
8 #include "network.h"
9
10
11 int ngadmin_upgradeFirmware (struct ngadmin *nga, const char *filename)
12 {
13         if (nga == NULL || filename == NULL || *filename == 0)
14                 return ERR_INVARG;
15         else if (nga->current == NULL)
16                 return ERR_NOTLOG;
17         
18         /*
19         Firmware upgrade is not yet implemented. 
20         This would require much more work and the use of a TFTP client. 
21         Overall, it could be quite dangerous, as the switch may not check the binary 
22         content sent to it. 
23         */
24         
25         return ERR_NOTIMPL;
26 }
27
28