Searched defs:pdata_size (Results 1 - 3 of 3) sorted by relevance

/illumos-gate/usr/src/uts/common/io/mac/plugins/
H A Dmac_ipv4.c209 mac_ipv4_pdata_verify(void *pdata, size_t pdata_size) argument
214 return (pdata_size == 0);
215 if (pdata_size < sizeof (struct ip))
217 /* Make sure that the header length field matches pdata_size */
218 return (pdata_size == iphp->ip_hl * sizeof (uint32_t));
H A Dmac_ipv6.c228 mac_ipv6_pdata_verify(void *pdata, size_t pdata_size) argument
240 return (pdata_size == 0);
243 if (pdata_size < sizeof (ip6_t))
245 /* Make sure that pdata_size is consistent with the payload length. */
246 if (pdata_size != sizeof (ip6_t) + ip6hp->ip6_plen)
257 endptr = (uint8_t *)pdata + pdata_size;
H A Dmac_wifi.c127 mac_wifi_pdata_verify(void *pdata, size_t pdata_size) argument
131 return (pdata_size == sizeof (wifi_data_t) && wdp->wd_opts == 0);

Completed in 58 milliseconds