| version 1.97.8.2, 2008/01/09 01:57:29 |
version 1.97.8.3, 2008/03/23 02:05:06 |
|
|
| /* $NetBSD$ */ |
/* raw_ip.c,v 1.97.8.2 2008/01/09 01:57:29 matt Exp */ |
| |
|
| /* |
/* |
| * Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. |
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project. |
|
|
| */ |
*/ |
| |
|
| #include <sys/cdefs.h> |
#include <sys/cdefs.h> |
| __KERNEL_RCSID(0, "$NetBSD$"); |
__KERNEL_RCSID(0, "raw_ip.c,v 1.97.8.2 2008/01/09 01:57:29 matt Exp"); |
| |
|
| #include "opt_inet.h" |
#include "opt_inet.h" |
| #include "opt_ipsec.h" |
#include "opt_ipsec.h" |
| Line 358 rip_output(struct mbuf *m, ...) |
|
| Line 358 rip_output(struct mbuf *m, ...) |
|
| } |
} |
| HTONS(ip->ip_len); |
HTONS(ip->ip_len); |
| HTONS(ip->ip_off); |
HTONS(ip->ip_off); |
| if (ip->ip_id == 0 && m->m_pkthdr.len >= IP_MINFRAGSIZE) |
if (ip->ip_id != 0 || m->m_pkthdr.len < IP_MINFRAGSIZE) |
| ip->ip_id = ip_newid(); |
flags |= IP_NOIPNEWID; |
| opts = NULL; |
opts = NULL; |
| /* XXX prevent ip_output from overwriting header fields */ |
/* XXX prevent ip_output from overwriting header fields */ |
| flags |= IP_RAWOUTPUT; |
flags |= IP_RAWOUTPUT; |