[BACK]Return to udp_usrreq.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/udp_usrreq.c between version 1.173 and 1.174

version 1.173, 2008/08/06 15:01:23 version 1.174, 2009/01/19 02:27:57
Line 64 
Line 64 
 __KERNEL_RCSID(0, "$NetBSD$");  __KERNEL_RCSID(0, "$NetBSD$");
   
 #include "opt_inet.h"  #include "opt_inet.h"
   #include "opt_compat_netbsd.h"
 #include "opt_ipsec.h"  #include "opt_ipsec.h"
 #include "opt_inet_csum.h"  #include "opt_inet_csum.h"
 #include "opt_ipkdb.h"  #include "opt_ipkdb.h"
Line 136  __KERNEL_RCSID(0, "$NetBSD$");
Line 137  __KERNEL_RCSID(0, "$NetBSD$");
 #include <netkey/key.h>  #include <netkey/key.h>
 #endif /* IPSEC */  #endif /* IPSEC */
   
   #ifdef COMPAT_50
   #include <compat/sys/socket.h>
   #endif
   
 #ifdef IPKDB  #ifdef IPKDB
 #include <ipkdb/ipkdb.h>  #include <ipkdb/ipkdb.h>
 #endif  #endif
Line 639  udp4_sendup(struct mbuf *m, int off /* o
Line 644  udp4_sendup(struct mbuf *m, int off /* o
   
         if ((n = m_copypacket(m, M_DONTWAIT)) != NULL) {          if ((n = m_copypacket(m, M_DONTWAIT)) != NULL) {
                 if (inp && (inp->inp_flags & INP_CONTROLOPTS                  if (inp && (inp->inp_flags & INP_CONTROLOPTS
   #ifdef SO_OTIMESTAMP
                            || so->so_options & SO_OTIMESTAMP
   #endif
                          || so->so_options & SO_TIMESTAMP)) {                           || so->so_options & SO_TIMESTAMP)) {
                         struct ip *ip = mtod(n, struct ip *);                          struct ip *ip = mtod(n, struct ip *);
                         ip_savecontrol(inp, &opts, ip, n);                          ip_savecontrol(inp, &opts, ip, n);
Line 686  udp6_sendup(struct mbuf *m, int off /* o
Line 694  udp6_sendup(struct mbuf *m, int off /* o
   
         if ((n = m_copypacket(m, M_DONTWAIT)) != NULL) {          if ((n = m_copypacket(m, M_DONTWAIT)) != NULL) {
                 if (in6p && (in6p->in6p_flags & IN6P_CONTROLOPTS                  if (in6p && (in6p->in6p_flags & IN6P_CONTROLOPTS
                           || in6p->in6p_socket->so_options & SO_TIMESTAMP)) {  #ifdef SO_OTIMESTAMP
                       || in6p->in6p_socket->so_options & SO_OTIMESTAMP
   #endif
                       || in6p->in6p_socket->so_options & SO_TIMESTAMP)) {
                         struct ip6_hdr *ip6 = mtod(n, struct ip6_hdr *);                          struct ip6_hdr *ip6 = mtod(n, struct ip6_hdr *);
                         ip6_savecontrol(in6p, &opts, ip6, n);                          ip6_savecontrol(in6p, &opts, ip6, n);
                 }                  }

Legend:
Removed from v.1.173  
changed lines
  Added in v.1.174

CVSweb <webmaster@jp.NetBSD.org>