]> jspc29.x-matter.uni-frankfurt.de Git - trbnet.git/commitdiff
Revert "gk: fixed reversed dhcp ip address"
authorJan Michel <j.michel@gsi.de>
Fri, 15 Dec 2017 15:44:53 +0000 (16:44 +0100)
committerJan Michel <j.michel@gsi.de>
Fri, 15 Dec 2017 15:44:53 +0000 (16:44 +0100)
This reverts commit f1a3b9c87582f3cac540f9ae1ad577da53ab991b.

gbe_trb/protocols/trb_net16_gbe_response_constructor_DHCP.vhd

index a62c40bbf7c87d7427ae8116e396c9b17461641a..10fac6453e388b4884de1abb8afda83696c78112 100644 (file)
@@ -169,12 +169,10 @@ process(CLK)
 begin
   if rising_edge(CLK) then
     if (main_current_state = ESTABLISHED) then
---       my_ip(31 downto 24) <= saved_true_ip(7 downto 0);
---       my_ip(23 downto 16) <= saved_true_ip(15 downto 8);
---       my_ip(15 downto 8) <= saved_true_ip(23 downto 16);
---       my_ip(7 downto 0) <= saved_true_ip(31 downto 24);
-
-      my_ip <= saved_true_ip;
+      my_ip(31 downto 24) <= saved_true_ip(7 downto 0);
+      my_ip(23 downto 16) <= saved_true_ip(15 downto 8);
+      my_ip(15 downto 8) <= saved_true_ip(23 downto 16);
+      my_ip(7 downto 0) <= saved_true_ip(31 downto 24);
     elsif (CFG_IP_IN /= x"0000_0000") then
       my_ip(31 downto 24) <= CFG_IP_IN(7 downto 0);
       my_ip(23 downto 16) <= CFG_IP_IN(15 downto 8);