Parcourir la source

[tcp] Fix typos by changing ntohl() to htonl() where appropriate

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown il y a 14 ans
Parent
révision
73e3672468
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2
    2
      src/net/tcp.c

+ 2
- 2
src/net/tcp.c Voir le fichier

473
 		memset ( tsopt->nop, TCP_OPTION_NOP, sizeof ( tsopt->nop ) );
473
 		memset ( tsopt->nop, TCP_OPTION_NOP, sizeof ( tsopt->nop ) );
474
 		tsopt->tsopt.kind = TCP_OPTION_TS;
474
 		tsopt->tsopt.kind = TCP_OPTION_TS;
475
 		tsopt->tsopt.length = sizeof ( tsopt->tsopt );
475
 		tsopt->tsopt.length = sizeof ( tsopt->tsopt );
476
-		tsopt->tsopt.tsval = ntohl ( currticks() );
477
-		tsopt->tsopt.tsecr = ntohl ( tcp->ts_recent );
476
+		tsopt->tsopt.tsval = htonl ( currticks() );
477
+		tsopt->tsopt.tsecr = htonl ( tcp->ts_recent );
478
 	}
478
 	}
479
 	if ( ! ( flags & TCP_SYN ) )
479
 	if ( ! ( flags & TCP_SYN ) )
480
 		flags |= TCP_PSH;
480
 		flags |= TCP_PSH;

Chargement…
Annuler
Enregistrer