View | Details | Raw Unified | Return to bug 271651
Collapse All | Expand All

(-)b/sys/netinet6/in6_pcb.c (+8 lines)
Lines 568-578 in6_getpeeraddr(struct socket *so, struct sockaddr **nam) Link Here
568
int
568
int
569
in6_mapped_sockaddr(struct socket *so, struct sockaddr **nam)
569
in6_mapped_sockaddr(struct socket *so, struct sockaddr **nam)
570
{
570
{
571
#ifdef INET
571
	struct	inpcb *inp;
572
	struct	inpcb *inp;
573
#endif
572
	int	error;
574
	int	error;
573
575
576
#ifdef INET
574
	inp = sotoinpcb(so);
577
	inp = sotoinpcb(so);
575
	KASSERT(inp != NULL, ("in6_mapped_sockaddr: inp == NULL"));
578
	KASSERT(inp != NULL, ("in6_mapped_sockaddr: inp == NULL"));
579
#endif
576
580
577
#ifdef INET
581
#ifdef INET
578
	if ((inp->inp_vflag & (INP_IPV4 | INP_IPV6)) == INP_IPV4) {
582
	if ((inp->inp_vflag & (INP_IPV4 | INP_IPV6)) == INP_IPV4) {
Lines 592-602 in6_mapped_sockaddr(struct socket *so, struct sockaddr **nam) Link Here
592
int
596
int
593
in6_mapped_peeraddr(struct socket *so, struct sockaddr **nam)
597
in6_mapped_peeraddr(struct socket *so, struct sockaddr **nam)
594
{
598
{
599
#ifdef INET
595
	struct	inpcb *inp;
600
	struct	inpcb *inp;
601
#endif
596
	int	error;
602
	int	error;
597
603
604
#ifdef INET
598
	inp = sotoinpcb(so);
605
	inp = sotoinpcb(so);
599
	KASSERT(inp != NULL, ("in6_mapped_peeraddr: inp == NULL"));
606
	KASSERT(inp != NULL, ("in6_mapped_peeraddr: inp == NULL"));
607
#endif
600
608
601
#ifdef INET
609
#ifdef INET
602
	if ((inp->inp_vflag & (INP_IPV4 | INP_IPV6)) == INP_IPV4) {
610
	if ((inp->inp_vflag & (INP_IPV4 | INP_IPV6)) == INP_IPV4) {

Return to bug 271651