All, Using an example ip address of 213.137.69.38, this converts to d5 89 45 26 (hex). Is it OK to split the above hex into 8 bits so that it can fit into the vp->strvalue format or is there another way ? i.e. strvalue[0] = d5 strvalue[1] = 89 strvalue[2] = 45 strvalue[3] = 26 Ian Davies {02476 564662} Internal (x740 4662) IMS-SIPAC Software Development Engineer
Iandc Davies wrote:
Using an example ip address of 213.137.69.38, this converts to d5 89 45 26 (hex).
Is it OK to split the above hex into 8 bits so that it can fit into the vp->strvalue format or is there another way ?
The IP addresses are usually stored in vp->lvalue. I note the easiest way to assign values is to use the function pairparsevalue() in src/lib/valuepair.c -- Nicolas Baradakis
participants (2)
-
Iandc Davies -
Nicolas Baradakis