docsis_server 3.5 sends wrong IP address in DHCP ACK | docsis.org

You are here

docsis_server 3.5 sends wrong IP address in DHCP ACK

5 posts / 0 new
Last post
omadon
docsis_server 3.5 sends wrong IP address in DHCP ACK

Can somebody confirm this. I have situation where docsis_server 3.5 sends wrong IP address in ACK packet for cable modems. It is IP+1 or IP+2 from value in OFFER packet.

Some of the cable modems doesn't mind this, but some of the do, and they end up stuck in init(i)...

select * from dhcp_log;
+------------+----------+----------+---------+------+--------------+-------------+--------------+-----------+-----------------+--------+
| thedate | thetime | serverid | sending | type | dynamic_flag | mcache_flag | b_macaddr | b_ipaddr | b_modem_macaddr | subnum |
+------------+----------+----------+---------+------+--------------+-------------+--------------+-----------+-----------------+--------+
| 2009-09-14 | 21:34:26 | 1 | OFFER | CM | NO | NO | 44895410390 | 174325787 | 44895410390 | 1 |
| 2009-09-14 | 21:34:28 | 1 | ACK | CM | NO | NO | 44895410390 | 174325788 | 44895410390 | 1 |
| 2009-09-14 | 21:35:29 | 1 | OFFER | CM | NO | NO | 64980545620 | 174325789 | 64980545620 | 2 |
| 2009-09-14 | 21:35:31 | 1 | ACK | CM | NO | NO | 64980545620 | 174325790 | 64980545620 | 2 |
| 2009-09-14 | 21:36:36 | 1 | OFFER | CM | NO | NO | 124191759005 | 174325791 | 124191759005 | 3 |
| 2009-09-14 | 21:36:38 | 1 | ACK | CM | NO | NO | 124191759005 | 174325792 | 124191759005 | 3 |
+------------+----------+----------+---------+------+--------------+-------------+--------------+-----------+-----------------+--------+

The problem is also visible with wireshark. I download the source yesterday..

luciano
can you give select * from

can you give select * from config_opts and from config_nets as well? this is really weird...

omadon
select * from

select * from config_nets;
+---------+-------------+-----------+----------------+-------------+------------+--------------+-----------+-------------+---------------+------------+-------------+-------------+-------------+
| nettype | cmts_ip | cmts_vlan | network | gateway | grant_flag | dynamic_flag | full_flag | range_min | range_max | lease_time | config_opt1 | config_opt2 | config_opt3 |
+---------+-------------+-----------+----------------+-------------+------------+--------------+-----------+-------------+---------------+------------+-------------+-------------+-------------+
| CM | 10.100.0.1 | 1 | 10.100.0.0/24 | 10.100.0.1 | YES | NO | NO | 10.100.0.5 | 10.100.0.254 | 86400 | 10 | 0 | 0 |
| CPE | 10.100.10.1 | 1 | 10.100.10.0/24 | 10.100.10.1 | YES | NO | NO | 10.100.10.5 | 10.100.10.254 | 86400 | 100 | 0 | 0 |
| MTA | 10.100.20.1 | 1 | 10.100.20.0/24 | 10.100.20.1 | YES | YES | NO | 10.100.20.5 | 10.100.20.254 | 86400 | 200 | 0 | 0 |
+---------+-------------+-----------+----------------+-------------+------------+--------------+-----------+-------------+---------------+------------+-------------+-------------+-------------+

select * from config_opts;
+-----------+--------+----------+-----------+--------------------------+---------+------------------+
| server_id | opt_id | opt_type | opt_dtype | opt_value | sub_opt | comment |
+-----------+--------+----------+-----------+--------------------------+---------+------------------+
| 1 | 10 | 54 | IP | 192.168.102.1 | 0 | Lease Server IP |
| 1 | 10 | 6 | 2IP | 192.168.1.14,192.168.1.2 | 0 | DNS Servers |
| 1 | 10 | 15 | CHAR | verso.hr | 0 | Domain Name |
| 1 | 10 | 2 | INT32 | +3600 | 0 | Time Offset |
| 1 | 10 | 4 | IP | 192.168.102.1 | 0 | Time Server |
| 1 | 10 | 7 | IP | 192.168.102.1 | 0 | Log Server |
| 1 | 10 | 66 | CHAR | 192.168.102.1 | 0 | TFTP Server |
| 1 | 100 | 54 | IP | 192.168.102.1 | 0 | Lease Server IP |
| 1 | 100 | 6 | 2IP | 192.168.1.14,192.168.1.2 | 0 | DNS Servers |
| 1 | 1000 | 3 | MTA-IP | 192.168.102.1 | 0 | MTA IP |
| 1 | 10 | 122 | SUBOPT | | 1000 | MTA Provisioning |
| 1 | 1000 | 1 | IP | 192.168.102.1 | 0 | MTA DHCP IP |
+-----------+--------+----------+-----------+--------------------------+---------+------------------+

Maybe there are some changes in the source code, can somebody put working 3.5 version on rapid share...

luciano
pfuf

I've checked my configs and they do differ in one thing - we used /16 networks for config_nets, it wouldn't work for us with /24 networks at the time. sorry i cannot be of more help. I do not understand the way information is encoded - this is neither hex converted into decimal, nor decimal octets concatenated...i do not understand way macs and IPs are encoded for this table, fcuk :(
.play.open.minded.

omadon
I changed subnets to /16,

I changed subnets to /16, and I have the same errors. I suspect something was changed in the source. Can somebody send me working 3.5 version. Thanks

Log in or register to post comments