#include <windows.h>
#endif
+#ifndef MIN
+#define MIN(a, b) ((a) < (b) ? (a) : (b))
+#endif
+
enum nmrp_op {
NMRP_UPLOAD_FW = 0,
NMRP_UPLOAD_ST = 1,
const char *mac;
enum nmrp_op op;
uint16_t port;
+ uint16_t region;
int force_root;
};
+const char *leafname(const char *path);
int tftp_put(struct nmrpd_args *args);
bool tftp_is_valid_filename(const char *filename);
uint8_t *ethsock_get_hwaddr(struct ethsock *sock);
int ethsock_list_all(void);
+struct ethsock_ip_callback_args
+{
+ struct in_addr *ipaddr;
+ struct in_addr *ipmask;
+ void *arg;
+};
+
+typedef int (*ethsock_ip_callback_t)(struct ethsock_ip_callback_args *args);
+int ethsock_for_each_ip(struct ethsock *sock, ethsock_ip_callback_t callback,
+ void *arg);
#endif