]> git.sur5r.net Git - ngadmin/blob - lib/src/firmware.c
Raw: refactor attribute encoding and decoding
[ngadmin] / lib / src / firmware.c
1
2 #include <ngadmin.h>
3
4 #include <nsdp/attr.h>
5 #include <nsdp/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         /* firmware upgrade is not yet implemented
19          * this would require much more work and the use of a TFTP client
20          * overall, it could be quite dangerous, as the switch may not check
21          * the binary content sent to it
22          */
23         
24         return ERR_NOTIMPL;
25 }
26
27