Page MenuHomeFreeBSD

D33462.id100063.diff
No OneTemporary

D33462.id100063.diff

Index: sys/netinet6/ip6_output.c
===================================================================
--- sys/netinet6/ip6_output.c
+++ sys/netinet6/ip6_output.c
@@ -2546,7 +2546,9 @@
ip6_pcbopt(int optname, u_char *buf, int len, struct ip6_pktopts **pktopt,
struct ucred *cred, int uproto)
{
+ struct epoch_tracker et;
struct ip6_pktopts *opt;
+ int ret;
if (*pktopt == NULL) {
*pktopt = malloc(sizeof(struct ip6_pktopts), M_IP6OPT,
@@ -2557,7 +2559,11 @@
}
opt = *pktopt;
- return (ip6_setpktopt(optname, buf, len, opt, cred, 1, 0, uproto));
+ NET_EPOCH_ENTER(et);
+ ret = ip6_setpktopt(optname, buf, len, opt, cred, 1, 0, uproto);
+ NET_EPOCH_EXIT(et);
+
+ return (ret);
}
#define GET_PKTOPT_VAR(field, lenexpr) do { \
@@ -2886,6 +2892,8 @@
int minmtupolicy, preftemp;
int error;
+ NET_EPOCH_ASSERT();
+
if (!sticky && !cmsg) {
#ifdef DIAGNOSTIC
printf("ip6_setpktopt: impossible case\n");

File Metadata

Mime Type
text/plain
Expires
Mon, Jun 15, 1:09 PM (6 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33969571
Default Alt Text
D33462.id100063.diff (934 B)

Event Timeline