4 /* XXX: sort servers by configurable notion of closeness? */
5 /* XXX: pay attention to competence of each server? */
7 void dns_sortip(char *s
,unsigned int n
)
16 byte_copy(tmp
,4,s
+ (i
<< 2));
17 byte_copy(s
+ (i
<< 2),4,s
+ (n
<< 2));
18 byte_copy(s
+ (n
<< 2),4,tmp
);