ns-allinone-2.35/ns-2.35/indep-utils/webtrace-conv/ucb/logparse.cc
void lf_convert_order(lf_entry *convertme)
{
  convertme->crs = ntohl(convertme->crs);
  convertme->cru = ntohl(convertme->cru);
  convertme->srs = ntohl(convertme->srs);
  convertme->sru = ntohl(convertme->sru);
  convertme->sls = ntohl(convertme->sls);
  convertme->slu = ntohl(convertme->slu);
  convertme->cip = ntohl(convertme->cip);
  convertme->cpt = ntohs(convertme->cpt);
  convertme->sip = ntohl(convertme->sip);
  convertme->spt = ntohs(convertme->spt);
  convertme->cims = ntohl(convertme->cims);
  convertme->sexp = ntohl(convertme->sexp);
  convertme->slmd = ntohl(convertme->slmd);
  convertme->rhl = ntohl(convertme->rhl);
  convertme->rdl = ntohl(convertme->rdl);
  convertme->urllen = ntohs(convertme->urllen);
}
/** 
 ** This function will convert all of the entries in the record into/from
 ** host order.  This function is its own inverse.  This function cannot
 ** fail.
 **/
This function will convert all of the entries in the record into/from
host order.  This function is its own inverse.  This function cannot
fail.
This function will convert all of the entries in the record into / from host order . This function is its own inverse . This function cannot fail .
void lf_convert_order(lf_entry *convertme)
{
  convertme->crs = ntohl(convertme->crs);
  convertme->cru = ntohl(convertme->cru);
  convertme->srs = ntohl(convertme->srs);
  convertme->sru = ntohl(convertme->sru);
  convertme->sls = ntohl(convertme->sls);
  convertme->slu = ntohl(convertme->slu);
  convertme->cip = ntohl(convertme->cip);
  convertme->cpt = ntohs(convertme->cpt);
  convertme->sip = ntohl(convertme->sip);
  convertme->spt = ntohs(convertme->spt);
  convertme->cims = ntohl(convertme->cims);
  convertme->sexp = ntohl(convertme->sexp);
  convertme->slmd = ntohl(convertme->slmd);
  convertme->rhl = ntohl(convertme->rhl);
  convertme->rdl = ntohl(convertme->rdl);
  convertme->urllen = ntohs(convertme->urllen);
}
void lf_convert_order ( lf_entry * convertme ) { convertme -> crs = ntohl ( convertme -> crs ) ; convertme -> cru = ntohl ( convertme -> cru ) ; convertme -> srs = ntohl ( convertme -> srs ) ; convertme -> sru = ntohl ( convertme -> sru ) ; convertme -> sls = ntohl ( convertme -> sls ) ; convertme -> slu = ntohl ( convertme -> slu ) ; convertme -> cip = ntohl ( convertme -> cip ) ; convertme -> cpt = ntohs ( convertme -> cpt ) ; convertme -> sip = ntohl ( convertme -> sip ) ; convertme -> spt = ntohs ( convertme -> spt ) ; convertme -> cims = ntohl ( convertme -> cims ) ; convertme -> sexp = ntohl ( convertme -> sexp ) ; convertme -> slmd = ntohl ( convertme -> slmd ) ; convertme -> rhl = ntohl ( convertme -> rhl ) ; convertme -> rdl = ntohl ( convertme -> rdl ) ; convertme -> urllen = ntohs ( convertme -> urllen ) ; }
This function will convert all of the entries in the record into/from
 host order.
This function will convert all of the entries in the record into / from host order .