in_rmx.c
imports <sys/socket.h>Declares a C IPv4 socket address
SHA-2563cfce39bbacf5759018628cb353c6877f090bb5fea5b16f50c2595cc4d85a3de
MaleculeH(Cm)Md(In)
Evidence
2:54… chnology
3 *
4 * Permission to use, copy, modify, and distribute this software and
5 * its documentation for any purpose and without fee is hereby
6 * granted, provided that both the above copyright notice and this
7 * permission notice appear in all copies, that both the above
16:58… DISCLAIMS
17 * ALL EXPRESS OR IMPLIED WARRANTIES WITH REGARD TO THIS SOFTWARE,
18 * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 * MERCHAN …
26:43… VISED OF THE POSSIBILITY OF
27 * SUCH DAMAGE.
28 */
29
30#include <sys/param.h>
31#include <sys/systm.h>
32#include <sys/kernel.h>
33#include <sys/sysctl.h>
34#include <sys/socket.h>
35#include <sys/mbuf.h>
36
37#include <net/if.h>
38#include <net/if_var.h>
39#include <net/if_private.h>
40#include <net/route.h>
41#include <net/route/route_ctl.h>
42#include <net/route/route_var.h>
43#include <net/route/nhop.h>
44#include <net/vnet.h>
45
46#include <netinet/in.h>
47#include <netinet/in_var.h>
48#include <netinet/ip.h>
49#include <netinet/ip_icmp.h>
50#include <netinet/ip_var.h>
51
52static int
53rib4_set_nh_pfxflags(u_int fibnum, const struct sockaddr *addr, const struct sockaddr *mask,
54 struct nhop_object *nh)
55{
56 const struct sockaddr_in *addr4 = (const struct sockaddr_in *)addr;
57 const struct sockaddr_in *mask4 = (const struct sockaddr_in *)mask;
58 bool is_broadc …