Revision 153f02da sysdep/unix/unix.h

View differences:

sysdep/unix/unix.h
80 80
static inline struct in_addr ipa_to_in4(ip_addr a)
81 81
{ return (struct in_addr) { htonl(ipa_to_u32(a)) }; }
82 82

  
83
static inline struct in_addr ip4_to_in4(ip4_addr a)
84
{ return (struct in_addr) { htonl(ip4_to_u32(a)) }; }
85

  
83 86
static inline struct in6_addr ipa_to_in6(ip_addr a)
84 87
{ return (struct in6_addr) { .s6_addr32 = { htonl(_I0(a)), htonl(_I1(a)), htonl(_I2(a)), htonl(_I3(a)) } }; }
85 88

  

Also available in: Unified diff