Fixing link-layer handling.

Something had gotten mixed up here.