forked from haakonnessjoen/MAC-Telnet
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleaned up code and added -Wall to the compiler flags. Moved packet t…
…ypes over to enums for more ease of use.
- Loading branch information
1 parent
2074658
commit c91ff96
Showing
9 changed files
with
110 additions
and
113 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
extern int getDeviceIndex(int sockfd, unsigned char *deviceName); | ||
extern int getDeviceMAC(const int sockfd, const unsigned char *deviceName, unsigned char *mac); | ||
extern int getDeviceIp(const int sockfd, const unsigned char *deviceName, struct sockaddr_in *ip); | ||
extern int getDeviceIndex(int sockfd, char *deviceName); | ||
extern int getDeviceMAC(const int sockfd, const char *deviceName, unsigned char *mac); | ||
extern int getDeviceIp(const int sockfd, const char *deviceName, struct sockaddr_in *ip); | ||
int getIps(char *name, int nameLen, struct sockaddr_in *ip); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.