diff options
author | paul <paul> | 2003-04-04 02:35:27 +0000 |
---|---|---|
committer | paul <paul> | 2003-04-04 02:35:27 +0000 |
commit | 81b3c9c636807877beaeed741ab8fef764959ab1 (patch) | |
tree | f79070fc938ed467c7e16f5a5bbd71e4b38f87f7 /ospfd/ospf_packet.c | |
parent | ef43a3dc3618e2e7836a9bf76572a69d94c4b4fe (diff) | |
download | quagga-zebra_org_20030404.tar.bz2 quagga-zebra_org_20030404.tar.xz |
Import of Zebra CVS 20030404-03:35zebra_org_20030404
Diffstat (limited to 'ospfd/ospf_packet.c')
-rw-r--r-- | ospfd/ospf_packet.c | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/ospfd/ospf_packet.c b/ospfd/ospf_packet.c index 9e445328..90782174 100644 --- a/ospfd/ospf_packet.c +++ b/ospfd/ospf_packet.c @@ -1961,7 +1961,8 @@ ospf_recv_packet (int fd, struct interface **ifp) } struct ospf_interface * -ospf_associate_packet_vl (struct interface *ifp, struct ospf_interface *oi, +ospf_associate_packet_vl (struct ospf *ospf, + struct interface *ifp, struct ospf_interface *oi, struct ip *iph, struct ospf_header *ospfh) { struct ospf_interface *rcv_oi; @@ -1975,17 +1976,17 @@ ospf_associate_packet_vl (struct interface *ifp, struct ospf_interface *oi, if ((rcv_oi = oi) == NULL) { - if ((rcv_oi = ospf_if_lookup_by_local_addr (oi->ospf, ifp, + if ((rcv_oi = ospf_if_lookup_by_local_addr (ospf, ifp, iph->ip_dst)) == NULL) return NULL; } - for (node = listhead (oi->ospf->vlinks); node; nextnode (node)) + for (node = listhead (ospf->vlinks); node; nextnode (node)) { if ((vl_data = getdata (node)) == NULL) continue; - vl_area = ospf_area_lookup_by_area_id (oi->ospf, vl_data->vl_area_id); + vl_area = ospf_area_lookup_by_area_id (ospf, vl_data->vl_area_id); if (!vl_area) continue; @@ -2237,7 +2238,7 @@ ospf_read (struct thread *thread) return 0; } - if ((oi = ospf_associate_packet_vl (ifp, oi, iph, ospfh)) == NULL) + if ((oi = ospf_associate_packet_vl (ospf, ifp, oi, iph, ospfh)) == NULL) { stream_free (ibuf); return 0; @@ -2773,7 +2774,7 @@ ospf_hello_send_sub (struct ospf_interface *oi, struct in_addr *addr) ospf_packet_add (oi, op); /* Hook thread to write packet. */ - OSPF_ISM_WRITE_ON (); + OSPF_ISM_WRITE_ON (oi->ospf); } void @@ -2908,7 +2909,7 @@ ospf_hello_send (struct ospf_interface *oi) /* Add packet to the interface output queue. */ ospf_packet_add (oi, op_dup); - OSPF_ISM_WRITE_ON (); + OSPF_ISM_WRITE_ON (oi->ospf); } } @@ -2926,7 +2927,7 @@ ospf_hello_send (struct ospf_interface *oi) ospf_packet_add (oi, op); /* Hook thread to write packet. */ - OSPF_ISM_WRITE_ON (); + OSPF_ISM_WRITE_ON (oi->ospf); } } @@ -2960,7 +2961,7 @@ ospf_db_desc_send (struct ospf_neighbor *nbr) ospf_packet_add (oi, op); /* Hook thread to write packet. */ - OSPF_ISM_WRITE_ON (); + OSPF_ISM_WRITE_ON (oi->ospf); /* Remove old DD packet, then copy new one and keep in neighbor structure. */ if (nbr->last_send) @@ -2981,7 +2982,7 @@ ospf_db_desc_resend (struct ospf_neighbor *nbr) ospf_packet_add (oi, ospf_packet_dup (nbr->last_send)); /* Hook thread to write packet. */ - OSPF_ISM_WRITE_ON (); + OSPF_ISM_WRITE_ON (oi->ospf); } /* Send Link State Request. */ @@ -3019,7 +3020,7 @@ ospf_ls_req_send (struct ospf_neighbor *nbr) ospf_packet_add (oi, op); /* Hook thread to write packet. */ - OSPF_ISM_WRITE_ON (); + OSPF_ISM_WRITE_ON (oi->ospf); /* Add Link State Request Retransmission Timer. */ OSPF_NSM_TIMER_ON (nbr->t_ls_req, ospf_ls_req_timer, nbr->v_ls_req); @@ -3072,7 +3073,7 @@ ospf_ls_upd_queue_send (struct ospf_interface *oi, list update, ospf_packet_add (oi, op); /* Hook thread to write packet. */ - OSPF_ISM_WRITE_ON (); + OSPF_ISM_WRITE_ON (oi->ospf); } static int @@ -3181,7 +3182,7 @@ ospf_ls_ack_send_list (struct ospf_interface *oi, list ack, struct in_addr dst) ospf_packet_add (oi, op); /* Hook thread to write packet. */ - OSPF_ISM_WRITE_ON (); + OSPF_ISM_WRITE_ON (oi->ospf); } static int |