Slide 8
Slide 8 text
8
Χʔωϧϑϩʔूଋ๏ͷΞϧΰϦζϜ
ೖྗ: ιέοτߏମ S, ͪड͚ϙʔτϦετ P
ूͷͨΊͷϋογϡද H ͷ࡞
function PROBE__TCP_CONNECT (S)
INSERT_FLOW_EVENT(S, TCP)
end function
function PROBE__TCP_ACCEPT (S)
INSERT_FLOW_EVENT(S, TCP)
end function
function PROBE__TCP_SENDMSG (S)
INSERT_FLOW_EVENTS(S, TCP)
end function
function PROBE__TCP_RECVMSG (S)
INSERT_FLOW_EVENTS(S, TCP)
end function
ग़ྗ: ूଋࡁΈͷϑϩʔϦετ
function GET_LISTENING_PORTS_AND_DIRECTIONS (S)
if P.lookup(S.sport) then
return S.sport, INCOMING
else
return S.dport, OUTCOMING
end if
end function
function INSERT_FLOW_EVENTS (S, proto)
lport, dir = GET_LISTENING_PORTS_AND_DIRECTIONS(S)
key ← {S.saddr, S.daddr, lport, dir, proto}
H.update(key, stats)
end function
UDPলུ