Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Submitted by: @marjohn56
- Loading branch information
Showing
6 changed files
with
316 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
a716d4b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These are the notes from my original commit on HRS - I'll try and flesh them out a bit when I get some time,
The changes here add the ability to add as many options as needed using the RAW parameter.
For example, these are taken from a working system, slightly changed to protect the user!
User class "+FSVDSL_livebox.Internet.softathome.Livebox3";
send raw-option 15 00:2b:46:53:56:44:53:4c:5f:6c:69:76:65:62:6f:78:2e:49:6e:74:65:72:6e:65:74:2e:73:6f:66:74:61:74:68:6f:6d:65:2e:6c:69:76:65:62:6f:78:33;
Vendor class "sagem"
send raw-option 16 00:00:04:0e:00:05:73:61:67:65:6d;
Authentication
send raw-option 11 00:00:00:00:00:00:00:00:00:00:00:61:71:81:2d:66:73:71:71:36:41:78;
It can be seen that the option number is the first number after the "send raw-option, entered as a decimal number.
For example, in the User Class, rfc3315 states that for user class, all that is required is the option length - first byte, then the string itself. As the length will be calculated and entered automatically this is set to 0, or in hex 00. The string is then entered, converted to hex bytes as shown below.
+FSVDSL_livebox.Internet.softathome.Livebox3
becomes
00:2b:46:53:56:44:53:4c:5f:6c:69:76:65:62:6f:78:2e:49:6e:74:65:72:6e:65:74:2e:73:6f:66:74:61:74:68:6f:6d:65:2e:6c:69:76:65:62:6f:78:33
Care obviously needs to be taken when creating these parameters and it is for the advanced only, but it does allow any option(s) to be added, and it works!
It is imperative that when adding a RAW option that the RFC for that option is studied, Each RAW option is different. Some are fixed length, some are not. All must be entered in HEX format. At the end of the day, it may be required to use wireshark or a packet capture to ensure the correct string is being sent.