Re: Debugging the RIP code
Hi Maria, Thank you very much for your sincere reply. I really appreciate your recommendations. I will try on Linux first to have the first understanding about RIP (then BIRD). But honestly, I really want to challenge myself on Windows. Of course, I will let you guys know if I run RIP successfully on Windows :) Best regards, Soan On Mon, May 21, 2018 at 7:44 PM, Jan Maria Matejkawrote: > Hello! > > Disclaimer: There is no sarcasm in this mail. It may look like sarcasm > but I'm absolutely serious. > > > I would like to get more understanding about one simple routing protocol > > (e.g. RIP) in BIRD by debugging the code step-by-step. However, I have > > got stuck at configuring the first step to run the code in Visual Studio > > C++. > > The code is C, not C++. It is probably not buildable as C++. Moreover, > BIRD currently supports Linux and several flavors of BSDs. We don't > support running on Windows natively and it seems to be quite a lot of > work to write all the needed bindings even for RIP to run. Anyway, it > would be too simple to tell you that you never want to do that. It is > definitely possible, yet quite difficult. > > > Could you guys please point me out how could I configure things in C++ > > to starting debugging. Any help you have to offer would be greatly > > appreciated. > > My recommendations are as follows: > 1. Setup a Linux C development environment. > 2. Trace RIP on Linux. > > Then you are done with what you wanted (to learn how RIP is written). > > You didn't want this? Then skip step 2 and continue this way: > 3. Dig deeply into BIRD sysdep/ folder and research what are the needed > APIs on Windows to bind to. You may need to trace the low-level parts of > BIRD and read a lot of documentation to check that your understanding of > the code is correct. > 4. Fix the build errors in Visual Studio in a portable way. > 5. Write Windows bindings in sysdep/. > 6. Send your patches to the mailing list. > 7. Debug RIP on Windows. > > I'm not kidding. I'm definitely not kidding. I'm absolutely serious. > If I wanted to trace RIP in Visual Studio, I would do it this way. > Yes, I know, it is a painful way, yet still the least painful way. > > I believe that you can do it. I'm looking forward to your patches! > > Maria >
Re: Debugging the RIP code
Hello! Disclaimer: There is no sarcasm in this mail. It may look like sarcasm but I'm absolutely serious. > I would like to get more understanding about one simple routing protocol > (e.g. RIP) in BIRD by debugging the code step-by-step. However, I have > got stuck at configuring the first step to run the code in Visual Studio > C++. The code is C, not C++. It is probably not buildable as C++. Moreover, BIRD currently supports Linux and several flavors of BSDs. We don't support running on Windows natively and it seems to be quite a lot of work to write all the needed bindings even for RIP to run. Anyway, it would be too simple to tell you that you never want to do that. It is definitely possible, yet quite difficult. > Could you guys please point me out how could I configure things in C++ > to starting debugging. Any help you have to offer would be greatly > appreciated. My recommendations are as follows: 1. Setup a Linux C development environment. 2. Trace RIP on Linux. Then you are done with what you wanted (to learn how RIP is written). You didn't want this? Then skip step 2 and continue this way: 3. Dig deeply into BIRD sysdep/ folder and research what are the needed APIs on Windows to bind to. You may need to trace the low-level parts of BIRD and read a lot of documentation to check that your understanding of the code is correct. 4. Fix the build errors in Visual Studio in a portable way. 5. Write Windows bindings in sysdep/. 6. Send your patches to the mailing list. 7. Debug RIP on Windows. I'm not kidding. I'm definitely not kidding. I'm absolutely serious. If I wanted to trace RIP in Visual Studio, I would do it this way. Yes, I know, it is a painful way, yet still the least painful way. I believe that you can do it. I'm looking forward to your patches! Maria
Re: Debugging the RIP code
Thank you, Neil. Have a nice weekend :) Best regards, Soan On Fri, May 18, 2018 at 7:23 PM, Neil Jerramwrote: > Hi Soan, > > I'm afraid I don't have any experience myself with working on BIRD in > Windows; but probably it is possible, so I hope that other developers who > have done that will be able to help you. > > Regards - Neil > > > On Fri, 18 May 2018, 10:12 Minh Soan Duong, wrote: > >> Hi Neil, >> >> Thank you very much for your reply. >> >> Actually, I would prefer to run it on Windows environment, which I am >> much familiar with. As far as my understanding, it does not matter if I >> just want to run a simple demo of a BIRD routing protocol. Am I correct? >> >> In case it is impossible to run on Windows, then yes, I can switch to >> Linux environment. >> >> Do you have any suggestion for me? And sorry for my dumb question. >> >> Best regards, >> Soan >> >> On Fri, May 18, 2018 at 6:57 PM, Neil Jerram wrote: >> >>> Hi Soan, >>> >>> Would it be possible for you to work on a GNU/Linux system instead? I >>> believe that is what most BIRD developers do. >>> >>> Regards - Neil >>> >>> >>> On Fri, May 18, 2018 at 3:58 AM Minh Soan Duong >>> wrote: >>> Hi BIRD experts, My name is Soan Duong. I am a newbie of routing protocols, and of course of The BIRD internet routing daemon as well. I would like to get more understanding about one simple routing protocol (e.g. RIP) in BIRD by debugging the code step-by-step. However, I have got stuck at configuring the first step to run the code in Visual Studio C++. Could you guys please point me out how could I configure things in C++ to starting debugging. Any help you have to offer would be greatly appreciated. Regards, Soan -- DUONG Thi Minh Soan Skype: soan.duong >>> >> >> >> >>
Re: Debugging the RIP code
Hi Soan, I'm afraid I don't have any experience myself with working on BIRD in Windows; but probably it is possible, so I hope that other developers who have done that will be able to help you. Regards - Neil On Fri, 18 May 2018, 10:12 Minh Soan Duong,wrote: > Hi Neil, > > Thank you very much for your reply. > > Actually, I would prefer to run it on Windows environment, which I am much > familiar with. As far as my understanding, it does not matter if I just > want to run a simple demo of a BIRD routing protocol. Am I correct? > > In case it is impossible to run on Windows, then yes, I can switch to > Linux environment. > > Do you have any suggestion for me? And sorry for my dumb question. > > Best regards, > Soan > > On Fri, May 18, 2018 at 6:57 PM, Neil Jerram wrote: > >> Hi Soan, >> >> Would it be possible for you to work on a GNU/Linux system instead? I >> believe that is what most BIRD developers do. >> >> Regards - Neil >> >> >> On Fri, May 18, 2018 at 3:58 AM Minh Soan Duong wrote: >> >>> Hi BIRD experts, >>> >>> My name is Soan Duong. I am a newbie of routing protocols, and of course >>> of The BIRD internet routing daemon as well. >>> >>> I would like to get more understanding about one simple routing protocol >>> (e.g. RIP) in BIRD by debugging the code step-by-step. However, I have got >>> stuck at configuring the first step to run the code in Visual Studio C++. >>> >>> Could you guys please point me out how could I configure things in C++ >>> to starting debugging. Any help you have to offer would be greatly >>> appreciated. >>> >>> Regards, >>> Soan >>> >>> -- >>> DUONG Thi Minh Soan >>> Skype: soan.duong >>> >> > > > -- > DUONG Thi Minh Soan > Computer Science Department, > Faculty of Information Technology, > Le Quy Don Technical University > > Vietnamese tel.: (+84) 0 983 588 613 > Skype: soan.duong >
Re: Debugging the RIP code
Hi Neil, Thank you very much for your reply. Actually, I would prefer to run it on Windows environment, which I am much familiar with. As far as my understanding, it does not matter if I just want to run a simple demo of a BIRD routing protocol. Am I correct? In case it is impossible to run on Windows, then yes, I can switch to Linux environment. Do you have any suggestion for me? And sorry for my dumb question. Best regards, Soan On Fri, May 18, 2018 at 6:57 PM, Neil Jerramwrote: > Hi Soan, > > Would it be possible for you to work on a GNU/Linux system instead? I > believe that is what most BIRD developers do. > > Regards - Neil > > > On Fri, May 18, 2018 at 3:58 AM Minh Soan Duong wrote: > >> Hi BIRD experts, >> >> My name is Soan Duong. I am a newbie of routing protocols, and of course >> of The BIRD internet routing daemon as well. >> >> I would like to get more understanding about one simple routing protocol >> (e.g. RIP) in BIRD by debugging the code step-by-step. However, I have got >> stuck at configuring the first step to run the code in Visual Studio C++. >> >> Could you guys please point me out how could I configure things in C++ to >> starting debugging. Any help you have to offer would be greatly appreciated. >> >> Regards, >> Soan >> >> -- >> DUONG Thi Minh Soan >> Skype: soan.duong >> > -- DUONG Thi Minh Soan Computer Science Department, Faculty of Information Technology, Le Quy Don Technical University Vietnamese tel.: (+84) 0 983 588 613 Skype: soan.duong
Re: Debugging the RIP code
Hi Soan, Would it be possible for you to work on a GNU/Linux system instead? I believe that is what most BIRD developers do. Regards - Neil On Fri, May 18, 2018 at 3:58 AM Minh Soan Duongwrote: > Hi BIRD experts, > > My name is Soan Duong. I am a newbie of routing protocols, and of course > of The BIRD internet routing daemon as well. > > I would like to get more understanding about one simple routing protocol > (e.g. RIP) in BIRD by debugging the code step-by-step. However, I have got > stuck at configuring the first step to run the code in Visual Studio C++. > > Could you guys please point me out how could I configure things in C++ to > starting debugging. Any help you have to offer would be greatly appreciated. > > Regards, > Soan > > -- > DUONG Thi Minh Soan > Skype: soan.duong >
Debugging the RIP code
Hi BIRD experts, My name is Soan Duong. I am a newbie of routing protocols, and of course of The BIRD internet routing daemon as well. I would like to get more understanding about one simple routing protocol (e.g. RIP) in BIRD by debugging the code step-by-step. However, I have got stuck at configuring the first step to run the code in Visual Studio C++. Could you guys please point me out how could I configure things in C++ to starting debugging. Any help you have to offer would be greatly appreciated. Regards, Soan -- DUONG Thi Minh Soan Skype: soan.duong