Skip to content

Latest commit

 

History

History
36 lines (32 loc) · 2.24 KB

File metadata and controls

36 lines (32 loc) · 2.24 KB

FLOW

Below is a diagram outlining control flow within xping.c:

main()                 [xping.c]                      |       [dnstask.c]
  |                                                   |
  |                                                   | .-> dnstask_new
  |                                                   | |       v
  |                                                   | |       v
  |                                                   | |   sendquery ------.
  |                                                   | |                   |
  |                                                   +--------------------------
  |                                                   | |                   |
  |                                                   | |      [icmp.c]     |
  |                                                   | |                   |
  |---------------------------------------------------|-(-> probe_setup ----(--.
  |                                                   | |                   |  |
  |                                                   | '----.              |  |
  |--> target_add ------------------------------------|--> probe_add -------(-.|
  |                                                   |                     | ||
  |                  target_resolved <----------------|--- resolved <<------' ||
  |                   |                               |      |--> activate <--'|
  |                   '-> ui_update                   |      '--> deactivate   |
  |                        ^    ^                     |                        |
  |->> target_probe_sched  |    |                     |                        |
  |         |              |    |                     |                        |
  |         '->> target_probe --(---------------------|--> probe_send          |
  |                             |                     |                        |
  |--> ui_init                  '-- target_mark <-----|--- read_packet <<------'
  |                                                   |
  '--> event_base_dispatch                            |


   --> direct execution
   ->> event triggered execution