#ifndef _NETUTILS_H_
#define _NETUTILS_H_

#include "lwip/netif.h"

struct netif *getGprsNetIf(uint8_t nSim, uint8_t nCid);
#if IP_NAT
struct netif *getPPPNetIf(uint8_t nSim, uint8_t nCid);
struct netif *getNetDevNetIf(uint8_t nSim, uint8_t nCid);
struct netif *getGprsWanNetIf(uint8_t nSim, uint8_t nCid);
#endif
struct netif *getEtherNetIf(uint8_t nCid);
struct netif *ip4_src_route(const ip4_addr_t *src, const ip4_addr_t *dst);
bool getSimIccid(uint8_t simId, uint8_t *simiccid, uint8_t *len);
bool getSimImei(uint8_t simId, uint8_t *imei, uint8_t *len);
bool getSimImsi(uint8_t simId, uint8_t *imsi, uint8_t *len);
bool isIpDigital(char *ipAddrStr);
#endif
