[SOLVED] Searching source codes

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Goto page Previous  1, 2, 3  Next
Author Message
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Thu Aug 25, 2022 13:21    Post subject: Reply with quote
You can hack Windows for some things and it wont be enough it will never work due certain filenames. But Im repeating myself, Joker != parrot.
_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
Sponsor
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Fri Aug 26, 2022 15:59    Post subject: Reply with quote
the-joker wrote:
You can hack Windows for some things and it wont be enough it will never work due certain filenames. But Im repeating myself, Joker != parrot.

I most likely will throw master.zip into a bigger USB drive attached to my DD-WRT router aka Asus RT-N18U, then decompress it there.

Is there a smaller zip that contains only the source codes of DD-WRT? No linux kernel, no router manufacturer blob, just DD-WRT! That should be a lot smaller than 3,571,145,674 bytes, right?

I don't wanna compile it, just reading and searching the core C codes of DD-WRT!


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Fri Aug 26, 2022 17:45    Post subject: Reply with quote
No smaller file exists.

As for the USB drive, it better be ext4 also, I have not tested the theory, but I believe NTFS will die in a pool of its own yellow juices Wink

Im not entirely sure what you mean just by DD-WRT, whats wrong with the whole lot? You should copy the whole lot and delete what you dont like (if using the zip) , so next time I hear anything about this will be 5 years later hahaha.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Fri Aug 26, 2022 18:19    Post subject: Reply with quote
the-joker wrote:
Im not entirely sure what you mean just by DD-WRT, whats wrong with the whole lot? You should copy the whole lot and delete what you dont like (if using the zip) , so next time I hear anything about this will be 5 years later hahaha.

I always thought there should be a clear line between the codes to be patched and the patching codes. Most problems should usually come from the patching codes instead of the codes to be patched, the later could/should be ignored. Without this line, it's hard to rollback changes, I suppose.

I always thought a git/versioning system was to make this line easy to see. But then in the end you have to insert your changes directly into the C file. Smile


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12913
Location: Netherlands

PostPosted: Fri Aug 26, 2022 18:25    Post subject: Reply with quote
You should be able to do a selective check out.

Might want to Google that

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Fri Aug 26, 2022 19:01    Post subject: Reply with quote
mwchang wrote:
the-joker wrote:
Im not entirely sure what you mean just by DD-WRT, whats wrong with the whole lot? You should copy the whole lot and delete what you dont like (if using the zip) , so next time I hear anything about this will be 5 years later hahaha.

I always thought there should be a clear line between the codes to be patched and the patching codes. Most problems should usually come from the patching codes instead of the codes to be patched, the later could/should be ignored. Without this line, it's hard to rollback changes, I suppose.

I always thought a git/versioning system was to make this line easy to see. But then in the end you have to insert your changes directly into the C file. Smile


This literally makes no sense to me, something is clearly being lost in translation.

Anyway good luck to you and your endeavors, sounds like you have a great deal to read on.

Google can answer all the questions you may have, literally all thus far could have been between you and google/your fav search engine.

Good luck Wink

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Sat Aug 27, 2022 6:56    Post subject: Reply with quote
the-joker wrote:
This literally makes no sense to me, something is clearly being lost in translation.

Anyway good luck to you and your endeavors, sounds like you have a great deal to read on.

Google can answer all the questions you may have, literally all thus far could have been between you and google/your fav search engine.

Indeed it maybe a translation issue, but how do you convey the same idea in patching spoken human languages?

Human languages are all constantly being patched by religions, politics and military confrontations? Smile

As I just wanna find out how DD-WRT interacts with the router at a high level, I could save time by skipping the bulk of source codes.
Quote:
Good luck

Luck won't help me. Maybe you wrongly translated "luck"? Smile

It's down to the earth reading and comprehension.


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw


Last edited by mwchang on Sat Aug 27, 2022 7:41; edited 2 times in total
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Sat Aug 27, 2022 7:38    Post subject: Reply with quote
egc wrote:
You should be able to do a selective check out.
Might want to Google that

How do you select a red line that does NOT exist? Smile

From the replies of Master Joker, it's rather difficult to find that line which is completely fused with the C codes?

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Aug 27, 2022 7:49    Post subject: Reply with quote
mwchang wrote:
As I just wanna find out how DD-WRT interacts with the router at a high level, I could save time by skipping the bulk of source codes.

High level? You mean the user interface or what, be specific please, low/high level is real technical coding jargon, each will have different parts of code to look at specifically.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Sat Aug 27, 2022 9:33    Post subject: Reply with quote
the-joker wrote:
mwchang wrote:
As I just wanna find out how DD-WRT interacts with the router at a high level, I could save time by skipping the bulk of source codes.

High level? You mean the user interface or what, be specific please, low/high level is real technical coding jargon, each will have different parts of code to look at specifically.

Let me start reading the codes first, then I come back to haunt this thread with specific detail. Thank you ALL! Smile

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12913
Location: Netherlands

PostPosted: Sat Aug 27, 2022 9:48    Post subject: Reply with quote
Well the code consists of a mix of HTML/ASP, C and Bash scripts but then you have to know how to read the makefiles and rules and configs to see what eventually ends up in the build.

All without any documentation.

I do not want to discourage you because we need more knowledgeable people to work on the project but not many people which are active today besides BS have a deep/total knowledge about it, which is unfortunate Sad

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Sat Aug 27, 2022 10:12    Post subject: Reply with quote
egc wrote:
All without any documentation.

I do not want to discourage you because we need more knowledgeable people to work on the project but not many people which are active today besides BS have a deep/total knowledge about it, which is unfortunate Sad

It's indeed very hard to read codes without knowing their purposes and intent. Will try my breast... sorry, best. Smile

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12913
Location: Netherlands

PostPosted: Sat Aug 27, 2022 15:31    Post subject: Reply with quote
If you need any pointers you can always PM me
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
the-joker
DD-WRT Developer/Maintainer


Joined: 31 Jul 2021
Posts: 2146
Location: All over YOUR webs

PostPosted: Sat Aug 27, 2022 16:00    Post subject: Reply with quote
egc wrote:
If you need any pointers you can always PM me

Wink My only pointer is towards search engines (aside what has been said), sorry Wink

It's a slow progress to get anywhere DD-WRT side too many nooks and crannies, after two years I'm barely scratching the surface DD-WRT side. I never had to deal with cgi, C or asp ever before, but I'm learning and at 50 years old I still have appetite and interest. And that is what matters, boundless curiosity and determination! Cool

The Interface is split between css, javascript, bash scripts, cgi, asp, C, htm, and webconfig files all over the source, its not like there is a single folder with all of it, so that alone to come close to mastering is a 24/7 job 365 days a year for 5 years.

_________________
Saving your retinas from the burn!🔥
DD-WRT Inspired themes for routers
DD-WRT Inspired themes for the phpBB Forum
DD-WRT Inspired themes for the SVN Trac & FTP site
Join in for a chat @ #style_it_themes_public:matrix.org or #style_it_themes:discord

DD-WRT UI Themes Bug Reporting and Discussion thread

Router: ANus RT-AC68U E1 (recognized as C1)
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1858
Location: Hung Hom, Hong Kong

PostPosted: Sat Aug 27, 2022 16:50    Post subject: Reply with quote
[quote="the-joker"]
egc wrote:
The Interface is split between css, javascript, bash scripts, cgi, asp, C, htm, and webconfig files all over the source, its not like there is a single folder with all of it, so that alone to come close to mastering is a 24/7 job 365 days a year for 5 years.

"A single folder with all of it" was possible, if and only if the WEBUI used PHP instead of C? But then DD-WRT is an old project. Way way back then not even CSS was standard and available. That explained the heavy use of Javacript and CGI.

"ASP"? Isn't it just a file extension? Was it really Active Server Page of Micro$oft?

BTW, I think DD-WRT wrote its own C-based web server for the WBEUI? I wasn't sure...

DD-WRT/httpd.c at master · jameshilliard/DD-WRT · GitHub
https://github.com/jameshilliard/DD-WRT/blob/master/src/router/httpd/httpd.c

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Goto page Previous  1, 2, 3  Next Display posts from previous:    Page 2 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum