diff options
author | Dave Barach <dave@barachs.net> | 2016-02-08 16:57:13 -0500 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2016-02-08 16:57:33 -0500 |
commit | f60a8222976a343701859b7b0bde40149d7acfb0 (patch) | |
tree | 8e0cdfbcad36b779f3a37d8377b278df686e3a82 /vnet | |
parent | ced48e7cbb36022f4ae105130efc5be25e1a11b2 (diff) |
Set vnet_buffer(b0)->sw_if_index[VLIB_TX]
Change-Id: I3274c8d426113c71fbb900978b94caef85eabae1
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vnet')
-rw-r--r-- | vnet/vnet/cdp/cdp_periodic.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/vnet/vnet/cdp/cdp_periodic.c b/vnet/vnet/cdp/cdp_periodic.c index ede9095fda4..dc631b35876 100644 --- a/vnet/vnet/cdp/cdp_periodic.c +++ b/vnet/vnet/cdp/cdp_periodic.c @@ -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)); |