comparison src/if-options.h @ 5574:2a519da0f1a2 draft

DHCP: Split hardware address randomisation out of anonymous option A 3rd party might want to control the randomisation.
author Roy Marples <roy@marples.name>
date Mon, 28 Dec 2020 00:02:26 +0000
parents a0d828e25482
children
comparison
equal deleted inserted replaced
5573:5bf8e1fc0634 5574:2a519da0f1a2
180 #define O_INACTIVE O_BASE + 47 180 #define O_INACTIVE O_BASE + 47
181 #define O_MUDURL O_BASE + 48 181 #define O_MUDURL O_BASE + 48
182 #define O_MSUSERCLASS O_BASE + 49 182 #define O_MSUSERCLASS O_BASE + 49
183 #define O_CONFIGURE O_BASE + 50 183 #define O_CONFIGURE O_BASE + 50
184 #define O_NOCONFIGURE O_BASE + 51 184 #define O_NOCONFIGURE O_BASE + 51
185 #define O_RANDOMISE_HWADDR O_BASE + 52
185 186
186 extern const struct option cf_options[]; 187 extern const struct option cf_options[];
187 188
188 struct if_sla { 189 struct if_sla {
189 char ifname[IF_NAMESIZE]; 190 char ifname[IF_NAMESIZE];
232 uint8_t rejectmask6[(UINT16_MAX + 1) / NBBY]; 233 uint8_t rejectmask6[(UINT16_MAX + 1) / NBBY];
233 uint32_t leasetime; 234 uint32_t leasetime;
234 uint32_t timeout; 235 uint32_t timeout;
235 uint32_t reboot; 236 uint32_t reboot;
236 unsigned long long options; 237 unsigned long long options;
238 bool randomise_hwaddr;
237 239
238 struct in_addr req_addr; 240 struct in_addr req_addr;
239 struct in_addr req_mask; 241 struct in_addr req_mask;
240 struct in_addr req_brd; 242 struct in_addr req_brd;
241 rb_tree_t routes; 243 rb_tree_t routes;