Lines Matching refs:if_broadcast
79 if (ifp->if_broadcast.length > sizeof(ifp->if_broadcast.u.buffer)) {
80 FREE(ifp->if_broadcast.u.ptr, M_IFADDR);
81 ifp->if_broadcast.u.ptr = NULL;
143 if (init->broadcast_len > sizeof(ifp->if_broadcast.u.buffer)) {
144 MALLOC(ifp->if_broadcast.u.ptr, u_char*, init->broadcast_len, M_IFADDR, M_NOWAIT);
145 if (ifp->if_broadcast.u.ptr == NULL) {
149 bcopy(init->broadcast_addr, ifp->if_broadcast.u.ptr, init->broadcast_len);
153 bcopy(init->broadcast_addr, ifp->if_broadcast.u.buffer, init->broadcast_len);
155 ifp->if_broadcast.length = init->broadcast_len;
158 bzero(&ifp->if_broadcast, sizeof(ifp->if_broadcast));
862 *out_len = interface->if_broadcast.length;
864 if (buffer_len < interface->if_broadcast.length) {
868 if (interface->if_broadcast.length == 0)
871 if (interface->if_broadcast.length <= sizeof(interface->if_broadcast.u.buffer)) {
872 bcopy(interface->if_broadcast.u.buffer, addr, interface->if_broadcast.length);
875 bcopy(interface->if_broadcast.u.ptr, addr, interface->if_broadcast.length);