Thread: where and how is n_long defined

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    29

    where and how is n_long defined

    I see a struct in ip.h:
    Code:
    struct   ip_timestamp {                                               
        u_char    ipt_code;      /* IPOPT_TS */                           
        u_char    ipt_len;       /* size of structure (variable) */       
        u_char    ipt_ptr;       /* index of current entry */             
        u_int     ipt_flg:4,          /* flags, see below */              
             ipt_oflw:4;         /* overflow counter */                   
        union {                                                           
             n_long    ipt_time[1];                                       
             struct    ipt_ta {                                           
                  struct in_addr ipt_addr;                                
                  n_long ipt_time;                                        
             } ipt_ta[1];                                                 
        } ipt_union;                                                      
    };
    does anybody know where is n_long defined?
    Thank you
    ZA

  2. #2
    Registered User
    Join Date
    May 2009
    Posts
    3,882
    Likely in "ip.h" or an included header.

    Edit: I would guess "in_systm.h".

    Tim S.
    Last edited by stahta01; 07-12-2020 at 05:36 PM.
    "...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson

  3. #3
    Registered User
    Join Date
    Jul 2010
    Posts
    29
    Quote Originally Posted by stahta01 View Post
    Likely in "ip.h" or an included header.

    Edit: I would guess "in_systm.h".

    Tim S.

    Perfect, Thank you so much
    ZA

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. What is here defined? Please help
    By Joe1903 in forum C++ Programming
    Replies: 6
    Last Post: 11-17-2016, 09:08 AM
  2. Replies: 4
    Last Post: 07-19-2015, 05:51 PM
  3. #ifndef vs. #if !defined
    By Programmer_P in forum C++ Programming
    Replies: 4
    Last Post: 02-20-2011, 09:51 PM
  4. how to use a self-defined lib in VC6
    By wu7up in forum C Programming
    Replies: 4
    Last Post: 05-12-2003, 03:04 AM
  5. #if defined...
    By Unregistered in forum C++ Programming
    Replies: 1
    Last Post: 01-06-2002, 08:08 PM

Tags for this Thread