Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/raw_ip.c
Show First 20 Lines • Show All 874 Lines • ▼ Show 20 Lines | case PRC_IFUP: | ||||
err = in_handle_ifaddr_route(RTM_ADD, ia); | err = in_handle_ifaddr_route(RTM_ADD, ia); | ||||
if (err == 0) | if (err == 0) | ||||
ia->ia_flags |= IFA_ROUTE; | ia->ia_flags |= IFA_ROUTE; | ||||
err = ifa_add_loopback_route((struct ifaddr *)ia, sa); | err = ifa_add_loopback_route((struct ifaddr *)ia, sa); | ||||
ifa_free(&ia->ia_ifa); | ifa_free(&ia->ia_ifa); | ||||
break; | break; | ||||
#if defined(IPSEC) || defined(IPSEC_SUPPORT) | |||||
case PRC_MSGSIZE: | |||||
if (IPSEC_ENABLED(ipv4)) | |||||
IPSEC_CTLINPUT(ipv4, cmd, sa, vip); | |||||
break; | |||||
#endif | |||||
} | } | ||||
} | } | ||||
static int | static int | ||||
rip_attach(struct socket *so, int proto, struct thread *td) | rip_attach(struct socket *so, int proto, struct thread *td) | ||||
{ | { | ||||
struct inpcb *inp; | struct inpcb *inp; | ||||
int error; | int error; | ||||
▲ Show 20 Lines • Show All 318 Lines • Show Last 20 Lines |