Skip to content
Browse files

pset_htons

  • Loading branch information...
1 parent a64274b commit 4510c099bbfeb11978651ffb777a0121897aa9cb @YangjunZ YangjunZ committed Oct 7, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 dhcp-4.2.3-P2/server/dhcp.c
View
2 dhcp-4.2.3-P2/server/dhcp.c
@@ -2663,7 +2663,7 @@ void ack_lease (packet, lease, offer, when, msg, ms_nulltp, hp)
if( !lookup_option(&dhcp_universe, state->options,i)){
oc = (struct option_cache *) 0;
if(option_cache_allocate(&oc, MDL)){
- u_int32_t tmp = lease->ip_pset.pset_index << 16 + lease->ip_pset.pset_mask;
+ u_int32_t tmp = htons(lease->ip_pset.pset_index) << 16 + htons(lease->ip_pset.pset_mask);
if(make_const_data( &oc->expression,
&tmp, 4,
0, 0, MDL)){

0 comments on commit 4510c09

Please sign in to comment.
Something went wrong with that request. Please try again.