Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7513575
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:13:34+00:00 2026-05-30T00:13:34+00:00

I am reading source code of xl2tpd , and face lots of problems when

  • 0

I am reading source code of xl2tpd, and face lots of problems when reading this code. For example I cannot find where the structure lac is defined. How do I find the definition of this structure?

I have used ctags and vim to read this code, but failed to find the structure. I googled and could not find the structure. Is there any method that can make the code reading process more comfortable? That is, I can jump to definition of most variables, functions and structures?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T00:13:35+00:00Added an answer on May 30, 2026 at 12:13 am

    try cscope with vim. follow steps below –
    1) run cscope -R in xl2tpd directory . it will create file cscope.out
    2) open file with vim where structure lac is used
    3) use :cs f g <lac> . now it will show the files where lac is defined .
    4) choose file.h. it contain the definition .
    if you are perticulerly interested in definition of struct lac it is below –

    struct lac
    {
        struct lac *next;
        struct host *lns;           /* LNS's we can connect to */
        struct schedule_entry *rsched;
        int tun_rws;                /* Receive window size (tunnel) */
        int call_rws;               /* Call rws */
        int rxspeed;                /* Tunnel rx speed */
        int txspeed;                /* Tunnel tx speed */
        int active;                 /* Is this connection in active use? */
        int hbit;                   /* Permit hidden AVP's? */
        int lbit;                   /* Use the length field? */
        int challenge;              /* Challenge authenticate the peer? */
        unsigned int localaddr;     /* Local IP address */    
        unsigned int remoteaddr;    /* Force remote address to this */
        char authname[STRLEN];      /* Who we authenticate as */
        char password[STRLEN];      /* Password to authenticate with */
        char peername[STRLEN];      /* Force peer name to this */
        char hostname[STRLEN];      /* Hostname to report */
        char entname[STRLEN];       /* Name of this entry */
        int authpeer;               /* Authenticate our peer? */
        int authself;               /* Authenticate ourselves? */
        int pap_require;            /* Require PAP auth for PPP */
        int chap_require;           /* Require CHAP auth for PPP */
        int pap_refuse;             /* Refuse PAP authentication for us */
        int chap_refuse;            /* Refuse CHAP authentication for us */
        int idle;                   /* Idle timeout in seconds */
        int autodial;               /* Try to dial immediately? */
        int defaultroute;           /* Use as default route? */
        int redial;                 /* Redial if disconnected */
        int rmax;                   /* Maximum # of consecutive redials */
        int rtries;                 /* # of tries so far */
        int rtimeout;               /* Redial every this many # of seconds */
        char pppoptfile[STRLEN];    /* File containing PPP options */
        int debug;
        struct tunnel *t;           /* Our tunnel */
        struct call *c;             /* Our call */
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

As the example below, I came across this one when reading the source code
I am a beginner in C. While reading git's source code, I found this
I'm reading this C++ open source code and I came to a constructor but
I am reading some source code and I found this statement at the very
Reading some source code, I have found next traits definition: namespace dds { template
While reading the source code of SortableIntField , I noticed that this class avoids
I'm reading source code of nginx and find it's not initializing many of the
I start reading Lift framework source code, I find that there're so many methods
A lot of times when reading source code I see something like this: public
Reading through the Backbone.js source code, I saw this: validObj[attr] = void 0; What

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.