def wd_addr(self):
        """
        Gets the interface and direction as a `WINDIVERT_ADDRESS` structure.
        :return: The `WINDIVERT_ADDRESS` structure.
        """
        address = windivert_dll.WinDivertAddress()
        address.IfIdx, address.SubIfIdx = self.interface
        address.Direction = self.direction
        return address
Gets the interface and direction as a `WINDIVERT_ADDRESS` structure.
        :return: The `WINDIVERT_ADDRESS` structure.