short ap_type;
char *community = NULL;
-int sockfd;
struct in_addr ap_ip;
void usage()
extern int optopt;
int opt = 0;
int mode = 0; /* 1 = download, 2 = upload */
-
FILE *f;
char *filename = NULL;
- struct sockaddr_in client;
struct AuthorizedMacTableString {
unsigned int short Action;
textdomain("ap-utils");
#endif
- memset(&client, 0, sizeof client);
- client.sin_family = AF_INET;
- client.sin_port = INADDR_ANY;
- client.sin_addr.s_addr = INADDR_ANY;
-
do {
opterr = 0;
switch (opt = getopt(argc, argv, "i:c:d:u:")) {
return 1;
}
- if ((sockfd = socket(AF_INET, SOCK_DGRAM, 0)) == -1) {
- perror(_("Create socket error"));
- return 1;
- }
- if (bind(sockfd, (struct sockaddr *) &client, SIZE) == -1) {
- perror(_("Bind socket error"));
- return 1;
- }
-
/*
* Part detecting ap_type (ATMEL AP MIB type) follows.
* We could use get_mib_details() here with advantage, but it would
return 1;
}
- close(sockfd);
-
curr = first;
while (curr != NULL) {
curr = curr->next;