From e932dc72689bb7a20dda6cb28c8567eaf528554b Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Mon, 13 Dec 2010 15:53:46 -0800 Subject: packet_router: all non ip/udp should also go to both --- usrp2/fifo/packet_router.v | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'usrp2') diff --git a/usrp2/fifo/packet_router.v b/usrp2/fifo/packet_router.v index 9491d4346..cf4047c5f 100644 --- a/usrp2/fifo/packet_router.v +++ b/usrp2/fifo/packet_router.v @@ -500,16 +500,14 @@ module packet_router com_insp_dreg_count <= 0; //---------- begin inspection decision -----------// - //bcast or EOF: - if ((com_insp_dregs_eth_dst_mac == 48'hffffffffffff) || com_inp_data[33]) begin + //EOF or bcast or not IPv4 or not UDP: + if ( + com_inp_data[33] || (com_insp_dregs_eth_dst_mac == 48'hffffffffffff) || + (com_insp_dregs_eth_type != 16'h800) || (com_insp_dregs_ipv4_proto != 8'h11) + ) begin com_insp_dest <= COM_INSP_DEST_BOF; end - //not IPv4/UDP: - else if ((com_insp_dregs_eth_type != 16'h800) || (com_insp_dregs_ipv4_proto != 8'h11)) begin - com_insp_dest <= COM_INSP_DEST_CPU; - end - //not my IP address: else if (com_insp_dregs_ipv4_dst_addr != my_ip_addr) begin com_insp_dest <= COM_INSP_DEST_EXT; -- cgit v1.2.3