Set vnet_buffer(b0)->sw_if_index[VLIB_TX] 53/253/1
authorDave Barach <dave@barachs.net>
Mon, 8 Feb 2016 21:57:13 +0000 (16:57 -0500)
committerDave Barach <dave@barachs.net>
Mon, 8 Feb 2016 21:57:33 +0000 (16:57 -0500)
Change-Id: I3274c8d426113c71fbb900978b94caef85eabae1
Signed-off-by: Dave Barach <dave@barachs.net>
vnet/vnet/cdp/cdp_periodic.c

index ede9095..dc631b3 100644 (file)
@@ -140,6 +140,9 @@ send_ethernet_hello (cdp_main_t *cm, cdp_neighbor_t *n, int count)
         b0->current_length = nbytes_to_checksum + sizeof (*h0) 
             - sizeof (cdp_hdr_t) ;
 
+       /* And the outbound interface */
+        vnet_buffer(b0)->sw_if_index[VLIB_TX] = hw->sw_if_index;
+
         /* Set the 802.3 ethernet length */
        h0->ethernet.len = htons (b0->current_length
                                   - sizeof (ethernet_802_3_header_t));