47const ip_addr_t ip_addr_any = IPADDR4_INIT(IPADDR_ANY);
48const ip_addr_t ip_addr_broadcast = IPADDR4_INIT(IPADDR_BROADCAST);
61 ip4_addr_set_u32(&ipaddr,
addr);
64 if ((~
addr == IPADDR_ANY) ||
65 (
addr == IPADDR_ANY)) {
73 }
else if (
addr == ip4_addr_get_u32(netif_ip4_addr(
netif))) {
76 }
else if (ip4_addr_net_eq(&ipaddr, netif_ip4_addr(
netif), netif_ip4_netmask(
netif))
78 && ((
addr & ~ip4_addr_get_u32(netif_ip4_netmask(
netif))) ==
79 (IPADDR_BROADCAST & ~ip4_addr_get_u32(netif_ip4_netmask(
netif))))) {
93ip4_addr_netmask_valid(
u32_t netmask)
100 if ((nm_hostorder &
mask) == 0) {
106 if ((nm_hostorder &
mask) != 0) {
123ipaddr_addr(
const char *
cp)
127 if (ip4addr_aton(
cp, &
val)) {
128 return ip4_addr_get_u32(&
val);
130 return (IPADDR_NONE);
145ip4addr_aton(
const char *
cp, ip4_addr_t *
addr)
167 if (
c ==
'x' ||
c ==
'X') {
194 if (pp >=
parts + 3) {
213 switch (pp -
parts + 1) {
222 if (
val > 0xffffffUL) {
225 if (
parts[0] > 0xff) {
269ip4addr_ntoa(
const ip4_addr_t *
addr)
271 static char str[IP4ADDR_STRLEN_MAX];
272 return ip4addr_ntoa_r(
addr,
str, IP4ADDR_STRLEN_MAX);
285ip4addr_ntoa_r(
const ip4_addr_t *
addr,
char *
buf,
int buflen)
300 for (
n = 0;
n < 4;
n++) {
305 inv[
i++] = (
char)(
'0' + rem);
308 if (
len++ >= buflen) {
313 if (
len++ >= buflen) {
std::map< E_STRING, PART_TEST > parts
#define LWIP_ASSERT(message, assertion)
GLenum GLuint GLenum GLsizei const GLchar * buf
GLenum const GLvoid * addr
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define NETIF_FLAG_BROADCAST
void int int ULONGLONG int va_list * ap