|
|
| version 1.2, 2003/06/17 04:28:51 | version 1.3, 2004/04/22 04:35:45 |
|---|---|
| Line 34 | Line 34 |
| * POSSIBILITY OF SUCH DAMAGE. | * POSSIBILITY OF SUCH DAMAGE. |
| * | * |
| * $FreeBSD: src/sys/netinet/ip_flow.c,v 1.9.2.2 2001/11/04 17:35:31 luigi Exp $ | * $FreeBSD: src/sys/netinet/ip_flow.c,v 1.9.2.2 2001/11/04 17:35:31 luigi Exp $ |
| * $DragonFly: src/sys/netinet/ip_flow.c,v 1.1 2003/06/16 06:37:57 dillon Exp $ | * $DragonFly$ |
| */ | */ |
| #include <sys/param.h> | #include <sys/param.h> |
| Line 274 ipflow_slowtimo( | Line 274 ipflow_slowtimo( |
| } | } |
| void | void |
| ipflow_create( | ipflow_create(const struct route *ro, struct mbuf *m) |
| const struct route *ro, | |
| struct mbuf *m) | |
| { | { |
| const struct ip *const ip = mtod(m, struct ip *); | const struct ip *const ip = mtod(m, struct ip *); |
| struct ipflow *ipf; | struct ipflow *ipf; |
| Line 298 ipflow_create( | Line 296 ipflow_create( |
| if (ipflow_inuse == IPFLOW_MAX) { | if (ipflow_inuse == IPFLOW_MAX) { |
| ipf = ipflow_reap(); | ipf = ipflow_reap(); |
| } else { | } else { |
| ipf = (struct ipflow *) malloc(sizeof(*ipf), M_IPFLOW, | ipf = malloc(sizeof(*ipf), M_IPFLOW, |
| M_NOWAIT); | M_INTWAIT | M_NULLOK); |
| if (ipf == NULL) | if (ipf == NULL) |
| return; | return; |
| ipflow_inuse++; | ipflow_inuse++; |