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

Function ifgr_groups_get

freebsd/net/if.c:1659–1671  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1657}
1658
1659static struct ifg_req *
1660ifgr_groups_get(void *ifgrp)
1661{
1662 union ifgroupreq_union *ifgrup;
1663
1664 ifgrup = ifgrp;
1665#ifdef COMPAT_FREEBSD32
1666 if (SV_CURPROC_FLAG(SV_ILP32))
1667 return ((struct ifg_req *)(uintptr_t)
1668 ifgrup->ifgr32.ifgr_ifgru.ifgru_groups);
1669#endif
1670 return (ifgrup->ifgr.ifgr_ifgru.ifgru_groups);
1671}
1672
1673/*
1674 * Stores all groups from an interface in memory pointed to by ifgr.

Callers 2

if_getgroupFunction · 0.85
if_getgroupmembersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected