fixed leaky abstraction. the link layer now tracks whether it is transmitting primary or secondary frames instead of the router