[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.127 and 1.128

version 1.127, 2014/07/01 05:49:18 version 1.128, 2014/07/06 03:33:33
Line 572  rip_ioctl(struct socket *so, u_long cmd,
Line 572  rip_ioctl(struct socket *so, u_long cmd,
         return in_control(so, cmd, nam, ifp);          return in_control(so, cmd, nam, ifp);
 }  }
   static int
   rip_stat(struct socket *so, struct stat *ub)
           struct inpcb *inp;
           inp = sotoinpcb(so);
           if (inp == NULL)
                   return EINVAL;
           /* stat: don't bother with a blocksize. */
           return 0;
 int  int
 rip_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,  rip_usrreq(struct socket *so, int req, struct mbuf *m, struct mbuf *nam,
     struct mbuf *control, struct lwp *l)      struct mbuf *control, struct lwp *l)
Line 582  rip_usrreq(struct socket *so, int req, s
Line 595  rip_usrreq(struct socket *so, int req, s
         KASSERT(req != PRU_ATTACH);          KASSERT(req != PRU_ATTACH);
         KASSERT(req != PRU_DETACH);          KASSERT(req != PRU_DETACH);
         KASSERT(req != PRU_CONTROL);          KASSERT(req != PRU_CONTROL);
           KASSERT(req != PRU_SENSE);
         s = splsoftnet();          s = splsoftnet();
         if (req == PRU_PURGEIF) {          if (req == PRU_PURGEIF) {
Line 675  rip_usrreq(struct socket *so, int req, s
Line 689  rip_usrreq(struct socket *so, int req, s
         }          }
                 break;                  break;
         case PRU_SENSE:  
                  * stat: don't bother with a blocksize.  
                 return (0);  
         case PRU_RCVOOB:          case PRU_RCVOOB:
                 error = EOPNOTSUPP;                  error = EOPNOTSUPP;
                 break;                  break;
Line 712  PR_WRAP_USRREQS(rip)
Line 719  PR_WRAP_USRREQS(rip)
 #define rip_attach      rip_attach_wrapper  #define rip_attach      rip_attach_wrapper
 #define rip_detach      rip_detach_wrapper  #define rip_detach      rip_detach_wrapper
 #define rip_ioctl       rip_ioctl_wrapper  #define rip_ioctl       rip_ioctl_wrapper
   #define rip_stat        rip_stat_wrapper
 #define rip_usrreq      rip_usrreq_wrapper  #define rip_usrreq      rip_usrreq_wrapper
 const struct pr_usrreqs rip_usrreqs = {  const struct pr_usrreqs rip_usrreqs = {
         .pr_attach      = rip_attach,          .pr_attach      = rip_attach,
         .pr_detach      = rip_detach,          .pr_detach      = rip_detach,
         .pr_ioctl       = rip_ioctl,          .pr_ioctl       = rip_ioctl,
           .pr_stat        = rip_stat,
         .pr_generic     = rip_usrreq,          .pr_generic     = rip_usrreq,
 };  };

Removed from v.1.127  
changed lines
  Added in v.1.128

CVSweb <webmaster@jp.NetBSD.org>