MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ifr_buffer_set_length

Function ifr_buffer_set_length

freebsd/net/if.c:2430–2442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2428}
2429
2430static void
2431ifr_buffer_set_length(void *data, size_t len)
2432{
2433 union ifreq_union *ifrup;
2434
2435 ifrup = data;
2436#ifdef COMPAT_FREEBSD32
2437 if (SV_CURPROC_FLAG(SV_ILP32))
2438 ifrup->ifr32.ifr_ifru.ifru_buffer.length = len;
2439 else
2440#endif
2441 ifrup->ifr.ifr_ifru.ifru_buffer.length = len;
2442}
2443
2444void *
2445ifr_data_get_ptr(void *ifrp)

Callers 1

ifhwioctlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected