| version 1.108, 2008/08/06 15:01:23 |
version 1.109, 2009/01/19 02:27:57 |
|
|
| __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_mrouting.h" |
#include "opt_mrouting.h" |
| |
|
| Line 106 __KERNEL_RCSID(0, "$NetBSD$"); |
|
| Line 107 __KERNEL_RCSID(0, "$NetBSD$"); |
|
| #include <netipsec/ipsec_private.h> |
#include <netipsec/ipsec_private.h> |
| #endif /* FAST_IPSEC */ |
#endif /* FAST_IPSEC */ |
| |
|
| |
#ifdef COMPAT_50 |
| |
#include <compat/sys/socket.h> |
| |
#endif |
| |
|
| struct inpcbtable rawcbtable; |
struct inpcbtable rawcbtable; |
| |
|
| int rip_pcbnotify(struct inpcbtable *, struct in_addr, |
int rip_pcbnotify(struct inpcbtable *, struct in_addr, |
| Line 140 rip_sbappendaddr(struct inpcb *last, str |
|
| Line 145 rip_sbappendaddr(struct inpcb *last, str |
|
| { |
{ |
| if (last->inp_flags & INP_NOHEADER) |
if (last->inp_flags & INP_NOHEADER) |
| m_adj(n, hlen); |
m_adj(n, hlen); |
| if (last->inp_flags & INP_CONTROLOPTS || |
if (last->inp_flags & INP_CONTROLOPTS |
| last->inp_socket->so_options & SO_TIMESTAMP) |
#ifdef SO_OTIMESTAMP |
| |
|| last->inp_socket->so_options & SO_OTIMESTAMP |
| |
#endif |
| |
|| last->inp_socket->so_options & SO_TIMESTAMP) |
| ip_savecontrol(last, &opts, ip, n); |
ip_savecontrol(last, &opts, ip, n); |
| if (sbappendaddr(&last->inp_socket->so_rcv, sa, n, opts) == 0) { |
if (sbappendaddr(&last->inp_socket->so_rcv, sa, n, opts) == 0) { |
| /* should notify about lost packet */ |
/* should notify about lost packet */ |