-
Notifications
You must be signed in to change notification settings - Fork 15
/
README.dev
53 lines (48 loc) · 982 Bytes
/
README.dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Flows
DHCPv4 Packet incoming
1. receive-nflog
2. packet_cb
3. dhcpv4_got_packet
if REQ:
4. add_req_if_not_found
if ACK:
4. updated_lease
4.1 sendLease
4.2 mysql_update_lease
4.3 dhcp_update_ack
4.3.1. add_ebtables
4.3.2. update_timer
DHCP-ACK Timer
1. check_expired_ack
2. update_lease
3. updated_lease (maybe)
3.1 sendLease
3.2 mysql_update_lease
3.3 dhcp_update_ack
3.3.1. add_ebtables
3.3.2. update_timer
4. del_ebtables
UDP packet incoming
1. handle_udp_message
2. update_lease
3. is_local
3.1 get_req_entry_wrp (DHCP REQ)
3.2 get_fdb_entry_wrp
4. updated_lease
4.1 sendLease
4.2 mysql_update_lease
4.3 dhcp_update_ack
4.3.1. add_ebtables
4.3.2. update_timer
Learn new mac on bridge
1. bridge_receive
2. update_fdb / add_fdb_entry / get_fdb_entry
3. lease_lookup_by_mac
4. updated_lease
4.1 sendLease
4.2 mysql_update_lease
4.3 dhcp_update_ack
4.3.1. add_ebtables
4.3.2. update_timer
MYSQL Timer
1. mysql_remove_old_leases_from_db