#include <arpa/inet.h>#include <sys/ioctl.h>#include <net/if.h>#include "socketIO.h"#include "packetHeader.h"#include "util.h"Functions | |
| int | rst_MACatoi (char *MACstring, unsigned char *MACint) |
| Convert a MAC address from ASCII to integer. | |
| char * | rst_MACitoa (unsigned char *MACint, char *MACstring) |
| Convert a MAC address from integer to ASCII. | |
| int | rst_getMAC (char *i, unsigned char *MACint) |
| Retrieve the MAC address for interface i. | |
| int | rst_IPatoi (char *ipString, int *ipInt) |
| Convert an IP address from ASCII to integer. | |
| char * | rst_IPitoa (unsigned int ipInt, char *ipString) |
| Convert an IP address from integer to ASCII. | |
| int | rst_getIPaddr (char *i, unsigned int *ipInt) |
| Retrieve the IP address for interface i. | |
| int | rst_getIPmask (char *i, unsigned int *mask) |
| Retrieve the IP network mask for interface i. | |
| void | rst_maskInc (unsigned int *target, unsigned int mask) |
| Increment the masked portion of target. | |
|
||||||||||||
|
Retrieve the IP address for interface i.
|
|
||||||||||||
|
Retrieve the IP network mask for interface i.
|
|
||||||||||||
|
Retrieve the MAC address for interface i.
|
|
||||||||||||
|
Convert an IP address from ASCII to integer. A legal string IP address is of the form "I1.I2.I3.I4" where each of I1, I2, I3, and I4 is a 1, 2, or 3 digit decimal integer.
|
|
||||||||||||
|
Convert an IP address from integer to ASCII.
|
|
||||||||||||
|
Convert a MAC address from ASCII to integer. A legal string MAC address is of the form "D1:D2:D3:D4:D5:D6" where each of D1, D2, ..., D5 is 1 or 2 digit hex number.
|
|
||||||||||||
|
Convert a MAC address from integer to ASCII.
|
|
||||||||||||
|
Increment the masked portion of target.
|
1.3.6