The check for link up was missing, meaning valid LCP echo request/reply packets are filtered whatever the PPP state is, despite what the comment says. Fix it by checking the PPP state as we would like to have done when it was written.