Lines Matching refs:is
6 * Permission is hereby granted, free of charge, to any person obtaining a copy
10 * sell copies of the Software, and to permit persons to whom the Software is
95 (const char *)&r[1], r->is.mac, 6) < 0)
98 memcpy(p, r->is.mac, 6);
122 if (r->is.sa46[LWSDH_SA46_IP].sa4.sin_family != AF_INET)
126 lws_ser_wu32be(p, r->is.sa46[LWSDH_SA46_IP].sa4.sin_addr.s_addr);
130 lws_ser_wu32be(p, r->is.sa46[LWSDH_SA46_DHCP_SERVER].sa4.sin_addr.s_addr);
184 if (lws_plat_ifconfig(r->wsi_raw->desc.sockfd, &r->is))
205 r->cb(r->opaque, &r->is);
217 * UDP is not reliable, it can be locally dropped, or dropped
327 r->is.sa46[which].sa4.sin_family = AF_INET;
328 r->is.sa46[which].sa4.sin_addr.s_addr = ntohl(lws_ser_ru32be(p));
354 if (memcmp(&p[0x1c], r->is.mac, 6)) /* our netif mac? */
436 if (m > (int)sizeof(r->is.domain) - 1)
437 m = sizeof(r->is.domain) - 1;
438 lws_strnncpy(r->is.domain, (const char *)p,
439 (unsigned int)m, sizeof(r->is.domain));
444 * Confirm this is the right message
462 r->is.nums[n] = ntohl(lws_ser_ru32be(p));
466 memset(r->is.sa46, 0, sizeof(r->is.sa46));
474 m = (int)ntohl(r->is.nums[n]);
479 lws_sa46_write_numeric_address(&r->is.sa46[n],
487 * we could use it? Everything critical is there?
490 if (!r->is.sa46[LWSDH_SA46_IP].sa4.sin_family ||
491 !r->is.sa46[LWSDH_SA46_DHCP_SERVER].sa4.sin_family ||
492 !r->is.sa46[LWSDH_SA46_IPV4_ROUTER].sa4.sin_family ||
493 !r->is.nums[LWSDH_IPV4_SUBNET_MASK] ||
494 !r->is.nums[LWSDH_LEASE_SECS] ||
495 !r->is.sa46[LWSDH_SA46_DNS_SRV_1].sa4.sin_family) {
497 memset(r->is.sa46, 0, sizeof(r->is.sa46));
507 if ((r->is.sa46[LWSDH_SA46_IP].sa4.sin_addr.s_addr &
508 r->is.nums[LWSDH_IPV4_SUBNET_MASK]) !=
509 (r->is.sa46[LWSDH_SA46_DHCP_SERVER].sa4.sin_addr.s_addr &
510 r->is.nums[LWSDH_IPV4_SUBNET_MASK])) {
512 __func__, r->is.sa46[LWSDH_SA46_IP].sa4.sin_addr.s_addr,
513 r->is.nums[LWSDH_IPV4_SUBNET_MASK]);