Permalink
Browse files

9-29

  • Loading branch information...
YangjunZ committed Sep 29, 2012
1 parent 86133ad commit 4083fe08c7549bdfd7db14ba2341e5340b365311
Showing with 3 additions and 5 deletions.
  1. +2 −4 dhcp-4.2.3-P2/includes/dhcpd.h
  2. +1 −1 dhcp-4.2.3-P2/server/mdb.c
@@ -494,7 +494,8 @@ typedef u_int8_t binding_state_t;
/* An A+P structure, [pset]*/
struct iaddr_pset{
struct iaddr ip_addr;//original ipv4 address
- unsigned pset_index; //port-set index
+ u_int16_t pset_index; //port-set index
+ u_int16_t pset_mask; //pset
};
/* A dhcp lease declaration structure. */
@@ -2571,11 +2572,8 @@ extern int local_family;
extern struct in_addr local_address;
extern struct in6_addr local_address6;
-extern unsigned ratio1; //[pset]
-
extern u_int16_t local_port;
extern u_int16_t remote_port;
-extern u_int16_t reserved_ports;//[pset]
extern int (*dhcp_interface_setup_hook) (struct interface_info *,
struct iaddr *);
extern int (*dhcp_interface_discovery_hook) (struct interface_info *);
@@ -45,7 +45,7 @@ lease_ip_hash_t *lease_ip_addr_hash;
lease_id_hash_t *lease_hw_addr_hash;
lease_ip_hash_t *lease_ip_pset_hash;//[pset]
-unsigned ratio1 = 4;
+//unsigned ratio1 = 32; //pset
/*
* We allow users to specify any option as a host identifier.
*

0 comments on commit 4083fe0

Please sign in to comment.