Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/raw_ip.c
Show First 20 Lines • Show All 798 Lines • ▼ Show 20 Lines | case SOPT_SET: | ||||
} | } | ||||
break; | break; | ||||
} | } | ||||
return (error); | return (error); | ||||
} | } | ||||
void | void | ||||
rip_ctlinput(int cmd, struct sockaddr *sa, void *vip) | rip_ctlinput(int cmd, struct sockaddr_in *sin, struct ip *ip) | ||||
{ | { | ||||
switch (cmd) { | switch (cmd) { | ||||
#if defined(IPSEC) || defined(IPSEC_SUPPORT) | #if defined(IPSEC) || defined(IPSEC_SUPPORT) | ||||
case PRC_MSGSIZE: | case PRC_MSGSIZE: | ||||
if (IPSEC_ENABLED(ipv4)) | if (IPSEC_ENABLED(ipv4)) | ||||
IPSEC_CTLINPUT(ipv4, cmd, sa, vip); | IPSEC_CTLINPUT(ipv4, cmd, (struct sockaddr *)sin, ip); | ||||
break; | break; | ||||
#endif | #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) | ||||
{ | { | ||||
▲ Show 20 Lines • Show All 275 Lines • Show Last 20 Lines |