Content-type: text/html Man page of IPSEC_ATOADDR

IPSEC_ATOADDR

Section: C Library Functions (3)
Updated: 11 June 2001
Index Return to Main Contents
 

NAME

ipsec atoaddr, addrtoa - convert Internet addresses to and from ASCII
ipsec atosubnet, subnettoa - convert subnet/mask ASCII form to and from addresses  

SYNOPSIS

#include <freeswan.h>

const char *atoaddr(const char *src, size_t srclen,
  struct in_addr *addr);
size_t addrtoa(struct in_addr addr, int format,
  char *dst, size_t dstlen);

const char *atosubnet(const char *src, size_t srclen,
  struct in_addr *addr, struct in_addr *mask);
size_t subnettoa(struct in_addr addr, struct in_addr mask,
  int format, char *dst, size_t dstlen);  

DESCRIPTION

These functions are obsolete; see ipsec_ttoaddr(3) for their replacements.

Atoaddr converts an ASCII name or dotted-decimal address into a binary address (in network byte order). Addrtoa does the reverse conversion, back to an ASCII dotted-decimal address. Atosubnet and subnettoa do likewise for the ``address/mask'' ASCII form used to write a specification of a subnet.

An address is specified in ASCII as a dotted-decimal address (e.g. 1.2.3.4), an eight-digit network-order hexadecimal number with the usual C prefix (e.g. 0x01020304, which is synonymous with 1.2.3.4), an eight-digit hostnce from interoperability tests. See our interop document. When twenty products all claim to implement 3DES, and they all talk to each other, you can be fairly sure they have it right. Of course, you might wonder whether all the implementers are consipring to trick you or, more plausibly, whether some implementations might have "back doors" so they can get also it wrong when required.. If you're seriously worried about things like that, you need to get the code you use audited (good luck if it is not Open Source), or perhaps to talk to a psychiatrist about treatments for paranoia.

Mailing list pointers

Additional information on testing can be found in these mailing list messages:


Contents Previous Next ./usr/share/doc/openswan/doc/2.6.known-issues.gz0000644000000000000000000000562710566721676020335 0ustar rootrootXkoF_1P.$fXi8a9HpGPRr vF}{ИM#sA9~-nZոliQFU7ܯRpV)D˔.oXq=0MH'𼻳RONy?fdZ;x,'eSoFB6wj)|:{>Zk $\>|OƲq !9 T (D M7^Fz ǁ{+[A &e,!e)X[o~?WiWzj2UZSɌ̎ON'#=k|nlkN{?K> U\GA(k8#[Ut\-jqzՈeX*ЇsXx?-ERZ{Q+ 9R \+s FId$* _>4:K~徽pbNV7+QHU+]gx4pwN9#sQnɽa&9S`pDb0KE7xδ\@- 9ANeR(uERM[pm+D;k&^ ^!5۪ W8ǨА:vvB򛡠ܚK#iC݊BtuY1Y1԰E 7r]wYrr,b/EƓ_gK_vs_CteЗ 8kS۽_fߠRO S=d F1U ,v5ʯI)EQֲY?Mhqemh=*X>(,}#{q4s8rGx㏲G_]*k83c\ PjMxwgJt̤2 NoGL n8Vf&@pnVF4/BN/kwݻqpvl>(A9.jFWC!*ngh$>c_^"uF;tEKB<aBե6#ˇi{sĂUNc8tXrY>Q'tEnVځl骚/iLљ c`u|@bzt7:_|1`$8DҚJfGxN×Xʵ8V#i8H39bv۲lHb2 ^qu~b!unk܎'MLi*KSy9{#1b 7*IEl܊R[q3&zL6ZMX Vk$`u{?U(f ִ|*l&8`(d2@ثHq^V^ Man page of IPSEC_ATOADDR

IPSEC_ATOADDR

Section: C Library Functions (3)
Updated: 11 June 2001
Index Return to Main Contents
 

NAME

ipsec atoaddr, addrtoa - convert Internet addresses to and from ASCII
ipsec atosubnet, subnettoa - convert subnet/mask ASCII form to and from addresses  

SYNOPSIS

#include <freeswan.h>

const char *atoaddr(const char *src, size_t srclen,
  struct in_addr *addr);
size_t addrtoa(struct in_addr addr, int format,
  char *dst, size_t dstlen);

const char *atosubnet(const char *src, size_t srclen,
  struct in_addr *addr, struct in_addr *mask);
size_t subnettoa(struct in_a