def METHOD_NAME(self, interface):
    self.sock.bind((interface,))
    if self._fdmode:  # default is off
        self.sock.setsockopt(socket.SOL_CAN_RAW, self.CAN_RAW_FD_FRAMES, 1)
    if not self._loopback:  # default is on
        self.sock.setsockopt(socket.SOL_CAN_RAW, self.CAN_RAW_LOOPBACK, 0)