#include "config.h"
#include "packets.h"
Go to the source code of this file.
Defines | |
#define | HITACHI_MARK1 "0003C9" |
This string of characters identifies an HITACHI hardware address (in hexa). | |
#define | HITACHI_MARK2 "001638" |
This string of characters identifies an HITACHI hardware address (in hexa). | |
#define | SAGEM_MARK1 "00604C" |
This string of characters identifies an SAGEM hardware address (in hexa). | |
#define | SAGEM_MARK2 "001556" |
This string of characters identifies an SAGEM hardware address (in hexa). | |
#define | MODEM_HITACHI 1 |
Return value for the function get_modem_manufacturor(). This value identifies an HITACHI modem. | |
#define | MODEM_SAGEM 2 |
Return value for the function get_modem_manufacturor(). This value identifies an SAGEM modem. | |
#define | MODEM_UNKNOWN 0 |
Return value for the function get_modem_manufacturor(). This value is returned if the function does not find the modem's manufacturor. | |
Functions | |
void | init_modem_syslog (int(*syslog)(const char *file, const char *fmt,...), char *log, int debug) |
Initialize the syslog service. More... | |
int | get_modem_manufacturor (struct dhcp_packet *packet) |
Find the manufacturor of a modem (looking at the DHCP packet). More... | |
char * | calculate_modem_mac_address (struct dhcp_packet *packet, int manufacturor) |
Calculate the modem's network MAC address from the modem mother board MAC address. More... | |
char * | id_manufacturor_to_string (int id) |
Return a string that represents the modem's manufacturor. More... |
Definition in file modem.h.
|
Calculate the modem's network MAC address from the modem mother board MAC address.
|
|
Find the manufacturor of a modem (looking at the DHCP packet).
|
|
Return a string that represents the modem's manufacturor.
|
|
Initialize the syslog service.
int syslog (const char *file, const char * fmt,...) Upon successful completion, the function returns the value 0. To desactivate logging, just set this pointer to NULL. If NULL, logging service is not activated (no matter the value of 'log').
|