avr network app: only respond to ping request if dest address matches.
This commit is contained in:
@@ -189,6 +189,15 @@ appNetworkHandleRebootRequest_end:
|
||||
|
||||
|
||||
appNetworkHandlePingRequest:
|
||||
ld r17, X
|
||||
lds r16, (netInterfaceData+NET_IFACE_OFFS_ADDRESS)
|
||||
cp r16, r17
|
||||
breq appNetworkHandlePingRequest_forMe
|
||||
cpi r17, 0xff
|
||||
breq appNetworkHandlePingRequest_forMe
|
||||
clc
|
||||
rjmp appNetworkHandlePingRequest_end
|
||||
appNetworkHandlePingRequest_forMe:
|
||||
adiw xh:xl, NETMSG_OFFS_SRCADDR
|
||||
ld r17, X
|
||||
push r17
|
||||
|
||||
Reference in New Issue
Block a user