function.
OK gnezdo@ mvs@ florian@ sashan@
-/* $OpenBSD: in_pcb.h,v 1.122 2022/01/20 11:06:57 bluhm Exp $ */
+/* $OpenBSD: in_pcb.h,v 1.123 2022/03/02 12:53:15 bluhm Exp $ */
/* $NetBSD: in_pcb.h,v 1.14 1996/02/13 23:42:00 christos Exp $ */
/*
in_pcbrtentry(struct inpcb *);
/* INET6 stuff */
-int in6_pcbnotify(struct inpcbtable *, struct sockaddr_in6 *,
+void in6_pcbnotify(struct inpcbtable *, struct sockaddr_in6 *,
u_int, const struct sockaddr_in6 *, u_int, u_int, int, void *,
void (*)(struct inpcb *, int));
int in6_selecthlim(struct inpcb *);
-/* $OpenBSD: tcp_subr.c,v 1.183 2022/01/02 22:36:04 jsg Exp $ */
+/* $OpenBSD: tcp_subr.c,v 1.184 2022/03/02 12:53:15 bluhm Exp $ */
/* $NetBSD: tcp_subr.c,v 1.22 1996/02/13 23:44:00 christos Exp $ */
/*
syn_cache_unreach((struct sockaddr *)sa6_src,
sa, &th, rdomain);
} else {
- (void) in6_pcbnotify(&tcbtable, sa6, 0,
+ in6_pcbnotify(&tcbtable, sa6, 0,
sa6_src, 0, rdomain, cmd, NULL, notify);
}
}
void
tcp6_mtudisc_callback(struct sockaddr_in6 *sin6, u_int rdomain)
{
- (void) in6_pcbnotify(&tcbtable, sin6, 0,
+ in6_pcbnotify(&tcbtable, sin6, 0,
&sa6_any, 0, rdomain, PRC_MSGSIZE, NULL, tcp_mtudisc);
}
#endif /* INET6 */
-/* $OpenBSD: udp_usrreq.c,v 1.271 2022/02/25 23:51:03 guenther Exp $ */
+/* $OpenBSD: udp_usrreq.c,v 1.272 2022/03/02 12:53:15 bluhm Exp $ */
/* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */
/*
*/
}
- (void) in6_pcbnotify(&udbtable, &sa6, uh.uh_dport,
+ in6_pcbnotify(&udbtable, &sa6, uh.uh_dport,
&sa6_src, uh.uh_sport, rdomain, cmd, cmdarg, notify);
} else {
- (void) in6_pcbnotify(&udbtable, &sa6, 0,
+ in6_pcbnotify(&udbtable, &sa6, 0,
&sa6_any, 0, rdomain, cmd, cmdarg, notify);
}
}
-/* $OpenBSD: in6_pcb.c,v 1.112 2021/02/11 10:41:19 patrick Exp $ */
+/* $OpenBSD: in6_pcb.c,v 1.113 2022/03/02 12:53:15 bluhm Exp $ */
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
* Also perform input-side security policy check
* once PCB to be notified has been located.
*/
-int
+void
in6_pcbnotify(struct inpcbtable *table, struct sockaddr_in6 *dst,
uint fport_arg, const struct sockaddr_in6 *src, uint lport_arg,
u_int rtable, int cmd, void *cmdarg, void (*notify)(struct inpcb *, int))
struct inpcb *inp, *ninp;
u_short fport = fport_arg, lport = lport_arg;
struct sockaddr_in6 sa6_src;
- int errno, nmatch = 0;
+ int errno;
u_int32_t flowinfo;
u_int rdomain;
NET_ASSERT_LOCKED();
if ((unsigned)cmd >= PRC_NCMDS)
- return (0);
+ return;
if (IN6_IS_ADDR_UNSPECIFIED(&dst->sin6_addr))
- return (0);
+ return;
if (IN6_IS_ADDR_V4MAPPED(&dst->sin6_addr)) {
#ifdef DIAGNOSTIC
printf("%s: Huh? Thought we never got "
"called with mapped!\n", __func__);
#endif
- return (0);
+ return;
}
/*
continue;
}
do_notify:
- nmatch++;
if (notify)
(*notify)(inp, errno);
}
- return (nmatch);
}
struct inpcb *
-/* $OpenBSD: raw_ip6.c,v 1.141 2022/02/25 23:51:04 guenther Exp $ */
+/* $OpenBSD: raw_ip6.c,v 1.142 2022/03/02 12:53:15 bluhm Exp $ */
/* $KAME: raw_ip6.c,v 1.69 2001/03/04 15:55:44 itojun Exp $ */
/*
*/
}
- (void) in6_pcbnotify(&rawin6pcbtable, sa6, 0,
+ in6_pcbnotify(&rawin6pcbtable, sa6, 0,
sa6_src, 0, rdomain, cmd, cmdarg, notify);
}