Searched refs:dhcp_smach_t (Results 1 - 24 of 24) sorted by relevance

/illumos-gate/usr/src/cmd/cmd-inet/sbin/dhcpagent/
H A Dstates.h58 dhcp_smach_t *dsm_next; /* Note: must be first */
59 dhcp_smach_t *dsm_prev;
242 dhcp_smach_t *dl_smach; /* back pointer to state machine */
265 void dhcp_adopt_complete(dhcp_smach_t *);
266 boolean_t dhcp_bound(dhcp_smach_t *, PKT_LIST *);
267 void dhcp_bound_complete(dhcp_smach_t *);
268 int dhcp_drop(dhcp_smach_t *, void *);
271 boolean_t dhcp_extending(dhcp_smach_t *);
272 void dhcp_inform(dhcp_smach_t *);
273 void dhcp_init_reboot(dhcp_smach_t *);
[all...]
H A Dasync.h54 boolean_t async_start(dhcp_smach_t *, dhcp_ipc_type_t, boolean_t);
55 void async_finish(dhcp_smach_t *);
56 boolean_t async_cancel(dhcp_smach_t *);
H A Dscript_handler.h82 void script_init(dhcp_smach_t *);
83 boolean_t script_start(dhcp_smach_t *, const char *, script_callback_t *,
85 void script_stop(dhcp_smach_t *);
H A Dcommon.h50 typedef struct dhcp_smach_s dhcp_smach_t; typedef in typeref:struct:dhcp_smach_s
57 typedef int script_callback_t(dhcp_smach_t *, void *);
H A Dpacket.h105 typedef boolean_t stop_func_t(dhcp_smach_t *, unsigned int);
121 dhcp_pkt_t *init_pkt(dhcp_smach_t *, uchar_t);
129 void *add_pkt_prl(dhcp_pkt_t *, dhcp_smach_t *);
131 void stop_pkt_retransmission(dhcp_smach_t *);
132 void retransmit_now(dhcp_smach_t *);
135 void pkt_smach_enqueue(dhcp_smach_t *, PKT_LIST *);
136 boolean_t send_pkt(dhcp_smach_t *, dhcp_pkt_t *, in_addr_t,
138 boolean_t send_pkt_v6(dhcp_smach_t *, dhcp_pkt_t *, in6_addr_t,
H A Dasync.c42 * input: dhcp_smach_t *: the state machine to start the async command on
49 async_start(dhcp_smach_t *dsmp, dhcp_ipc_type_t cmd, boolean_t user)
64 * input: dhcp_smach_t *: the state machine with the pending async command
71 async_finish(dhcp_smach_t *dsmp)
87 * input: dhcp_smach_t *: the state machine with the pending async command
92 async_cancel(dhcp_smach_t *dsmp)
H A Dipc_action.h58 boolean_t ipc_action_start(dhcp_smach_t *, ipc_action_t *);
59 void ipc_action_finish(dhcp_smach_t *, int);
H A Dutil.h71 void print_server_msg(dhcp_smach_t *, const char *, uint_t);
77 void write_lease_to_hostconf(dhcp_smach_t *);
H A Dinform.c41 static boolean_t stop_informing(dhcp_smach_t *, unsigned int);
46 * input: dhcp_smach_t *: the state machine to use
56 dhcp_inform(dhcp_smach_t *dsmp)
115 * input: dhcp_smach_t *: the state machine Info-Reqs are being sent from
122 stop_informing(dhcp_smach_t *dsmp, unsigned int n_requests)
H A Dstates.c89 * dhcp_smach_t *: smach pointer for logging
95 const char *param_name, dhcp_smach_t *dsmp)
168 * output: dhcp_smach_t *: state machine instance
171 dhcp_smach_t *
174 dhcp_smach_t *dsmp, *alt_primary;
296 * input: dhcp_smach_t *: the state machine to acquire a hold on
301 hold_smach(dhcp_smach_t *dsmp)
312 * input: dhcp_smach_t *: the DHCP state machine to free
317 free_smach(dhcp_smach_t *dsmp)
348 * input: dhcp_smach_t *
[all...]
H A Dinterface.h76 dhcp_smach_t *lif_smachs; /* pointer to list of state machines */
192 dhcp_expire_t expired_lif_state(dhcp_smach_t *);
193 dhcp_lif_t *find_expired_lif(dhcp_smach_t *);
H A Dselect.c64 dhcp_smach_t *dsmp = arg;
77 * input: dhcp_smach_t *: the state machine on which to start DHCP
82 set_start_timer(dhcp_smach_t *dsmp)
101 * input: dhcp_smach_t *: the state machine on which to send the DISCOVER
106 dhcp_selecting(dhcp_smach_t *dsmp)
245 * input: dhcp_smach_t *: the state machine DISCOVERs are being sent on
252 stop_selecting(dhcp_smach_t *dsmp, unsigned int n_discovers)
H A Drenew.c57 static boolean_t stop_extending(dhcp_smach_t *, unsigned int);
83 dhcp_smach_t *dsmp = dlp->dl_smach;
156 dhcp_smach_t *dsmp = dlp->dl_smach;
249 * input: dhcp_smach_t *: the state machine to be restarted
255 dhcp_finish_expire(dhcp_smach_t *dsmp, void *arg)
334 dhcp_smach_t *dsmp;
399 * input: dhcp_smach_t *: the state machine to send the message from
404 dhcp_extending(dhcp_smach_t *dsmp)
509 * input: dhcp_smach_t *: the state machine REQUESTs are being sent from
516 stop_extending(dhcp_smach_t *dsm
[all...]
H A Drelease.c43 static boolean_t stop_release_decline(dhcp_smach_t *, unsigned int);
50 * input: dhcp_smach_t *: the state machine sending DECLINE
55 send_declines(dhcp_smach_t *dsmp)
131 * input: dhcp_smach_t *: the state machine to send the RELEASE on and remove
137 dhcp_release(dhcp_smach_t *dsmp, void *arg)
220 * input: dhcp_smach_t *: the state machine dropping leases
227 dhcp_drop(dhcp_smach_t *dsmp, void *arg)
255 * input: dhcp_smach_t *: the state machine messages are being sent from
261 stop_release_decline(dhcp_smach_t *dsmp, unsigned int n_requests)
H A Dscript_handler.c113 * input: dhcp_smach_t *: the state machine
120 run_script(dhcp_smach_t *dsmp, const char *event, int fd)
191 * input: dhcp_smach_t *: the state machine
196 script_init(dhcp_smach_t *dsmp)
210 * input: dhcp_smach_t *: the state machine
215 script_cleanup(dhcp_smach_t *dsmp)
272 * input: dhcp_smach_t *: the state machine
282 script_start(dhcp_smach_t *dsmp, const char *event,
372 * input: dhcp_smach_t *: the state machine
377 script_stop(dhcp_smach_t *dsm
[all...]
H A Dipc_action.c61 * input: dhcp_smach_t *: the state machine to start the action on
68 ipc_action_start(dhcp_smach_t *dsmp, ipc_action_t *iareq)
123 * input: dhcp_smach_t *: the state machine to complete the action on
129 ipc_action_finish(dhcp_smach_t *dsmp, int reason)
172 * void *: the dhcp_smach_t * the ipc_action was pending on
180 dhcp_smach_t *dsmp = arg;
H A Dinit_reboot.c53 * input: dhcp_smach_t *: the state machine to examine for reuse
58 dhcp_init_reboot_v4(dhcp_smach_t *dsmp)
117 * input: dhcp_smach_t *: the state machine to examine for reuse
122 dhcp_init_reboot_v6(dhcp_smach_t *dsmp)
199 * input: dhcp_smach_t *: the state machine to examine for reuse
204 dhcp_init_reboot(dhcp_smach_t *dsmp)
229 * input: dhcp_smach_t *: the state machine sending the REQUESTs
235 stop_init_reboot(dhcp_smach_t *dsmp, unsigned int n_requests)
H A Drequest.c48 static PKT_LIST *select_best(dhcp_smach_t *);
49 static void request_failed(dhcp_smach_t *);
57 * input: dhcp_smach_t *: the state machine
62 send_v6_request(dhcp_smach_t *dsmp)
94 * input: dhcp_smach_t *: the state machine
100 server_unicast_option(dhcp_smach_t *dsmp, PKT_LIST *plp)
150 dhcp_smach_t *dsmp = arg;
355 * const dhcp_smach_t *: state machine that received the packet
360 compute_points_v6(const PKT_LIST *pkt, const dhcp_smach_t *dsmp)
455 * const dhcp_smach_t *
[all...]
H A Dpacket.c65 static void next_retransmission(dhcp_smach_t *, boolean_t, boolean_t);
66 static boolean_t send_pkt_internal(dhcp_smach_t *);
149 * input: dhcp_smach_t *: the state machine that will send the packet
155 init_pkt(dhcp_smach_t *dsmp, uchar_t type)
584 * dhcp_smach_t *: state machine with request option
589 add_pkt_prl(dhcp_pkt_t *dpkt, dhcp_smach_t *dsmp)
636 dhcp_smach_t *dsmp;
792 * input: dhcp_smach_t *: the state machine with a packet to send
797 send_pkt_internal(dhcp_smach_t *dsmp)
1014 * input: dhcp_smach_t *
[all...]
H A Dbound.c58 static enum v6_bind_result configure_v6_leases(dhcp_smach_t *);
59 static boolean_t configure_v4_lease(dhcp_smach_t *);
60 static boolean_t configure_v4_timers(dhcp_smach_t *);
65 * input: dhcp_smach_t *: the state machine configured
72 bound_event_cb(dhcp_smach_t *dsmp, void *arg)
87 * input: dhcp_smach_t *: the state machine to move to bound
93 dhcp_bound(dhcp_smach_t *dsmp, PKT_LIST *ack)
312 * input: dhcp_smach_t *: the state machine now ready
317 dhcp_bound_complete(dhcp_smach_t *dsmp)
505 * input: dhcp_smach_t *
[all...]
H A Dadopt.c76 dhcp_smach_t *dsmp = NULL;
201 * input: dhcp_smach_t *: the state machine on which a lease is being adopted
206 dhcp_adopt_complete(dhcp_smach_t *dsmp)
H A Dutil.c173 * input: dhcp_smach_t *: the state machine the message is associated with
180 print_server_msg(dhcp_smach_t *dsmp, const char *msg, uint_t msglen)
688 write_lease_to_hostconf(dhcp_smach_t *dsmp)
H A Dagent.c445 dhcp_smach_t *dsmp;
1250 * input: dhcp_smach_t *: pointer to the state machine
1257 check_main_lif(dhcp_smach_t *dsmp, const struct ifa_msghdr *ifam, int msglen)
1363 dhcp_smach_t *dsmp, *dsmnext;
H A Dinterface.c365 dhcp_smach_t *dsmp;
1641 * input: dhcp_smach_t *: the state machine to scan
1646 expired_lif_state(dhcp_smach_t *dsmp)
1677 * input: dhcp_smach_t *: the state machine to scan
1682 find_expired_lif(dhcp_smach_t *dsmp)

Completed in 104 milliseconds