flat assembler
Message board for the users of flat assembler.

Index > Main > structures

Author
Thread Post new topic Reply to topic
gavin



Joined: 20 Jul 2008
Posts: 23
gavin 11 Aug 2008, 23:01
Code:
struct pcap_if {
     struct pcap_if *next; 
    char *name;     
     char *description;  
    struct pcap_addr *addresses; 
    u_int flags;
};
    


I'm familair with strucs but how would you go about doing this one in nasm fasm masm or whaever your assembler is.
Post 11 Aug 2008, 23:01
View user's profile Send private message Reply with quote
LocoDelAssembly
Your code has a bug


Joined: 06 May 2005
Posts: 4624
Location: Argentina
LocoDelAssembly 11 Aug 2008, 23:20
Code:
include 'win32a.inc'

struct pcap_if
  next dd ?
  name dd ?
  description dd ?
  addresses dd ?
  flags dd ?
ends    


Are all pointers except for the last one (that since it is an unsigned int I suppose, then it is a dword like the pointers).
Post 11 Aug 2008, 23:20
View user's profile Send private message Reply with quote
gavin



Joined: 20 Jul 2008
Posts: 23
gavin 11 Aug 2008, 23:40
LocoDelAssembly as usual your great.
Thanks very much.
Post 11 Aug 2008, 23:40
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
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 cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2023, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.