|
|
| version 1.19, 2004/04/20 01:52:28 | version 1.20, 2004/04/21 18:13:56 |
|---|---|
| Line 248 static int ip_dooptions (struct mbuf *m | Line 248 static int ip_dooptions (struct mbuf *m |
| static void ip_forward (struct mbuf *m, int srcrt, | static void ip_forward (struct mbuf *m, int srcrt, |
| struct sockaddr_in *next_hop); | struct sockaddr_in *next_hop); |
| static void ip_freef (struct ipq *); | static void ip_freef (struct ipq *); |
| static void ip_input_handler (struct netmsg *); | static int ip_input_handler (struct netmsg *); |
| static struct mbuf *ip_reass (struct mbuf *, struct ipq *, | static struct mbuf *ip_reass (struct mbuf *, struct ipq *, |
| struct ipq *, u_int32_t *, u_int16_t *); | struct ipq *, u_int32_t *, u_int16_t *); |
| Line 351 transport_processing_handler(lwkt_msg_t | Line 351 transport_processing_handler(lwkt_msg_t |
| return(EASYNC); | return(EASYNC); |
| } | } |
| static void | static int |
| ip_input_handler(struct netmsg *msg0) | ip_input_handler(struct netmsg *msg0) |
| { | { |
| struct mbuf *m = ((struct netmsg_packet *)msg0)->nm_packet; | struct mbuf *m = ((struct netmsg_packet *)msg0)->nm_packet; |
| ip_input(m); | ip_input(m); |
| lwkt_replymsg(&msg0->nm_lmsg, 0); | lwkt_replymsg(&msg0->nm_lmsg, 0); |
| return(EASYNC); | |
| } | } |
| /* | /* |
| Line 991 DPRINTF(("ip_input: no SP, packet discar | Line 992 DPRINTF(("ip_input: no SP, packet discar |
| lwkt_port_t port; | lwkt_port_t port; |
| msg = malloc(sizeof(struct netmsg_transport_packet), | msg = malloc(sizeof(struct netmsg_transport_packet), |
| M_LWKTMSG, M_NOWAIT); | M_LWKTMSG, M_NOWAIT); |
| if (!msg) | if (msg == NULL) |
| goto bad; | goto bad; |
| lwkt_initmsg(&msg->nm_lmsg, &netisr_afree_rport, 0, | lwkt_initmsg(&msg->nm_lmsg, &netisr_afree_rport, 0, |