| version 1.294, 2011/04/14 20:32:04 |
version 1.295, 2011/05/03 17:44:31 |
| Line 278 static struct ip_srcrt { |
|
| Line 278 static struct ip_srcrt { |
|
| struct in_addr route[MAX_IPOPTLEN/sizeof(struct in_addr)]; |
struct in_addr route[MAX_IPOPTLEN/sizeof(struct in_addr)]; |
| } ip_srcrt; |
} ip_srcrt; |
| |
|
| |
static int ip_drainwanted; |
| |
|
| static void save_rte(u_char *, struct in_addr); |
static void save_rte(u_char *, struct in_addr); |
| |
|
| #ifdef MBUFTRACE |
#ifdef MBUFTRACE |
| Line 1282 const int inetctlerrmap[PRC_NCMDS] = { |
|
| Line 1284 const int inetctlerrmap[PRC_NCMDS] = { |
|
| [PRC_PARAMPROB] = ENOPROTOOPT, |
[PRC_PARAMPROB] = ENOPROTOOPT, |
| }; |
}; |
| |
|
| |
void |
| |
ip_fasttimo(void) |
| |
{ |
| |
if (ip_drainwanted) { |
| |
ip_drain(); |
| |
ip_drainwanted = 0; |
| |
} |
| |
} |
| |
|
| |
void |
| |
ip_drainstub(void) |
| |
{ |
| |
ip_drainwanted = 1; |
| |
} |
| |
|
| /* |
/* |
| * Forward a packet. If some error occurs return the sender |
* Forward a packet. If some error occurs return the sender |
| * an icmp packet. Note we can't always generate a meaningful |
* an icmp packet. Note we can't always generate a meaningful |