diff options
| author | Josh Blum <josh@joshknows.com> | 2010-12-13 15:53:46 -0800 | 
|---|---|---|
| committer | Josh Blum <josh@joshknows.com> | 2010-12-13 15:53:46 -0800 | 
| commit | e932dc72689bb7a20dda6cb28c8567eaf528554b (patch) | |
| tree | 768da01035962508bde1f217faf6341cfdae29df | |
| parent | 6c1d4ebdbd2229654976dd672a5433c300dc0d17 (diff) | |
| download | uhd-e932dc72689bb7a20dda6cb28c8567eaf528554b.tar.gz uhd-e932dc72689bb7a20dda6cb28c8567eaf528554b.tar.bz2 uhd-e932dc72689bb7a20dda6cb28c8567eaf528554b.zip | |
packet_router: all non ip/udp should also go to both
| -rw-r--r-- | usrp2/fifo/packet_router.v | 12 | 
1 files changed, 5 insertions, 7 deletions
| 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; | 
