[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.41 and 1.41.6.1

version 1.41, 1998/04/03 07:49:16 version 1.41.6.1, 1998/12/11 04:53:09
Line 308  rip_bind(inp, nam)
Line 308  rip_bind(inp, nam)
         struct mbuf *nam;          struct mbuf *nam;
 {  {
         struct sockaddr_in *addr = mtod(nam, struct sockaddr_in *);          struct sockaddr_in *addr = mtod(nam, struct sockaddr_in *);
           struct ifaddr *ifa = NULL;
   
         if (nam->m_len != sizeof(*addr))          if (nam->m_len != sizeof(*addr))
                 return (EINVAL);                  return (EINVAL);
Line 317  rip_bind(inp, nam)
Line 318  rip_bind(inp, nam)
             addr->sin_family != AF_IMPLINK)              addr->sin_family != AF_IMPLINK)
                 return (EAFNOSUPPORT);                  return (EAFNOSUPPORT);
         if (!in_nullhost(addr->sin_addr) &&          if (!in_nullhost(addr->sin_addr) &&
             ifa_ifwithaddr(sintosa(addr)) == 0)              (ifa = ifa_ifwithaddr(sintosa(addr))) == 0)
                 return (EADDRNOTAVAIL);                  return (EADDRNOTAVAIL);
         inp->inp_laddr = addr->sin_addr;          inp->inp_laddr = addr->sin_addr;
           if (ifa != NULL)
                   ifa_delref(ifa);
         return (0);          return (0);
 }  }
   

Legend:
Removed from v.1.41  
changed lines
  Added in v.1.41.6.1

CVSweb <webmaster@jp.NetBSD.org>