[BACK]Return to raw_ip.c CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / src / sys / netinet

Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.

Diff for /src/sys/netinet/raw_ip.c between version 1.150 and 1.151

version 1.150, 2015/04/26 21:40:49 version 1.151, 2015/05/02 14:41:32
Line 560  rip_bind(struct socket *so, struct socka
Line 560  rip_bind(struct socket *so, struct socka
         struct sockaddr_in *addr = (struct sockaddr_in *)nam;          struct sockaddr_in *addr = (struct sockaddr_in *)nam;
         int error = 0;          int error = 0;
         int s;          int s;
           struct ifaddr *ia;
   
         KASSERT(solocked(so));          KASSERT(solocked(so));
         KASSERT(inp != NULL);          KASSERT(inp != NULL);
Line 577  rip_bind(struct socket *so, struct socka
Line 578  rip_bind(struct socket *so, struct socka
                 error = EAFNOSUPPORT;                  error = EAFNOSUPPORT;
                 goto release;                  goto release;
         }          }
         if (!in_nullhost(addr->sin_addr) &&          if ((ia = ifa_ifwithaddr(sintosa(addr))) == 0 &&
             ifa_ifwithaddr(sintosa(addr)) == 0) {              !in_nullhost(addr->sin_addr))
           {
                 error = EADDRNOTAVAIL;                  error = EADDRNOTAVAIL;
                 goto release;                  goto release;
         }          }
           if (ia && ((struct in_ifaddr *)ia)->ia4_flags &
                       (IN6_IFF_NOTREADY | IN_IFF_DETACHED))
           {
                   error = EADDRNOTAVAIL;
                   goto release;
           }
   
         inp->inp_laddr = addr->sin_addr;          inp->inp_laddr = addr->sin_addr;
   
 release:  release:

Legend:
Removed from v.1.150  
changed lines
  Added in v.1.151

CVSweb <webmaster@jp.NetBSD.org>