nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

ip.h (471B)


      1 #ifndef IP_H
      2 #define IP_H
      3 
      4 struct ip4_address { unsigned char d[4]; } ;
      5 struct ip6_address { unsigned char d[16]; } ;
      6 struct ip_address { unsigned int is6; union { struct ip4_address a; struct ip6_address aaaa; } ip; }; /* blatantly the way that skalibs does it */
      7 
      8 extern unsigned int ip_fmt(char *, struct ip_address *);
      9 #define IPFMT 41
     10 extern unsigned int ip_scan(char *, struct ip_address *);
     11 extern unsigned int ip_scanbracket(char *, struct ip_address *);
     12 
     13 #endif